Re: [mapserver-users] Help with expression
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 from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Python mapscript install v 6.4 -- No module named mapscript
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 -- /usr/lib/cgi-bin/mapserv -v /MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE / Seams to work properly. When I try to fetch maptiles via Tilecache (using Python mapscript) I get the error message /No module named mapscript/. I guess I don't have Python mapscript properly installed. The ReadME-File in Python/Mapscript folder recommends to do python setup.py build python setup.py install but this does not work in 6.4 (it did in 6.2) -- /IOError: [Errno 2] No such file or directory: '../../mapscriptvars'. Has MapServer been made/? So what to do ? Thanks, Harry -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Python-mapscript-install-v-6-4-No-module-named-mapscript-tp5099406.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Python mapscript install v 6.4 -- No module named mapscript
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 context: http://osgeo-org.1560.x6.nabble.com/Python-mapscript-install-v-6-4-No-module-named-mapscript-tp5099406p5099421.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Filter Point features from PostGIS Layer
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 tell Mapserver to only query for point features ? Thanks, Harry -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Filter-Point-features-from-PostGIS-Layer-tp6753585p6753585.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Import of KML
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 CLASS EXPRESSION ([ATTRIBUTE_FIELD] = 'windstyle') # only points with attribute 'windstyle' will be rendered NAME windstyle STYLE COLOR 32 32 128 SYMBOL circle ANGLE [ROTATION] # if your points have an attribute field ROTATION with an angle given in degrees the value will be used to rotate the symbol SIZE 6 END END END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Import-of-KML-tp6747216p6753628.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Filter Point features from PostGIS Layer
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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] 16 Bit PNG Output
I am not able to output elevation data as 16 Bit PNGs. Is Mapserver not able to to this ? I tried with a current version of Mapserver on Windows and on Linux. I tried WMS and WCS requests - but I always get 8 Bit PNGs back although I have configured 16INT. Other formats like GTiff or Esri Bil work 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 [...] LAYER NAME SRTM30 PROJECTION init=epsg:4326 END DUMP TRUE METADATA wcs_rangeset_name Range 1 ### required to support DescribeCoverage request wcs_rangeset_label My Label ### required to support DescribeCoverage request wcs_label SRTM WCS TIF Server ows_extent -180 -90 180 90 wcs_resolution 0.0083 -0.0083 ows_srs EPSG:4326 END STATUS default TYPE RASTER DATA S:\dem\srtm\srtm30\SRTM30_16b_BIL_GM.TIF CLASS END END [...] -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-tp6249725p6249725.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Large Gap when BBOX spans over dateline (Mercator)
Hi, I am getting a large gap at the dateline when trying to retrieve a map that spans over anti meridian: http://domain.com/cgi-bin/mapserv?map=mymap.mapLAYERS=testFORMAT=image%2FjpegSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A900913BBOX=0,-20037508.3427892431,40007501.6855785,20037508.3427892431WIDTH=512HEIGHT=512 http://n2.nabble.com/forum/FileDownload.jtp?type=nid=4949636name=mapserv.jpeg I get a complete image when I fetch the same extent in geographic projection (epsg:4326) but it is not possible when using spherical mercator (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.nabble.com/Large-Gap-when-BBOX-spans-over-dateline-Mercator-tp4949636p4949636.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users