Re: [mapserver-users] Help with expression

2014-01-28 Thread kaipi
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

[mapserver-users] Python mapscript install v 6.4 -- No module named mapscript

2014-01-22 Thread kaipi
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 --

Re: [mapserver-users] Python mapscript install v 6.4 -- No module named mapscript

2014-01-22 Thread kaipi
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

[mapserver-users] Filter Point features from PostGIS Layer

2011-09-02 Thread kaipi
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

[mapserver-users] Re: Import of KML

2011-09-02 Thread kaipi
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

[mapserver-users] Re: Filter Point features from PostGIS Layer

2011-09-02 Thread kaipi
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.

[mapserver-users] 16 Bit PNG Output

2011-04-07 Thread kaipi
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

[mapserver-users] Large Gap when BBOX spans over dateline (Mercator)

2010-04-23 Thread kaipi
(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