I guess for string operations you need eq instead of =:
expression ('[status]' eq 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND
[datovedt] = 0 AND [datoaflyst] = 0)
Harry
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100409.html
Sent
Hi,
I can not get Python mapscript properly installed since Mapserver 6.4
I am compiling Mapserver on Ubuntu 12.04 64Bit:
cmake .. -DWITH_KML=1 -DWITH_GD=1 -DWITH_SVGCAIRO=0 -DWITH_RSVG=1
-DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_CURL=1 -DWITH_PYTHON=1
-DWITH_PHP=1
--
Thanks Thomas,
I forgot the make install step:
mkdir build
cd build
cmake .. -DWITH_KML=1 -DWITH_GD=1 -DWITH_SVGCAIRO=0 -DWITH_RSVG=1
-DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_CURL=1 -DWITH_PYTHON=1
-DWITH_PHP=1
## fix dependency issues
make
make install
Harry
--
View this message in
I have a PostGIS database with polygon, line and point features. I want to
make a Mapserver layer, that only displays the point features. AFAIK without
such filtering Mapserver would render in a Point-Type-Layer also the polygon
features as points.
How would a FILTER or EXPRESSION look like to
You can do that with EXPRESSION and ANGLE.
I am not sure if this works with KML - maybe you need to convert to
shapefile before (eg. with ogr2ogr).
LAYER
NAME WINDS
EXTENT -180 -90 180 90
TYPE POINT
CONNECTIONTYPE ogr
CONNECTION C:/MapData/maps/KML/wind1.kml
DATA wind1
Thanks Julien,
FILTER ST_GeometryType(wkb_geometry) = 'ST_Point'
seems to do the job !!
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Filter-Point-features-from-PostGIS-Layer-tp6753585p6753830.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
fine with 16Int.
Any ideas ?
Thanks,
kaipi
Here is my mapfile:
[...]
OUTPUTFORMAT
NAME 'tif'
DRIVER GDAL/GTIFF
IMAGEMODE INT16
MIMETYPE image/tif
END
OUTPUTFORMAT
NAME 'pngint16'
DRIVER GDAL/PNG
IMAGEMODE INT16
MIMETYPE image/pngint16
END
(epsg:900913).
These are my projection parameters in mapfile:
PROJECTION
+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
+units=m +no_defs
END
Any ideas how to fix this ?
Thanks a lot!
Kaipi
--
View this message in context:
http://osgeo-org.1803224.n2