Re: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities
I get this error: Namespace prefix xsi for type on MandatoryKeyword is not defined You're right. The problem using DTD is that namespace declarations are done using FIXED attributes. Therefore the DTD part !ATTLIST inspire_common:MandatoryKeyword xmlns:inspire_common CDATA #FIXED http://inspire.ec.europa.eu/schemas/common/1.0; Should be: !ATTLIST inspire_common:MandatoryKeyword xmlns:inspire_common CDATA #FIXED http://inspire.ec.europa.eu/schemas/common/1.0; xmlns:xsi CDATA #FIXED http://www.w3.org/2001/XMLSchemainstance; Because for element inspire_common:Keyword the xsi:type attribute is declared it should probably also be done for the inspire_common:MandatoryKeyword. So I would consider this being an incomplete document type definition. Fixing this should be simple. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache: error with Berkeley DB and display tiles
Andreas, thanks for the explanation about the Berkeley Database. However, I have made several changes of permissions and owner of the files produced by mapcache_seed, and I still get the same error on the OpenLayers demo. I don't know if others users have had the same error with Mapcache and Berkeley Databases in Ubuntu Server. Have you build mapcache yourself or do you use a prebuild one? Today I build mapcache with BerkeleyDB support on a Debian Testing box. Basically, this is what I did: * check out latest master * apt-get install libdb5.1-dev * follow the install instructions in INSTALL, add -DWITH_BERKELEY_DB=ON to cmake .. and make sure * Berkeley DB: /usr/lib/... is listed under Optional components * add the following config element to mapcache.xml if it does not exist yet: cache name=bdb type=bdb !-- base (required) absolute filesystem path where the berkeley db database file is to be stored. this directory must exist, and be writable -- base/tmp/foo//base !-- key_template (optional) string template used to create the key for a tile entry in the database. defaults to the value below. you should include {tileset}, {grid} and {dim} here unless you know what you are doing, or you will end up with mixed tiles key_template{tileset}-{grid}-{dim}-{z}-{y}-{x}.{ext}/key_template -- /cache * create the base directory and grant access to web server: # mkdir /tmp/foo chgrp www-data /tmp/foo chmod g+rwx /tmp/foo * set the cache element to bdb in a tileset * populate the cache by seeding a tileset that uses a bdb-cache * the base should look something like this: # ls -l /tmp/foo/ insgesamt 11528 -rw-r--r-- 1 www-data www-data 9764864 Jan 28 13:30 bdb.db -rw-r- 1 www-data www-data 24576 Jan 28 13:35 __db.001 -rw-r- 1 www-data www-data 253952 Jan 28 13:35 __db.002 -rw-r- 1 www-data www-data 1318912 Jan 28 13:35 __db.003 -rw-r- 1 www-data www-data 811008 Jan 28 13:35 __db.004 * to verify this worked use the strings command on the bdb.db and grep for the tileset name: # strings /tmp/foo/bdb.db|grep MyTilesetName * use the demo service to check if it is working ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache: error with Berkeley DB and display tiles
failed to aquire connection to bdb backend: unknown error How can I fix or connect to the Berkeley DB?. I'm using Ubuntu Server 12.05 and Berkeley 5.1 (libdb5.1) Have you checked the file permissions to allow access to the user the web server runs under? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Automatic simplification based on resolution
Wasn't RFC 86 (http://mapserver.org/development/rfc/ms-rfc-86.html) intended to solve such problems? Does something like the following work and do the job? SCALETOKEN NAME %geometry% VALUES 0 the_geom 1000 st_simplify(the_geom, 100) 1 st_simplify(the_geom, 1000) END END DATA the_geom from (select %geometry% as the_geom, prop1 from roads) as foo Would be nice to know if that would work... Regards, Andreas Eichner -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von thomas bonfort Gesendet: Dienstag, 31. Dezember 2013 18:46 An: Rahkonen Jukka Cc: Mapserver-Users (mapserver-users@lists.osgeo.org) Betreff: Re: [mapserver-users] Automatic simplification based on resolution Jukka, IIRC this has already surfaced a few times on the mailing list or the bugtracker. MapServer already simplifies geometries at the pixel level before sending them to the renderers, and from my testing at the time was more efficient at doing so than using st_simplify(), with the added bonus that the cellsize (resolution, units per pixel) does not need to be factored in the actual SQL query, and that the simplification applies to all data backends. Doing the simplification inside postgis does however make sense if the data transfer from db to mapserver is a bottleneck, and/or potentially if reprojection is involved (as less points would need to be fed into proj). If you can come up with hard numbers to show there is a gain I'd be interested. regards, thomas On 31 December 2013 10:31, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, Mapnik has such a feature http://blog.cartodb.com/post/20163722809/speeding-up-tiles-rendering Andrea Aime is experimenting with it with Geoserver and is reaching a 50% speedup. http://osgeo-org.1560.x6.nabble.com/Some-interesting-optmizations- from-Jonathan-s-load-test-td5095839.html Can Mapserver do the same? -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Have you set the PROCESSING directive at the grid layer? With the patch applied, adding PROCESSING FORCE_FULL_EXTENT=YES at the GRID layer fixed it for me, ie: LAYER TYPE LINE STATUS DEFAULT EXTENT -180 -90 180 90 NAME GRID OPACITY 50 # the following line enables the hack: PROCESSING FORCE_FULL_EXTENT=YES I used the BBOXes from your examples below to generate the attached images. The POSTGIS (i.e. POLYGON) and RASTER layers are fine in any zoom or pan level. The LINE layer is ok if the BBOX has not been paned to far of center (for the ortho projection) and if extremly zoomed in the poles are cut. It looks like that POLYGON and LINE Layers are treated a little bit differently. If you like here is the test site with the patch included. Zoomed in, plus poles cut out in LINE layer: http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=-250,- 250,250,250FORMAT=IMAGE/PNGFROMDAT=2006-08- 06%2000:00HOEHE=- 1LAYERS=KARTE1,WILLI,GRIDMAP=/var/www/localhost/mapserver/laura.map PRODUKT=stro3_21REQUEST=GETMAPSERVICE=WMSSRS=EPSG:0816STYLES=TI ME=2006-10-06%2000:00/2006-10-08%2023:59TODAT=2006-08- 07%2023:59TRANSPARENT=FALSEVERSION=1.1.1WIDTH=600HEIGHT=600 Half a LINE layer missing when BBOX to far off center: http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=-650,- 650,250,250FORMAT=IMAGE/PNGFROMDAT=2006-08- 06%2000:00HOEHE=- 1LAYERS=KARTE1,WILLI,GRIDMAP=/var/www/localhost/mapserver/laura.map PRODUKT=stro3_21REQUEST=GETMAPSERVICE=WMSSRS=EPSG:0816STYLES=TI ME=2006-10-06%2000:00/2006-10-08%2023:59TODAT=2006-08- 07%2023:59TRANSPARENT=FALSEVERSION=1.1.1WIDTH=600HEIGHT=600 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Oh Andreas, blind me. Copied it into the POSTGIS layer but not the LINE Layer. Sorry for that. It works now as described, panning and zooming is ok. Btw, where to send the bugreport ? No problem. I just found https://github.com/mapserver/mapserver/issues/4483 which is tagged with MapScript. But reading through the bug description it sound like it is strongly related to your case. Since your problem seems to start in msDrawVectorLayer() this turns into a more general problem. I'm currently wondering why msProjectRect() transforms your request BBOX (-650,-650,250,250) into (-179.464412, 0.002066, 178.470560, 66.995391) and returns MS_SUCCESS. It seems to be a good idea to create a new issue at https://github.com/mapserver/mapserver/issues, tag it with Bug, Proj Support and MapServer C Library, reference the issue mentioned above and attach the map file, proj string and request that triggers the issue. You should also mention the found cause: msProjectRect() used by msDrawVectorLayer() doesn't create a proper query BBOX to fetch the features in such cases. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Looks like it has been found already 2 years ago, so you might hook onto this https://github.com/mapserver/mapserver/issues/4035 -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von Eichner, Andreas - SID-NLKM Gesendet: Donnerstag, 19. Dezember 2013 14:16 An: 'Heiko Schröter'; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter Oh Andreas, blind me. Copied it into the POSTGIS layer but not the LINE Layer. Sorry for that. It works now as described, panning and zooming is ok. Btw, where to send the bugreport ? No problem. I just found https://github.com/mapserver/mapserver/issues/4483 which is tagged with MapScript. But reading through the bug description it sound like it is strongly related to your case. Since your problem seems to start in msDrawVectorLayer() this turns into a more general problem. I'm currently wondering why msProjectRect() transforms your request BBOX (-650,-650,250,250) into (-179.464412, 0.002066, 178.470560, 66.995391) and returns MS_SUCCESS. It seems to be a good idea to create a new issue at https://github.com/mapserver/mapserver/issues, tag it with Bug, Proj Support and MapServer C Library, reference the issue mentioned above and attach the map file, proj string and request that triggers the issue. You should also mention the found cause: msProjectRect() used by msDrawVectorLayer() doesn't create a proper query BBOX to fetch the features in such cases. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Can you provide a simple test case, probably a MAP file with inline data? I've created some simple test data but I am unable to reproduce the problem. -Ursprüngliche Nachricht- Von: Heiko Schröter [mailto:schro...@iup.physik.uni-bremen.de] Gesendet: Dienstag, 17. Dezember 2013 21:01 An: Eichner, Andreas - SID-NLKM; mapserver-users@lists.osgeo.org; Heiko Schröter Betreff: Re: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter Seems not to work. Failure can be reproduced by changing BBOX params. I've setup a test site with three layers so you may have a look. Blue Marble = RASTER Grid = LINE Coloured Rect = POSTGIS Warping ok from epsg4326-ortho: http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=-650,- 650,650,650FORMAT=IMAGE/PNGFROMDAT=2006-08- 06%2000:00HOEHE=- 1LAYERS=KARTE1,WILLI,GRIDMAP=/var/www/localhost/mapserver/laura.map PRODUKT=stro3_21REQUEST=GETMAPSERVICE=WMSSRS=EPSG:0815STYLES=TI ME=2006-10-06%2000:00/2006-10-08%2023:59TODAT=2006-08- 07%2023:59TRANSPARENT=FALSEVERSION=1.1.1WIDTH=600HEIGHT=600 Warping distorted: http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=-450,- 450,450,450FORMAT=IMAGE/PNGFROMDAT=2006-08- 06%2000:00HOEHE=- 1LAYERS=KARTE1,WILLI,GRIDMAP=/var/www/localhost/mapserver/laura.map PRODUKT=stro3_21REQUEST=GETMAPSERVICE=WMSSRS=EPSG:0815STYLES=TI ME=2006-10-06%2000:00/2006-10-08%2023:59TODAT=2006-08- 07%2023:59TRANSPARENT=FALSEVERSION=1.1.1WIDTH=600HEIGHT=600 Am 17.12.2013 17:57, schrieb Eichner, Andreas - SID-NLKM: Can you try if PROCESSING POLYLINE_NO_CLIP=YES helps on TYPE LINE layers? -Ursprüngliche Nachricht- Von: Heiko Schröter [mailto:schro...@iup.physik.uni-bremen.de] Gesendet: Dienstag, 17. Dezember 2013 16:46 An: Eichner, Andreas - SID-NLKM; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter Thanks for the hint, but sorry no, does not change rewarping behaviour of POLYGON or LINE Layers. Distortion and missing parts do remain. The odd thing: The projection of all layers is ok if the BBOX equals or is greater than max extension of the map. i.e. BBOX=-650,-650,650,650 [proj=ortho units=m] By zooming in i.e. reducing the BBOX the RASTER layer rewarps ok, POLYGON and LINE layers do not. Am 17.12.2013 16:11, schrieb Eichner, Andreas - SID-NLKM: Looks like that causes the same effect as setting PROCESSING LOAD_WHOLE_IMAGE=YES -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver- users- boun...@lists.osgeo.org] Im Auftrag von Heiko Schröter Gesendet: Dienstag, 17. Dezember 2013 14:09 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter To make use of it in mapserver a hint has been given in an old mailing thread (sorry, lost the source) to adjust the following code snippet in resample.c: Version: mapserver-6.4.0 resample.c snip /* - -- --- -- */ /* Project desired extents out by 2 pixels, and then strip to */ /* available data. */ /* -- -- */ memcpy( sOrigSrcExtent, sSrcExtent, sizeof(sSrcExtent) ); sSrcExtent.minx = floor(sSrcExtent.minx-1.0); sSrcExtent.maxx = ceil (sSrcExtent.maxx+1.0); sSrcExtent.miny = floor(sSrcExtent.miny-1.0); sSrcExtent.maxy = ceil (sSrcExtent.maxy+1.0); snap Changing the -/+1.0 to -/+1250.0, for example, warps the RASTER image correctly. -- -- --- -- Dipl.-Ing. Heiko Schröter Institute of Environmental Physics (IUP) phone: ++49-(0)421-218- 62092 Institute of Remote Sensing (IFE) fax: ++49-(0)421-218- 62070 University of Bremen (FB1) P.O. Box 330440 email: schro...@iup.physik.uni- bremen.de Otto-Hahn-Allee 1 28359 Bremen Germany -- --- -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MS4W Mapcache
I want to create a cache in the structure /z/x/y.png but using a template for the cache type disk, it's impossible to restart Apache. cache name=disktest type=disk templateC:/ms4w/tmp/ms_tmp/cache/{tileset}/{grid}/{z}/{x}/{y}.{ext} /templ ate symlink_blank/ /cache Have you tried adding a layout=template attribute to the cache element? cache name=disktest type=disk layout=template Also the cache type mbtiles doesen't work cache name=mbtiles type=mbtiles dbfileC:/ms4w/tmp/ms_tmp/cache/test.mbtiles/dbfile /cache Cache type mbtiles is bundled with the sqlite driver. So if one works the other will also do. Have you tried moving it out of the way and let mapcache create a fresh one? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Hello Heiko, the problem is the way mapserver builds the source extent. A quick fix might be introducing a processing directive to force mapserver using the layer's full extent: diff --git a/mapdraw.c b/mapdraw.c index 992838d..7f2179e 100644 --- a/mapdraw.c +++ b/mapdraw.c @@ -948,6 +948,9 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image) if(layer-transform == MS_TRUE) { searchrect = map-extent; #ifdef USE_PROJ +if (msLayerGetProcessingKey(layer, FORCE_FULL_EXTENT)) + searchrect = layer-extent; +else if((map-projection.numargs 0) (layer-projection.numargs 0)) msProjectRect(map-projection, layer-projection, searchrect); /* project the searchrect to source coords */ #endif With this small patch you can rebuild mapserver and use PROCESSING FORCE_FULL_EXTENT=YES In a vector layer . As said, this should be considered a quick fix. A bug should be reported on this as other parts in the code path seem to deal more nicely in such situations. HTH -Ursprüngliche Nachricht- Von: Heiko Schröter [mailto:schro...@iup.physik.uni-bremen.de] Gesendet: Mittwoch, 18. Dezember 2013 12:19 An: Eichner, Andreas - SID-NLKM; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter I've omitted the postgis stuff in the mapfile, because of access restrictions. In the EPSG file i have placed this dummy epsg code for reprojection: snip 0815 +proj=ortho +over +lon_0=0 +lat_0=90 +ellps=WGS84 +datum=WGS84 +units=m +no_defs snap MAP NAME WELT OUTPUTFORMAT NAME aggpng24 DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png END STATUS ON SHAPEPATH /your/shape/path/ TRANSPARENT ON MAXSIZE 1 # Requesting polar plot with a dummy EPSG:0815 in epsg file # 0815 +proj=ortho +over +lon_0=0 +lat_0=90 +ellps=WGS84 +datum=WGS84 +units=m +no_defs PROJECTION init=epsg:4326 END WEB IMAGEPATH /var/www/localhost/htdocs/tmpimages/ IMAGEURL /tmpimages/ METADATA ows_srs EPSG:4326 EPSG:0815 EPSG:0816 EPSG:3857 EPSG:900913 wms_enable_request * END END LAYER EXTENT -180 -90 180 90 NAME KARTE1 TYPE RASTER STATUS OFF OPACITY 100 DATA YourMap.png METADATA wms_title karte layer END PROJECTION init=epsg:4326 END CLASS NAME karte_class OUTLINECOLOR 0 0 0 COLOR 180 180 180 SYMBOL 0 END END # Layer LAYER TYPE LINE STATUS OFF EXTENT -180 -90 180 90 NAME GRID OPACITY 50 METADATA wms_title grid layer END PROJECTION init=epsg:4326 END CLASS NAME Graticule STYLE COLOR 180 90 0 MAXWIDTH 2 MINWIDTH 2 END END GRID LABELFORMAT DD MAXARCS 1 MININTERVAL 15 MAXINTERVAL 60 MAXSUBDIVIDE 360 END END # Layer END # Ende Map Am 18.12.2013 11:27, schrieb Eichner, Andreas - SID-NLKM: Can you provide a simple test case, probably a MAP file with inline data? I've created some simple test data but I am unable to reproduce the problem. -Ursprüngliche Nachricht- Von: Heiko Schröter [mailto:schro...@iup.physik.uni-bremen.de] Gesendet: Dienstag, 17. Dezember 2013 21:01 An: Eichner, Andreas - SID-NLKM; mapserver-users@lists.osgeo.org; Heiko Schröter Betreff: Re: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter Seems not to work. Failure can be reproduced by changing BBOX params. I've setup a test site with three layers so you may have a look. Blue Marble = RASTER Grid = LINE Coloured Rect = POSTGIS Warping ok from epsg4326-ortho: http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=- 650,- 650,650,650FORMAT=IMAGE/PNGFROMDAT=2006-08- 06%2000:00HOEHE=- 1LAYERS=KARTE1,WILLI,GRIDMAP=/var/www/localhost/mapserver/laura.map PRODUKT=stro3_21REQUEST=GETMAPSERVICE=WMSSRS=EPSG:0815STYLES=TI ME=2006-10-06%2000:00/2006-10-08%2023:59TODAT=2006-08- 07%2023:59TRANSPARENT=FALSEVERSION=1.1.1WIDTH=600HEIGHT=600 Warping distorted: http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=- 450,- 450,450,450FORMAT=IMAGE/PNGFROMDAT=2006-08- 06%2000:00HOEHE=- 1LAYERS=KARTE1,WILLI,GRIDMAP=/var/www/localhost/mapserver/laura.map PRODUKT=stro3_21REQUEST=GETMAPSERVICE=WMSSRS=EPSG:0815STYLES=TI ME=2006-10-06%2000:00/2006-10-08%2023:59TODAT=2006-08- 07%2023:59TRANSPARENT=FALSEVERSION=1.1.1WIDTH=600HEIGHT
Re: [mapserver-users] Mapserver Expressions
Substitution works quite well but classification does not because the class' expression hasn't been tokenized when msEvalExpression is called by msShapeGetClass. Root cause of this is in msLayerWhichItems(maplayer.c) which shall tokenize the class' expression but doesn't due to making this dependent of the number of used items being greater than zero. Since you don't use items anywhere in your layer they won't be tokenized at all and will always fail (return FALSE) in msEvalExpression(). Basically it should be safe to simply comment out the if-expression in maplayer.c at line 700: - if(nt 0) { + /* if(nt 0) */ { I strongly believe that this isn't intended behaviour and should be considered a bug. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von Lime, Steve D (MNIT) Gesendet: Montag, 16. Dezember 2013 22:00 An: Charlie Allgrove; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Mapserver Expressions Did you get this fixed? The layer looks right to me. --Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver- users-boun...@lists.osgeo.org] On Behalf Of Charlie Allgrove Sent: Wednesday, December 11, 2013 11:11 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapserver Expressions Hi I'm looking to change the symbol used on a given layer, based on the (Google) zoom level supplied to the mapserv CGI. The Layer in question in the map file looks like this: LAYER VALIDATION 'tile' '^[0-9]+ [0-9]+ [0-9]{1,2}$' END PROJECTION init=epsg:4326 END NAME hubs TYPE point STATUS ON DATA 'hub_data.shp' CLASS EXPRESSION('%tile%' ~ '16$') NAME 'hub_layer_small' STYLE SYMBOL 'cloud_500' END #STYLE END #CLASS CLASS EXPRESSION('%tile%' ~ '17$') NAME 'hub_layer_large' STYLE SYMBOL 'cloud_200' END #STYLE END #CLASS CLASS NAME 'hub_layer_default' STYLE SYMBOL 'cloud_200' SIZE 2 END #STYLE END #CLASS TEMPLATE xxx METADATA wms_title Hub data layer END END #LAYER Requests are made to the CGI with the following example querystring: ?layer=hubsmode=tiletilemode=gmaptile=19288 24631 16 I *thought* it was possible to use EXPRESSION to test the 'tile' variable and act accordingly, but it's not working (I always get the default class used instead). ./mapserv -v MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any pointers? Thanks in advance. Charlie ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Looks like that causes the same effect as setting PROCESSING LOAD_WHOLE_IMAGE=YES -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von Heiko Schröter Gesendet: Dienstag, 17. Dezember 2013 14:09 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter To make use of it in mapserver a hint has been given in an old mailing thread (sorry, lost the source) to adjust the following code snippet in resample.c: Version: mapserver-6.4.0 resample.c snip /* -- -- */ /* Project desired extents out by 2 pixels, and then strip to */ /* available data. */ /* */ memcpy( sOrigSrcExtent, sSrcExtent, sizeof(sSrcExtent) ); sSrcExtent.minx = floor(sSrcExtent.minx-1.0); sSrcExtent.maxx = ceil (sSrcExtent.maxx+1.0); sSrcExtent.miny = floor(sSrcExtent.miny-1.0); sSrcExtent.maxy = ceil (sSrcExtent.maxy+1.0); snap Changing the -/+1.0 to -/+1250.0, for example, warps the RASTER image correctly. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter
Can you try if PROCESSING POLYLINE_NO_CLIP=YES helps on TYPE LINE layers? -Ursprüngliche Nachricht- Von: Heiko Schröter [mailto:schro...@iup.physik.uni-bremen.de] Gesendet: Dienstag, 17. Dezember 2013 16:46 An: Eichner, Andreas - SID-NLKM; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter Thanks for the hint, but sorry no, does not change rewarping behaviour of POLYGON or LINE Layers. Distortion and missing parts do remain. The odd thing: The projection of all layers is ok if the BBOX equals or is greater than max extension of the map. i.e. BBOX=-650,-650,650,650 [proj=ortho units=m] By zooming in i.e. reducing the BBOX the RASTER layer rewarps ok, POLYGON and LINE layers do not. Am 17.12.2013 16:11, schrieb Eichner, Andreas - SID-NLKM: Looks like that causes the same effect as setting PROCESSING LOAD_WHOLE_IMAGE=YES -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver- users- boun...@lists.osgeo.org] Im Auftrag von Heiko Schröter Gesendet: Dienstag, 17. Dezember 2013 14:09 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Rewarping/Reprojection with GDAL and - wo EXTRA_SOURCE parameter To make use of it in mapserver a hint has been given in an old mailing thread (sorry, lost the source) to adjust the following code snippet in resample.c: Version: mapserver-6.4.0 resample.c snip /* --- --- -- */ /* Project desired extents out by 2 pixels, and then strip to */ /* available data. */ /* -- -- */ memcpy( sOrigSrcExtent, sSrcExtent, sizeof(sSrcExtent) ); sSrcExtent.minx = floor(sSrcExtent.minx-1.0); sSrcExtent.maxx = ceil (sSrcExtent.maxx+1.0); sSrcExtent.miny = floor(sSrcExtent.miny-1.0); sSrcExtent.maxy = ceil (sSrcExtent.maxy+1.0); snap Changing the -/+1.0 to -/+1250.0, for example, warps the RASTER image correctly. -- - -- Dipl.-Ing. Heiko Schröter Institute of Environmental Physics (IUP) phone: ++49-(0)421-218- 62092 Institute of Remote Sensing (IFE) fax: ++49-(0)421-218- 62070 University of Bremen (FB1) P.O. Box 330440 email: schro...@iup.physik.uni- bremen.de Otto-Hahn-Allee 1 28359 Bremen Germany - -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapCahe question -- Caching the first coupleofzoom levels
By delete mode do you mean reseeding? The docs don't mention that this will delete anything outside of the zoom levels that I reseed, but maybe it does. I'll give it a try. Nope. By delete mode I mean something like mapcache_seed -m delete -c /etc/mapcache.xml -t testlayer -v -z 7,10 which would delete all tiles in the testlayer tileset from zoom levels 7, 8, 9 and 10 and should probably be combined with something like -o 2011/01/31 20:45 to only delete files created before the specified date. On caches of type disk you can also delete those files by appropriate tools scheduled on a regular basis. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache config confusion
Good news: it works. But your client needs to be configured to use the cache layer. Currently you still use the source WMS. Since you have the demo service of mapcache enabled, you can check this page http://mrdata.usgs.gov/mapcache/demo/tms Let your browser show the page source and you can copy-paste the layer constructor: var sgmc_WGS84_tms_layer = new OpenLayers.Layer.TMS( sgmc-WGS84-TMS, http://mrdata.usgs.gov/mapcache/tms/;, { layername: 'sgmc@WGS84', type: png, serviceVersion:1.0.0, gutter:0,buffer:0,isBaseLayer:true,transitionEffect:'resize', tileOrigin: new OpenLayers.LonLat(-180.00,-90.00), resolutions:[0.70312500,0.35156250,0.17578125,0.087890625000,0.043945312500,0.021972656250,0.010986328125,0.0054931640625000,0.0027465820312500,0.0013732910156250,0.0006866455078125,0.00034332275390625000,0.00017166137695312500,0.8583068847656250,0.4291534423828120,0.2145767211914060,0.1072883605957030,0.0536441802978516], zoomOffset:0, units:dd, maxExtent: new OpenLayers.Bounds(-180.00,-90.00,180.00,90.00), projection: new OpenLayers.Projection(EPSG:4326.toUpperCase()), sphericalMercator: false } ); map.addLayer(sgmc_WGS84_tms_layer) Usually it is safe to omit most of the arguments as they are defaults or derived from the map object, like serviceVersion and resolutions. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org im Auftrag von Schweitzer, Peter Gesendet: Fr 30.08.2013 23:50 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] mapcache config confusion Help! I am trying to use mapcache, but I fear that I may have misunderstood the documentation. Can someone help correct my misimpressions? I'm running a mapserver (6.2.0) instance with 113 WMS services. Most don't really need caching because the data are simple or small. One really does, because it is a geologic map of the continental US at 1:500k scale, with 320,000 polygons and 260,000 fault lines, and takes some time to render as map images. I have a complicating factor. I'm using a simplified URL to access the map services, with an Apache rewrite rule like that rewrites the incoming URL http://mrdata.usgs.gov/services/sgmc-3857 to http://mrdata.usgs.gov/cgi-bin/mapserv?map=/mnt/mrt/map-files/sgmc-3857.map;... This works nicely for OpenLayers. What I'd like to have happen is for the web server to provide cached images of these data rather than generating them on every web hit. So first of all, is mapcache the right tool for this task? Assuming that's right, I'm confused about the url element in the source section. Should this be the existing WMS on my system? Should it be the URL sent by the user, prior to the apache rewrite rule? Or should it be the URL that is the result of the rewrite rule? An OpenLayers interface that uses these data is at http://mrdata.usgs.gov/general/map.html The layer in question is the Geology layer. I do not get any cached images. I recognize that the problem may be somewhere else in this process, but here is my mapcache.xml file, cribbed and modified from an older list message by Stephen Woodbridge: ?xml version=1.0 encoding=UTF-8? mapcache metadata titleMRData mapcache service/title abstractContains various services for MRData maps/abstract /metadata cache name=disk type=disk base/mnt/mrt/mapcache/base symlink_blank/ /cache source name=sgmc type=wms getmap params FORMATimage/png/FORMAT MAP_IMAGETYPEpng/MAP_IMAGETYPE LAYERSLithology,Faults,Dikes/LAYERS MAP/mnt/mrt/map-files/sgmc-3857.map/MAP /params /getmap http urlhttp://mrdata.usgs.gov/services/sgmc-3857/url /http /source format name=PNGQ_FAST type=PNG compressionfast/compression colors256/colors /format tileset name=sgmc sourcesgmc/source cachedisk/cache gridWGS84/grid gridg/grid gridGoogleMapsCompatible/grid formatPNGQ_FAST/format metatile5 5/metatile expires864000/expires /tileset default_formatPNGQ_FAST/default_format service type=wms enabled=true full_wmsassemble/full_wms resample_modebilinear/resample_mode formatPNGQ_FAST/format maxsize4096/maxsize /service service type=wmts enabled=true/ service type=tms enabled=true/ service type=kml enabled=true/ service type=gmaps enabled=true/ service type=veenabled=true/ service type=demo enabled=true/ errorsreport/errors lock_dir/tmp/lock_dir /mapcache I am also not seeing error messages in either the apache log or the mapserver log. Here is my apache config: LoadModule mapcache_modulemodules/mod_mapcache.so IfModule mapcache_module Directory /mnt/mrt/mapcache
Re: [mapserver-users] Oracle access using CONNECTIONTYPE PLUGIN
On our site we use CONNECTIONTYPE oraclespatial CONNECTION 'username/password@service_name' and in tnsnames.ora: instance = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = port)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = service_name) ) ) Although you go with the plugin method I would guess it finally uses the same connection string as the integrated driver. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von nelly.how...@kivbf.de Gesendet: Dienstag, 30. Juli 2013 09:07 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Oracle access using CONNECTIONTYPE PLUGIN Hi, I try to access an oracle DB using following entry in mapfile: CONNECTIONTYPE PLUGIN PLUGIN msplugin_oracle.dll CONNECTION localhost,port:1521,DBname,user,password DATA GEOM FROM WSG USING SRID 31467 I installed Oracle 11g locally on Windows 2008 R2 64 bit system and can connect to it via Net Manager or SQL Developer. I use a compiled mapserver release MSVC2010 Win 64 downloaded from http://www.gisinternals.com/sdk/ http://www.gisinternals.com/sdk/ , which works fine with file based geodata. Now I get an error message ORA-01005 (null password given; logon denied), but I set password correctly. Has anybody an idea, what I am making wrong? Has connection string using oracle another syntax? Thanks in advance Nelly Kommunale Informationsverarbeitung Baden-Franken Nelly Howind Kommunale Dienstleistungen Geoinformation und Umwelt Betriebsstätte Karlsruhe Pfannkuchstraße 4, 76185 Karlsruhe Fon: +49 721 9529 351 Fax: +49 721 9529 500351 E-Mail: nelly.how...@kivbf.de Internet: http://www.kivbf.de Zweckverband Kommunale Informationsverarbeitung Baden-Franken Pfannkuchstraße 4, 76185 Karlsruhe Fon +49 721 9529 0, Fax +49 721 9529 120 Verbandsvorsitzender: LR Hämmerle Hauptgeschäftsführer: William Schmitt Kommunales Rechenzentrum Baden Franken GmbH Pfannkuchstraße 4, 76185 Karlsruhe Fon +49 721 9529 0, Fax +49 721 9529 120 Hauptgeschäftsführer: William Schmitt Handelsregister des Amtsgerichts Mannheim Nr. HRB 109683 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserv ERROR glibc detected
We sometimes get this error in the apache error log *** glibc detected *** /srv/www/cgi-bin/mapserv: double free or corruption (!prev): 0x01c99090 *** We don't know how to reproduce this error. Anyone had this error before? Any idea on what we could try to reproduce it? That's a bug in MS. However, if it can not be reproduced you need to be very lucky to find the cause. You can try to correlate the time of the error with your access.log to find the request that triggers the fault. They might diverge a bit so you need to try a bunch of request around the time. If the bug is in the cleanup code you might still get valid responses and MS just clutters your log files faulting while shutting down itself. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] cascading wms and layer names encoding
As to arcgis server it now has an option to use layer names as they appear in the map project, effectively making names equal to the titles, even if illegal. But seriously, I can't imagine why this restriction is in the wms spec... seems archaic to me... Seems you never read it... It's defined as simple xs:string which is a ... finite-length sequence of characters that match the Char production from [XML 1.0 (Second Edition)] whereby Char is defined as: Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x1-#x10]/* any Unicode character, excluding the surrogate blocks, FFFE, and . */ or in other words: almost every character. Anyway, MapServer encoding layers also doesn't seem to make sense too... It's the only way to get a valid URL. See RFC 1738 Uniform Resource Locators why. METADATA wms_name layer with understandable name, another layer (...) And I make a request to MapServer, what it sends to the original WMS server looks like: http:///WMSServer/request=getmap*layers=layer%20with%20understandab le%20name%2C%20another%20layer*otherparams According to the code, the ',' from the wms_name metadata won't be encoded by mapserver. The problem with your example is probably the first space after the comma which is treated as part of the second layer name. Anyway, you can specify most of the static parts of the URL, especially the LAYERS parameter directly in the CONNECTION string. So you can try LAYER [...] CONNECTIONTYPE WMS CONNECTION http:///WMSServer?LAYERS=layer+with+understandable+name,another+lay er Note: some servers, especially the ones you deal with are a bit pitty in some details, so you should try a space both in hex encoded version %20 and the plus version. Funny things might happen when it comes to unicode characters above 0x7F. If the capabilities document is UTF-8 encoded and contains multibyte characters their URL encoding is the hexencoding of the corresponding UTF-8 bytestream (with some caveats). Using non-ASCII characters or those with a special meaning in URLs for layer names is calling for trouble. A layer's name is for machines, it's title is for humans. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapCache missing a service error
The demo page seems like a very normal html page. Perhaps your hosted server has troubles with finding the html code or something. Unfortunately I am not expert on this area. You surely need not be. Solution might obviously found on this line: service type=demo enabled=false/ -Jukka- Jackey Cheung wrote Hi, It's a server IP address. The web site hosted on that server can be accessed well. And adding the service and request parameter to the URL works too. What I'm wondering is that why I can't access http://192.168.56.101/mapcache/ http://192.168.56.101/mapcache/ demo/ as the document says. On Tue, Jun 4, 2013 at 12:40 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, In the Mapcache documentation the service in installed on the local computer so that after installation the demo page is found from address http://localhost/mapcache/demo/ which is the same as http://127.0.0.1/mapcache/demo/ I saw from your previous mail that you were using another IP address for contacting your Mapcache, namely http://192.168.56.101/mapcache/ so I used that in my address. I do not know if that address is also your own computer or some other machine. If it is the same computer where your keyboard is connected then localhost and 127.0.0.1 addresses should work as well. I have installed my Mapcache into port 8060 of my computer so for me the link to the list of demos is http://127.0.0.1:8060/mapcache/demo/ and in a browser it shows the page like this http://latuviitta.org/documents/mapcache_demo_start_page.png -Jukka Rahkonen- Jackey Cheung wrote: Dear Rahkonen, Thanks for your reply. It worked. However, I was following the online documentation on installing mapcache. The document says (http://mapserver.org/mapcache/install.html#table-of-contents): * In your web browser, goto the local MapCache demo page: http://127.0.0.1/mapcache/demo/ http://127.0.0.1/mapcache/demo/ You should see a clickable list of demo links It that I've misunderstood? On Fri, May 31, 2013 at 12:49 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi wrote: Hi, Great, then you have made it. The message means that your URL connects Mapcache as WMS service but the message is missing the compulsory WMS parameters SERVICE and REQUEST because you only did http://192.168.56.101/mapcache/ You will see the WMS 1.1.0 capabilities document by using http://192.168.56.101/mapcache?service=wmsversion=1.1.1reque st=GetCapabilities and you should be able to use your service and see the map layers as maps with some WMS client like OpenJUMP or QGis. If the demo is installed you can also test with http://192.168.56.101/mapcache/demo/wms -Jukka Rahkonen- Jackey Cheung wrote I'ved added the PATH_INFO to nginx location block, and using the sample mapcache.xml from the source package. Now it always returns received wms with no service and request On Tue, May 28, 2013 at 2:45 PM, Eichner, Andreas - SID-NLKM andreas.eich...@sid.sachsen.demailto:andreas.eich...@sid.sac hsen.demailto:andreas.eich...@sid.sachsen.demailto:Andreas. eich...@sid.sachsen.de wrote: You need to pass the path_info from nginx to mapcache. Use something like fastcgi_param PATH_INFO $fastcgi_path_info; in your location block. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users -boun...@lists.osgeo.orgmailto:mapserver-users-bounces@lists .osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.orgmailto:mapserv er-users-boun...@lists.osgeo.orgmailto:mapserver-users- boun...@lists.osgeo.orgmailto:mapserver-users-bounces@lists.o sgeo.org] Im Auftrag von Jackey Cheung Gesendet: Dienstag, 28. Mai 2013 04:12 An: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.o sgeo.orgmailto:mapserver- us...@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Betreff: [mapserver-users] MapCache missing a service error Hi, I'm trying to deploy a MapCache server. It compiles OK, but I can't tell whether everything is working fine, since I can't see any output from the server (command line and HTTP response, etc.) I've write up a config xml as below: ?xml version=1.0 encoding=UTF-8? mapcache cache name=test_cache type=disk base/tmp/mapcache/base symlink_blank / /cache source name=test_lands type=wms getmap params FORMATimage/png/FORMAT LAYERSBLD_BLDG/LAYERS /params /getmap http urlhttp://localhost/map//url headers User-Agentmapcache/User-Agent /headers connection_timeout30/connection_timeout /http /source format name=PNG
Re: [mapserver-users] MapCache missing a service error
You need to pass the path_info from nginx to mapcache. Use something like fastcgi_param PATH_INFO $fastcgi_path_info; in your location block. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Jackey Cheung Gesendet: Dienstag, 28. Mai 2013 04:12 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] MapCache missing a service error Hi, I'm trying to deploy a MapCache server. It compiles OK, but I can't tell whether everything is working fine, since I can't see any output from the server (command line and HTTP response, etc.) I've write up a config xml as below: ?xml version=1.0 encoding=UTF-8? mapcache cache name=test_cache type=disk base/tmp/mapcache/base symlink_blank / /cache source name=test_lands type=wms getmap params FORMATimage/png/FORMAT LAYERSBLD_BLDG/LAYERS /params /getmap http urlhttp://localhost/map//url headers User-Agentmapcache/User-Agent /headers connection_timeout30/connection_timeout /http /source format name=PNG type =PNG compressionfast/compression /format default_formatPNG/default_format tileset name=test_tileset sourcetest_lands/source cachetest_cache/cache grid restricted_extent=113.816929 22.135340 114.504470 22.567942 WGS84 /grid metadata titletest web map./title abstractPowered by MapKing./abstract /metadata formatPNG/format metatile10 10/metatile metabuffer10/metabuffer /tileset service type=wms enabled=true full_wmsassemble/full_wms resample_modebilinear/resample_mode formatPNG/format maxsize4096/maxsize /service service type=wmts enabled=false/ service type=tms enabled=false/ service type=kml enabled=false/ service type=gmaps enabled=false/ service type=ve enabled=false/ service type=demo enabled=false/ errorsreport/errors lock_dir/tmp/mapcache/lock/lock_dir threaded_fetchingtrue/threaded_fetching log_levelinfo/log_level auto_reloadtrue/auto_reload /mapcache I use spawn-fcgi to start the server: spawn-fcgi -M 666 -s /var/run/mapcache.sock -n -u nginx -g nginx -U nginx -G nginx -P /var/run/mapcache.pid -- /usr/local/bin/mapcache The server seems to be running, since it doesn't return to the command prompt. When I use browser to open http://192.168.56.101/mapcache/;, the first request (the exact first request to the newly started server process) returns: tileset test_tileset references grid WGS84 , but it is not configured Then all subsequent requests returns missing a service error. I've tried adding a WGS84 grid to the xml, but that produces duplicate declaration error. I've also tried using the mapcache.xml from source package, the same missing a service error occurs. What's wrong? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [tinyOWS]Trouble with feature insertion
Try escaping the '' in the schema location URL as 'amp;' as otherwise it would be interpreted as an enity. And schemaLocation should be a list of pairs of namespace name and location. It's probably a good idea to validate the request document before posting it to TinyOWS... The request i send looks like this: wfs:Transaction service='WFS' version='1.1.0' xmlns:wfs='http://www.opengis.net/wfs' xmlns:gml='http://www.opengis.net/gml' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:map='http://www.tinyows.org/map' xsi:schemaLocation='http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd http://127.0.0.1/cgi-bin/tinyows?service=WFSrequest=DescribeF eatureTypeversion=1.1.0'/ wfs:Insert map:nodes map:coord gml:Point srsDimension='2' srsName='urn:x-ogc:def:crs:EPSG:4326' gml:coordinates decimal='.' cs=',' ts=' '30.454343,50.447954/gml:coordinates /gml:Point /map:coord /map:nodes /wfs:Insert /wfs:Transaction ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How retrieve the maxsize information with an httprequest
But to use it efficiently is necessary to know the maxsize value applied in the mapfile of the wms server. Is this information retrievable from the getcapabilities or there is a differente cgi request to have this information ? Yes and no. From MapServer as /WMS_Capabilities/Service/MaxWidth|Height. But this information is optional and only defined for WMS v1.3.0. So it won't be available for earlier version and probably not for other implementations. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS GetFeature with filter for multiple layers
Hi, when using KVP encoded request to retrieve features of multiple types you should supply one filter for each type, enclose each filter in parentheses and concatenate them as final value for the filter parameter like so: FILTER=(Filter../Filter)(Filter../Filter)TYPENAME=type1,type2 This is mostly equivalent to a Query for each type. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Arjen de Korte Gesendet: Donnerstag, 24. Januar 2013 11:50 An: Rahkonen Jukka; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WFS GetFeature with filter for multiple layers Thanks Jukka. I think the trick is also to use a POST request instead of GET, which is what I'm doing now. Looking at the example you gave, it looks like multiple filters should work with a POST request, while it doesn't seem to work with GET. Thanks again! Arjen. On Wed, Jan 23, 2013, at 13:17, Rahkonen Jukka wrote: Hi, I found this example from archives http://www.mail-archive.com/mapserver-users@lists.osgeo.org/ms g10755.html It has worked with two featuretypes and two filters on Mapserver. -Jukka- Arjen de Korte wrote: Thanks for your time and suggestions! - I'll have a good look at the filter again. - I understand this. Even if I would want to, it doesn't work with Mapserver, which is what brought me here. (Since we have the server under control also, the complications you mention would be less of an issue, but in principle I agree!) - How do I correctly specify a list of filters? (This is my original question.) If I get this to work, the problem is solved. I'm not in the position to change/upgrade my client's Mapserver. - I agree this is better/simpler in a lot of regards, but this will be for the long term. I will however make the WFS requests using POST as I already have problems with urls that become too long. Kind regards, Arjen. On Wed, Jan 23, 2013, at 12:03, Rahkonen Jukka wrote: Hi, Some thoughts: - I am not a specialist with filters, but are you sure that your filter is correct? I have some examples about filters in page http://latuviitta.org/Http-POST-ja-Filter.php but they are generated by a ready made application (Kosmo GIS). - One filter for many layers is not the way to go. For example, it can only work if all the feature types are using same name for the geometry field, and filtering with attributes would also require similar attribute schemas. You may get it to work with your own server but your application won't most probably work against any other WFS server. - Correct way is to use a list of filters. If your old Mapserver does not support it correctly, update of change to some other server that supports. - Continue to consider doing one request per one feature type, for many reasons. It will be a hell to find out what goes wrong with multi-featuretype and multi-filter requests and if one thing fails then nothing works. I am sure that all WFS servers are poorly tested with featuretype lists and lists of filters, especially if you are going to use http GET. Filters suit much better for http POST and that is better tested option too. Feel free to test with my TinyOWS at http://hip.latuviitta.org/cgi-bin/tinyows? It would be nice to see what goes to my access and error logs. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: Arjen de Korte [mailto:arje...@gmx.net] Lähetetty: 23. tammikuuta 2013 12:09 Vastaanottaja: Rahkonen Jukka; Lime, Steve D (DNR); mapserver- us...@lists.osgeo.org Aihe: Re: [mapserver-users] WFS GetFeature with filter for multiple layers Hi Jukka, Thanks for the suggestion. I am already taking that into consideration (and probably should have mentioned it). The problem is that it would be quite some work to get it into the existing application that way. For simplicity I gave an example with two layers, but there can actually be many more, depending on the map that is displayed. I would definitely like to keep it simple, but in this case one GetFeature request would definitely be a simpler solution! Any other suggestions welcome! Thanks! Kind regards, Arjen. On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: Hi, Keep it simple and make two separate GetFeatures, one for each feature type. -Jukka Rahkonen- Arjen de Korte wrote: Hi Steve, Yes, for now I (my client) is stuck to this version, so a workaround (or accepting that it can't be done) is the only option at the
Re: [mapserver-users] apache module - mapserver
Is this functionality documented someplace? I couldn't find anything. Not that I'm aware of. This info has been grabbed from source. I've seen that Thomas Bonfort has done some work to handle more generic requests instead of only WxS. Although he has prepared msModuleLoadMap() at line 322 he still assigns the map object stored in the config which results in several problems as MS modifies it during request processing (which is IMHO a bad idea). So Thomas might be able to tell more about the current state and roadmap for it. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] apache module - mapserver
I noticed during compilation of mapserver 6.2 that there is an apache module as well. Please note that the module currently has limited functionality. However, which parameters do i need to pass to httpd.conf for the module to work correctly? How can I properly test it when its configured as module? Calling /mapserver or /mapserv didn't do the trick for me. You need to configure a Location and set the Mapfile directive, f.e.: Location /mapserver Mapfile /path/to/mapfiles/mapfile.map /Location Currently you need to create such a configuration for every MAP file you want to publish. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request
Once the request is done the the connection will be closed. I thought that setting allows to open the db connection only once , keep it open until all layers data are read and will prevent closing and opening connections in between layers ? That's right. You can query more than one layer per GetMap request and MapServer will open the database connection only once for all layers involved. But once the request is done AFAIK the database connection will be closed. I searched the list and the MapServer doc about the Apache ? Module mod_mapserver, however I could not find almost any reference to it other than it is on the wish list for v 6.2 ? Does it already exist in MapServer 6.0.3 The module is only available in the 6-2 branch and should be build when supplying the --with-apache-module switch and configuration should be a snippet in the apache config: Location /wms Mapfile /path/to/wms.map /Location But I'm sure it's not well tested and only supports WxS services. You might ask Thomas Bonfort in what stage it is. Even if it's currently not suitable for productive use you might give it a try and provide some feedback. If it can solve your performance issues it might get more attention by the developers. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request
Hello Thomas, In FastCGI mode, a connection will be kept open during the lifecycle of the fastcgi process, i.e. the connection will not be closed at the end of a request. Damn, you're right. Had a look at the code and tracking down the chain I saw: mapserv.c: msFreeMapServObj() maptemplate.c: msFreeMap() mapobject.c: msCloseConnections() mapfile.c: vtable-LayerCloseConnection() [for each layer] But PostGIS layers don't provide a LayerCloseConnection() and use the pooling API instead - and that is the magic that keeps the connection. Sorry for the confusion. It should be noted that these limitations would also apply to a homemade mapscript script that reuses a mapObj for multiple requests. I overcame that problem by using msCopyMap(). It's not that elegant than using separate datastructure for service config and work data but still avoids the costly invocation of the parser. Regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request
Hello Karsten, I just tested fast cgi MapServer (version 6.0.3) vs cgi with a wms getmap request againtst a map file with 73 postgis layers (and PROCESSING CLOSE_CONNECTION=DEFER setting for each layer.) IMHO that processing option avoids reopening a connection to the same database for a single request. Once the request is done the the connection will be closed. rendering speed shows that fastcgi is bascially at the same speed or slower than cgi so far FastCGI only reduces the startup time (as the processes are already running) and therefore improves mostly simple requests where startup time is significant compared to content generation - like GetCapabilities and GetLegendGraphic. In your case parsing the map file with 73 layers already introduces a significant workload for every request, independent of the request type. That gap should be closed by mod_mapserver which associates a map file with an URI and keeps a copy of the parsed object in memory wich usually keeps database connections open. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Building Mapserver with Memcachr Capability
Seems to be a bug in the build system. When linking the test program it instruct the linker to use a *.la file. Since you checked the apr_memcache functions manually you can use the following workaround. $ echo ac_cv_lib_aprutil_1_apr_memcache_hash=yes config.cache $ echo ac_cv_header_apr_memcache_h=yes config.cache $ ./configure -C --enable-memcache=yes your_other_switches HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Wyatt Davis Gesendet: Donnerstag, 25. Oktober 2012 19:14 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Building Mapserver with Memcachr Capability Hello everyone, I am currently trying to build Mapcache from source with Memcache caching capabilities. The problem I am having is that when configuring Mapcache I receive this warning: configure: WARNING: supplied apr-util does not contain memcache functions. Memcache backend disable I have installed Apache and the apr and apu libraries through apt-get. I also tried on a separate machine building Apache, apr-1.4.6 and apu-1.4.1 from source with the same result. When I look inside of the apu static library it seems to have the memcache functions: $ nm libaprutil-1.a | grep memcache . a00 T apr_memcache_hash . I am relatively new at this so it is quite possible I am making a simple, embarrassing mistake. If anyone has any suggestions I would be most grateful. Thank you, Wyatt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Error compiling Mapserver 6.0.3
make lexer You can safely ommit that as maplexer.c is shipped with the distribution. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Error compiling Mapserver 6.0.3
That's what I did on Debian Squeeze: $ wget -O- http://download.osgeo.org/mapserver/mapserver-6.0.3.tar.gz; | tar xz $ cd mapserver-6.0.3/ $ ./configure --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr --with-tiff --with-gd=/usr --with-jpeg --with-freetype=/usr/bin/freetype-config --with-threads --with-wcs --with-libiconv=/usr --with-geos=/usr/bin/geos-config --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-postgis=/usr/bin/pg_config [...] MapServer is now configured for -- Compiler Info - C compiler:gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -- Renderer Settings - OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support:-DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: KML support: -- Support Libraries - Proj.4 support:-DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -- Data Format Drivers --- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -- OGC Services -- WMS Server:-DUSE_WMS_SVR WMS Client:-DUSE_WMS_LYR WFS Server: WFS Client:-DUSE_WFS_LYR WCS Server:-DUSE_WCS_SVR SOS Server:-DUSE_SOS_SVR -- MapScript - PHP MapScript: no $ make $ sudo make install All went fine so I'm just wondering what the hell you're doing. -Ursprüngliche Nachricht- Von: Luís de Sousa [mailto:luis.a.de.so...@gmail.com] Gesendet: Donnerstag, 30. August 2012 11:56 An: thomas bonfort Cc: Eichner, Andreas - SID-NLKM; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Error compiling Mapserver 6.0.3 On 30 August 2012 11:12, thomas bonfort thomas.bonf...@gmail.com wrote: As already stated multiple times, you have no reason to regenerate the lexer yourself, i.e. flex and yacc are *not* a requirement for building. Start off with a fresh directory from a 6.0.3 tarball, to be sure touch maplexer.c and uninstall flex/yacc, and you should be fine. I've done that yesterday (or the day before) with both 6.0.3 and 6.0.1, please read my messages up thread. I'm not compiling maplexer.c myself, I'm just following the instructions at the Mapserver website. Thank you for the help in any case, Luís ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache_seed ogr
I would like to use mapcache_seed to generate tiles with ogr datasource. OGR datasources in MapCache are used for clippers, ie. seed only tiles that intersect those features which should be polygons. -d PG:dbname='170.56.4.100' port='5432' user='user' password='password' According to http://www.gdal.org/ogr/drv_pg.html it should be PG:dbname='databasename' host='addr' port='5432' user='x' password='y' I don't know if problem come from command line or pg_hba.conf ? Command line. Can I insert a filter with -l id = 234 ? Nope, -l is the layername which is in this case the table or view. Should be -w for the WHERE clause. But note that (-l layer + -w where) and (-s sql) are mutually exclusive. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver / Mapcache performance question - fileformat
* The Original four images are in a compresses geotiff file. (The uncompressed geotiffs are too large) What compression are you using? JPEG and YCbCr colorspace should do for your case. * Tileindexes and Overviews were built using gdal at the same resolutions that mapcache will use. Hopefully your TIFFs are tiled too?! Mapserver is serving tiff files MapCache should request JPEGs from MapServer if your cache is JPEG. Mapcache is using a 4*4 metatile - I am assuming that this will make about four instances of mapserver run at once, which matches the number of cores I have. Would it be quicker to use a 16* 16 metatile so that mapserver only needs to open the image once? Metatiling is used to reduce the workload on the backend server. Instead of requesting 16 tiles with 16 requests, MapCache will request a single tile with a single request from the backend large enough to cover those tiles and cuts them into 16 tiles on it's own. Since on a single tile request probability is high that neighboring tiles will be requested soon this will result in a kind of prefetch. I am serving the cache in a jpeg, which should keep the cache size small, and the bandwidth down as well. JPEG is very good for aerial photos - fast and small. Each tile is 256*256. I have also seen 512*512 tiles, but I think 256 seems quicker. Larger tiles have a smaller overhead, usually a better compression ratio and cover a larger area per tile so less tiles are required by client and therefore reduce the number of HTTP request that need to be made. On the other hand the client gets data he probaly never needs since the tiles at the border are clipped by the view, it takes more time to transfer and decode the larger data so clients need to wait longer until they see anything which looks unresponsive and larger tiles are uncommon so simple clients might fail. p.s. I noticed PROCESSING OVERSAMPLE_RATIO =1.0 makes a big difference, however I could not find the parameter in any of the official documentation. http://mapserver.org/input/raster.html#special-processing-directives HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mssql with mapserver on red hat
[unixODBC][Driver Manager]Data source name not found, and no default driver specified The ODBC driver cannot find your DSN. Have you configured it in your user account or in the system wide /etc/odbc.ini? MapServer might be running under a different account unable to read your odbc.ini. Also, before trying to use MSSQLSpatial you should first try with ODBC and ogrinfo from the command line: # ogrinfo -al -so 'ODBC:DSN=[dsn];UID=[user];PWD=[password];Database=[db]' ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Polygon Fill with text in MapServer 6.0.3[SEC=UNCLASSIFIED]
aside from creating a pixmap symbol where you've pre-rendered your text. Any idea if a SVG symbol would do? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How do a GetFeatureInfo on a group layers
wms_layer_group Description: (Optional) Can be used to assign a layer to a number of hierarchically nested groups. This grouped hierarchy will be expressed in the capabilities. WMS_LAYER_GROUP is different from the GROUP keyword in that it does not publish the name of the group in the capabilities, only the title. As a consequence the groups set with WMS_LAYER_GROUP can not be requested with a GetMap or GetFeatureInfo request (see section 7.1.4.5.2 of the WMS implementation specification version 1.1.1. (OGC 01-068r2)). Another difference is that GROUP does not support nested groups. The purpose of this metadata setting is to enable making a WMS client aware of layer grouping. All group names should be preceded by a forward slash (/). It is not allowed to use both the WMS_LAYER_GROUP setting and the GROUP keyword for a single layer. The GetFeatureInfo now work. But as a indesiderable secondary effect is disappeared the Group-name from the getcapabilities. There is some workaround to add a group-name to the getcapabilities ? Yes, see http://mapserver.org/ogc/wms_server.html#layer-object-metadata: wms_layer_group: [...] WMS_LAYER_GROUP is different from the GROUP keyword in that it does not publish the name of the group in the capabilities, only the title. As a consequence the groups set with WMS_LAYER_GROUP can not be requested with a GetMap or GetFeatureInfo request [...] Use the GROUP keyword on all and a wms_group_title (and optionally wms_group_abstract) metadata on one of the layers corresponding to that group. So it should become something like that LAYER GROUP rt_cat.idcatbdfog NAME rt_cat.idcatbdfog.ar STATUS DEFAULT TYPE POLYGON DATA '/path-to-data/shapefile' PROJECTION init=epsg:3003 END METADATA ... ows_include_items all wms_group_title The rt_cat.idcatbdfog group wms_group_abstract This group is intented to show all layers that belong to rt_cat.idcatbdfog END TEMPLATE 'void' [...] This should hopefully work as you want. Greets. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Opacity change the color
OPACITY 10 this setting instead of a full blue give a light gray. Instead if I put OPACITY 100 I have correctly a full blue. Opacity 10 is near transparent, so blue it might appear as light gray. Have a try with a higher value, let's say 50 or 75 and see if this is what you want. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How do a GetFeatureInfo on a group layers
Hmmm, strange but yes, the code says: } else { /* Beginning of a new group... enclose the group in a layer block */ msIO_printf( Layer\n); so it seems there's no intention to set any attribute like queryable. But since querying the group is supported, to me it looks like a bug... Note: In my response I accidentally set STATUS from ON to DEFAULT, but ON was already correct. So you should revert to ON. Sorry. -Ursprüngliche Nachricht- Von: Andrea Peri [mailto:aperi2...@gmail.com] Gesendet: Montag, 30. Juli 2012 12:07 An: Eichner, Andreas - SID-NLKM Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] How do a GetFeatureInfo on a group layers Hi Eichner, The GROUP tag effectively allow set the Name and abstract. This is great, but it don't allow the GetFeatureInfo request. :( I try it, but on my qgis the identify icon is disabled. I try to see the GetCapabilities. http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?m ap=wmscatastoSERVICE=WMSrequest=getcapabilities And effectively the layer rt_cat.idcatacque is not reported as queryable. So the GROUP tag don't allow the GetFeatureInfo as single aggregation. Perhaps a bug for MapServer ? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How do a GetFeatureInfo on a group layers
I need to call for a GetFeatureInfo on a layer-group (rt_cat.idcatbdfog). I guess it should return identify result from every layer of the group. MS does exactly that. Specifying a layer group in QUERY_LAYERS is basically equivalent to specifying every layer corresponding to that group. Simply ommit that additional layer: LAYER NAME rt_cat.idcatbdfog TYPE POLYGON METADATA ows_include_items all END TEMPLATE 'void' END Instead it is say-ing: msShapefileOpen(): Unable to access file. No (NULL) filename provided. msBuildPath: Unable to access file. msShapefileOpen(): Unable to access file. No (NULL) filename provided. msBuildPath: Unable to access file. msBuildPath: Unable to access file. MS is somewhat confused and tries to query that layer which has no data. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD TextSymbolizer in 6.1-dev
Does anyone have an idea what might be the problem here? Can you try with LabelPropertyNameKOMNAVN/PropertyName/Label instead of TextSymbolizer LabelKOMNAVN/Label [...] /TextSymbolizer It seems msSLDParseTextParams() tries to read the string value of Label/PropertyName to build the expression but msSLDGenerateTextSLD() writes only Label with the LABELITEM as text content. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD TextSymbolizer in 6.1-dev
Sorry, missed the temporary map file... It misses everything that deals with the font and currently I guess the font related CssParameter should be enclosed by Font. Font CssParameter name=font-familyverdana/CssParameter CssParameter name=font-size12.00/CssParameter /Font Thanks for joining in :-) Unfortunately it doesn't seem to make a difference adding the PropertyName tag inside the Label tag. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver Template - BBOX
You might try: [shpminx], [shpminy], [shpmaxx], [shpmaxy] Minimum / maximum X or Y coordinate of shape extent. Available only when processing query results. See http://mapserver.org/mapfile/template.html#query HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Donald Kerr Gesendet: Dienstag, 24. Juli 2012 11:57 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Mapserver Template - BBOX Hi list, I am trying to use BBOX in a WFS query template where I need to get the minx, miny etc in the following format: 258481,665862 258607,665956 i.e. a space between coordinate pairs which are separated by a comma. In the template, [bbox] returns 258481,665862,258607,665956 with each value separated by a comma. I have tried [bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy] without success. Is there a way to achieve what I am looking for? Many thanks. Regards, Donald ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Info on wms_version parameter
Hi, wms_server_version is a layer level metadata used only by WMS client layers and is the WMS version to use when querying the cascaded remote WMS. A WEB metadata called wms_getcapabilities_version specifies the default version to respond with if the client doesn't provide one on a GetCapabilities request. There's IMHO no option to restrict the server to a specific version. HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Andrea Peri Gesendet: Montag, 23. Juli 2012 11:31 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Info on wms_version parameter Hi, what mean the wms_version parameter ? I'm not able to find any information on documentation about it. I try also to set it to wms_version=1.1.0 or wms_version=1.3.0 but I'm not able to notice any difference. Both allow a getcapabilities request for version=1.3.0. Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Info on wms_version parameter
My doubt is about a strange wms_version parameter. I found this parameter wms_server 1.3.0 on a mapfile I'm studying, but don't find any info on this parameter. From your response I understand that the wms_version parameter is simply a digit mistake. Right ? It seems that neither wms_server nor wms_version exist. If you use another WMS as input use wms_server_version at the layer's metadata to specify the WMS version to connect with. And if you want to present a lower version to clients use wms_getcapabilities_version on the WEB metadata. Nevertheless if a clients asks with VERSION=1.3.0 for a GetCapabilities MapServer will respond with v1.3.0. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] One template for every text type
The URL actually gives a feature result (#135), but no attribute data. You need to set {wms,ows}_include_items metadata at layer level: * wms/ows_include_items: comma delimited list or keyword 'all' HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Andrea Peri Gesendet: Mittwoch, 11. Juli 2012 12:45 An: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] One template for every text type Hi Steve, thx very much for you rhint. I ubnderstand and start to try it. Now I found some strange. It seem mapserver trunk don't work well when mime/type = text/plain. I see infact the sample link in the documentation for text/plain repeort this result (no feature listed) http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1. 1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,5 7.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTY LES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280 Instead using the html link mapserver list the features. http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1. 1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,5 7.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTY LES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/htmlX=229Y=280 2012/7/9 Lime, Steve D (DNR) steve.l...@state.mn.us The QUERYABLE parameter was never implemented so you still must define a layer TEMPLATE to mark a layer as being queryable. The template need not exist so typically I just do: TEMPLATE 'void' The link between layers and OUTPUTFORMAT templates are in the templates themselves via the [resultset] tag. Steve From: Andrea Peri [mailto:aperi2...@gmail.com] Sent: Monday, July 09, 2012 5:15 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] One template for every text type Hi Steve, thx for hint. I read the doc and also the RFC 36. I'm having also some doubt. I try to set this output format: OUTPUTFORMAT NAME delimitazione_fogli_xml MIMETYPE text/xml DRIVER TEMPLATE FORMATOPTION FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl END at WEB level I set this value: WEB METADATA wms_feature_info_mime_type text/xml END END And how explained from RFC I comment the template from layer level and try to add the tag QUERYABLE TRUE (But this option seem to be not supported from MapServer 6.2 trunk) If I remove the template tag from layer level I have this error: msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable. And if I try to add the QUERYABLE TRUE tag I have this error: Unknown identifier. Parsing error near (QUERYABLE) So I need to maintain the template ad Layer level. This force the layer to use the template from that tag instead of the tag from FORMATOPTION. Also I don't understand how to link the specific format option the a specific layer. Thx, Andrea. 2012/7/6 Lime, Steve D (DNR) steve.l...@state.mn.us Hi Andrea: You can define multiple output formats that use the template driver. They can each have different names and mime-types. You can even use mime subtypes if you needed, say, two XML formats. The MapServer CGI supports a parameter called qformat that allows you to change the query template to be used. I'm not sure how this works with WFS, probably via mime-type. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri Sent: Tuesday, July 03, 2012 5:42 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] One template for every text type Hi, As report from documentation, MapServer will allow to define a template to set the return from an identify. I need to define almost two distinct kind of returns: One for user (text/plain or text/html) and one for business application (text/xml). So I like to define not only a template for return an XML but also a template for return an html page. I don't know how to say to MapServer what template us for text/html and what for text/xml. Is this possibile ? Thx. -- - Andrea Peri . . . . .
Re: [mapserver-users] wms_encoding
In a mapfile, I believe it's not possible to specify two different wms_encoding on a same layer. So, if I want to response with requests from openlayers and qgis, I must configure data in mapfile with two different layers (layer1 with wms_encoding=ISO-8859-1, layer2 with wms_encoding=UTF8 ? is it ok ? wms_encoding should go into MAP.WEB.METADATA section as it sets the encoding for all responses of the web map service and doesn't deal with individual layers. It should be noted that MapServer doesn't really encode WMS responses. It actually writes data out as it comes in from map file and data sources. So those should be consistent. You should check that HTTP headers match the encoding of your template and data. QGIS should then be able to read it correctly. If this is still not the case you should create an issue on qgis.org. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms_encoding
Hi, so I add wms_encoding=ISO-8859-1 in METADATA/WEB. But I don't understand why the result is not similar in OpenLayers and qgis. if this is the case, you usually broke the path of encodings. You should check the URL requested by the browser and by QGIS. Then send that query via wget -d or similar to see the headers too. With a XHTML GetFeatureInfo response there are actually three places to tell the encoding: the HTTP response headers, the XML declaration and a http-equiv meta within the HTML document header. If this is not consistent the result depends on what will be preferred. Hopefully you can track this down. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP mapscript using OracleSpatial
Hello Jessica, I've tested your code successfully on PHP MapScript v5.2.0. I have issues with oraclespatial, and I just keep getting errors that the layer can't be drawn. What errors do you get? Something like [...] Error: ORA-12154: TNS:could not resolve the connect identifier specified? Then you might need to set some environment variables first. For example, I set ORACLE_HOME, TNS_ADMIN, LC_CTYPE and NLS_LANG. The lack of error reporting from php hasn't been helping matters either ;) You can execute your script on the command line via php scriptname. This will display errors as long as error_reporting(E_ALL) or similar is set: $ php test.php Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'ASSET'. in /tmp/foo/test.php on line 53 Warning: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . in /tmp/foo/test.php on line 53 Error in msDrawMap(): Failed to draw layer named 'ASSET'.br HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php_mapscript not being loaded
Hi, dl('php_mapscript.so'); . Which difference about load library in the page and call the library load by apache? there's basically no difference except that on some sites this PHP extension is not enabled so a script needs to load it explicitly at runtime via dl(). If your site uses it seldomly other scripts might run faster since the interpreter doesn't need to initialize this extension but I don't know that exactly. Regarding functionality it makes absolutely no difference. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [Mapserver-users] map cache - is it possible to access different was sources based on the current resolution or scale?
Hello, Second, I am using windows (ms4w) so I don't know if that would have an impact on how or if I can set up seemliness. Did you set your seemliness up in the Linux OS, or under the Apache configuration? I set it up under Linux. Apache and even MapCache are out of scope since this is a trick using pure filesystem capabilities. I asked a windows system administrator and he told me that Windows 7 and Windows Server 2008 support hard links. The easiest way to set this up would be to let the Apache web server/MapCache create the filesystem structure by requesting at least one tile for every zoom level of both tilesets. When this works as expected then you can delete the level directories of one tileset for the levels to be shared an recreate them as links to the directories of the second tileset. HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale?
Hi Mark, The two layers are in the same grid. I didn't see any documentation on using symlink for zoom levels. How would I set that up in my configuration file? you configure mapcache as usual and symlink the levels for the shared zoom levels. MapCache creates a directory structure in the filesystem for every tileset like base/tileset/grid/zoom_level. You can also create it by hand (watch for correct access rights) and then symlink directories from the second tileset to the first. It should look something like this: # cd base/tileset1/grid/; ls -ld drwxrwxr-x 3 apache apache 3896 Aug 30 2011 00 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 01 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 02 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 03 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 04 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 05 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 06 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 07 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 08 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 09 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 10 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 11 drwxrwxr-x 2 apache apache 3896 May 14 15:08 blanks # cd base/tileset2/grid/; ls -ld drwxrwxr-x 3 apache apache 3896 Aug 30 2011 00 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 01 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 02 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 03 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 04 lrwxrwxrwx 1 root root 22 Dec 7 2011 05 - ../../tileset1/05 lrwxrwxrwx 1 root root 22 Dec 7 2011 06 - ../../tileset1/06 lrwxrwxrwx 1 root root 22 Dec 7 2011 07 - ../../tileset1/07 lrwxrwxrwx 1 root root 22 Dec 7 2011 08 - ../../tileset1/08 lrwxrwxrwx 1 root root 22 Dec 7 2011 09 - ../../tileset1/09 lrwxrwxrwx 1 root root 22 Dec 7 2011 10 - ../../tileset1/10 lrwxrwxrwx 1 root root 22 Dec 7 2011 11 - ../../tileset1/11 lrwxrwxrwx 1 root root 22 Dec 7 2011 blanks - ../../tileset1/blanks drwxrwxr-x 2 apache apache 3896 May 14 15:08 base/tileset1/grid/blanks This construct shares levels 5-11 between tileset1 and tileset2. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale?
If the grid matches, you can easily symlink the zoom levels. HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Mark Volz Gesendet: Dienstag, 26. Juni 2012 23:28 An: MapserverList OSGEO Betreff: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? Hello, I would like to use mapcache to cache two layers. The first is a basemap that displays a political map when zoomed far out, or an air photo depending when zoomed in. The second layer displays that same air photo, but at all zoom levels. Is there any way to conserve disk space so the two layers share the same physical cache when zoomed in? Thanks Mark Volz GIS Specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] shortest_path query
You need to create a LineString geometry using a spatial aggregate like ST_MakeLine() first. Consider reading the pgRouting documentation, f.e. http://www.pgrouting.org/docs/howto/mapserver.html -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Annu Anurag Gesendet: Dienstag, 12. Juni 2012 19:55 An: mapserver-users Betreff: [mapserver-users] shortest_path query Hello there. I've got the query for shortest path using pgrouting to run finally. I get the edges but now I need to map my result onto a mapserver layer. I've tried examples from the internet but mostly they're flawed. I'm positng the query which has worked for me. Please suggest a way to convert it into a visible layer using mapserver. SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, 210, false, false) I tried to form a query-layer but failed. I'm sending the code I used to. Please correct me. DATA the_geom FROM (SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, 210, false, false)) AS foo using unique gid using srid=4326 Here is the layer definition: LAYER NAME route CONNECTIONTYPE postgis CONNECTION user=postgres password=*** dbname=VSDelhidb host=localhost DEBUG 5 STATUS DEFAULT TYPE LINE DATA the_geom FROM (SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, 210, false, false)) AS foo using unique gid using srid=4326 TEMPLATE t # # //THE CLASS THAT CLASSIFIES EVERYTHING IN IT. # CLASS # # /THE STYLE OF DRAWING THIS CLASS. # NAME 0 STYLE SYMBOL circle SIZE 10 OUTLINECOLOR 255 0 0 COLOR 165 42 42 END #___END OF THE SYLE DECLARATION FOR THIS CLASS.___# END #_END OF THE CLASS THAT CLASSIFIES EVERYTHING.___ ## END #END OF THE LAYER THAT DRAWS EVERYTHING._## ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Scripted geoprocessing
I am looking for a way for this script to dissolve polygons with a common attribute. This will help rendering speed and ease of visualization. What are you trying to achieve? Splitting a shapefile into smaller pieces by grouping features with common attribute(s) as a kind of pre-classification? Then ogr2ogr might help you. See http://www.gdal.org/ogr2ogr.html and http://www.gdal.org/ogr/ogr_sql.html how to use this tool. Also http://mapserver.org/optimization/vector.html might help you. Greetings ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Layers mutually exclusive
You might try at the layer level: REQUIRES [expression] Sets context for displaying this layer, for example: REQUIRES ![orthoquads] means that this layer would NOT be displayed if a layer named orthoquads is on. The expression consists of a boolean expression based on the status of other layers, each [layer name] substring is replaced by a 0 or a 1 depending on that layer's STATUS and then evaluated as normal. Logical operators AND and OR can be used. If you have let's say three layers called scale_0, scale_1 and scale_2 for consecutive intervalls of the scale, you can try REQUIRES ![scale_1] and ![scale_2] on layer scale_0. I don't know if this works as expected, never tried that... HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Andrea Peri Gesendet: Montag, 30. April 2012 13:13 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Layers mutually exclusive Hi, is possible in Map Server to set two or more layers (raster layers) to be mutually exclusive to each other ? I have some raster set each of they is fully cover. So if pretty unuseful to have a wms request that ask for two or more of this layer sets. I don't know if this is possible, but if it could be possible it was surely give a better performance for my MapServer. Infact if an user ask for many raster set, only the top-most should be visible instead the other asked layers in the same request was not visible and they would be only an unuseful lost of elaboration time. Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Help installing mapserver 4.10.7
This file will be auto-created by the build process using flex. You should be able to directly install it from Red Hat repos via # yum install flex HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Erica Gesendet: Freitag, 6. April 2012 22:00 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Help installing mapserver 4.10.7 I'm attempting to install mapserver 4.10.7 on RHEL 5.6 (kernel 2.6.18-238.35.1.el5). Configure works successfully, but I get the following error when running make: : -Pmsyy -i -omaplexer.c maplexer.l gcc -c -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include maplexer.c -o maplexer.o gcc: maplexer.c: No such file or directory gcc: no input files make: *** [maplexer.o] Error 1 maplexer.c does not appear to exist either in the tarball or in the branches for 4.10.7. maplexer.o is the only file present. Has anybody encountered this before? What's the workaround? Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Getting an image scaled to pixels
You might try: mapserverMap.setConfigOption(MS_NONSQUARE, YES); this is basically what that WMS server code does to enable non-square pixels. HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Stuart Gesendet: Freitag, 9. März 2012 01:33 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Getting an image scaled to pixels Hi, I have a csharp application using map_script that I am using to cut up an ECW file into tiles for display on a Bing map. The issue I am having is that each tile slightly overlaps others above and below it. The procedure I am using is as follows: I load the basic map file below add the projection and units from within a csharp application: mapserverMap = new mapObj(mapOutputPath + mapFileName); mapserverMap.setWKTProjection(+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs ); mapserverMap.setSize(256, 256); mapserverMap.units = MS_UNITS.MS_DD ; I then use the csharp application to add a single RASTER layer layerObj layer = new layerObj(mapserverMap); Console.WriteLine(mapserverMap.layerorder); layer.name = ecwName; layer.type = MS_LAYER_TYPE.MS_LAYER_RASTER; layer.status = mapscript.MS_ON; layer.sizeunits = (int)MS_UNITS.MS_PIXELS; var extentdoubles = GetPlanExtentFromDB(ecwName, planConnectionString); layer.setExtent(extentdoubles[0], extentdoubles[1], extentdoubles[2], extentdoubles[3]); layer.data = mapOutputPath + ecwName + .ecw; I have identified the issue is when for each quadKey I set the mapserverMap extent to the bounding box of the quadKey MapServer changes the latitudes of its extent to fit the map size (256 x 256) e.g. for quadKey 31121320312020 i set the MapServer extent to: maxX 152.95166015625 maxY -30.334953881988554 minX 152.9296875 minY -30.353916372297036 Then after setting the extent if I ask MapServer for its extent it returns: mapserverMap.extent {OSGeo.MapServer.rectObj} maxx: 152.95166015625 maxy: -30.333448799017795 minx: 152.9296875 miny: -30.355421455267795 Notice the Longitudes are the same but the Latitudes (minY, maxY) have been stretched. So my question is that when I set mapserverMap object to the bounding box I want it to be set to the latitude and longitude given and stretched to fit the map size (256 x 256) rather than MapServer modifying the latitudes to fit the map size. Any help would be appreciated. Stuart -- Here is the starting map file MAP NAME MyMap DEBUG ON IMAGECOLOR 128 155 155 UNITS DD RESOLUTION 96 TRANSPARENT OFF CONFIG PROJ_LIB /ms4w/proj/nad/ CONFIG CPL_DEBUG ON SYMBOLSET ./etc/symbols.sym IMAGETYPE png FONTSET ./etc/fonts.txt END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile
This is due to the usage of libXML2. Its internal data format is UTF-8 and MapServer has no way to deal with different map file encodings. Therefore libXML2 aborts due to invalid UTF-8 input data on serialization. Transcode your map file to UTF-8 and it should work. Note that libXML2 is _not_ used for WMS and older WFS services. These use plain fprintf() to write data out as is. So you might encounter crazy things when trying to use different encodings on data, map file and web server output. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Rahkonen Jukka Gesendet: Freitag, 3. Februar 2012 10:24 An: 'mapserver-users@lists.osgeo.org' Betreff: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile Hi, This should be simple to test and verify. Write into WEB METADATA parameters wms_title test_ö wfs_title test_ö WMS 1.1.1 GetGapabilities does not have any trouble with ö and request sends back ... Service NameOGC:WMS/Name Titletest_ö/Title However, WFS GetCapabilities response gets truncated. All that Mapserver sends is this ?xml version=1.0 encoding=ISO-8859-1? wfs:WFS_Capabilities xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; xmlns:ows=http://www.opengis.net/ows; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ogc=http://www.opengis.net/ogc; xmlns=http://www.opengis.net/wfs; version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; ows:ServiceIdentification ows:Titletest_ The same error occurs if non-ascii characters are used in wfs_abstract. I was testing on Windows and Mapserver 6.0.1. -Jukka Rahkonen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver Layer Filter
You might try OGR Virtual Data Driver: http://www.gdal.org/ogr/drv_vrt.html. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Hawk AA Gesendet: Donnerstag, 12. Januar 2012 17:24 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Mapserver Layer Filter Hi there, Mailing List, We have a customer that wants their maps to be published online, but some of the features is confidential and should not be displayed. We have added following to the layer definition: FILTER ('[type]' != GRØFT ) It works, the features with type GRØFT are not showed in the map. However, we have a window that let the user browse the data, and it will be possible to access the features of type GRØFT. When you press show in map, the JavaScript clients triggers a WFS request with a filter asking for elements with the current ID. By doing this, WFS omits the LAYER FILTER definition, so the element can be showed in the map, even if it is of type GRØFT. I need a way to make sure the WFS can't deliver any data of type GRØFT. I've seen three possible solutions: 1. We have a service that automatically converts uploaded MapInfo *.TAB-files to SHP. If I am correct, I could use the -where-argument on the ogr2ogr to filter data and only get features which does not have type GRØFT. I hope I do not have to do this, since debugging and developing a windows service is quite tricky. 2. Add additional filter values to the WFS query. I could also define the types not to show in the JavaScript, and let the application automatically add PropertyIsNotEqualTo-tags to the AJAX query. This would be less secure, and I need to define types not to show at two places. 3. The best solution in my eyes is to let the magic happen in the MAP-file, and that is mostly why I am posting here. Is there a way to add a query to the Layer Data definition, like you do if you are querying a MSSQL database? I can imagine a syntax like this: CONNECTIONTYPE OGR CONNECTION TM_Nett/TM_Points DATA SELECT * FROM tm_points WHERE type!='GRØFT' It does not seem to work. Any suggestions, especially regarding the third solution? Best regards, Håkon Åmdal ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver ogc:Filter fails against Geoserver WFS
At least in version 6.0.1 MapServer checks if a Filter or ogc:Filter tag was given in wfs_filter metadata and uses this. So you should be able to use Filter without a namespace prefix. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Michal Šrédl Gesendet: Freitag, 6. Januar 2012 10:52 An: mapserver-users@lists.osgeo.org Cc: Premysl Vohnout; Jachym Cepicky Betreff: [mapserver-users] Mapserver ogc:Filter fails against Geoserver WFS Dear all, I am not able to use WFS filter in Mapserver Mapfile against the Geoserver WFS, apparently as Mapserver produces invalid XML as the final filter that goes to the request. In Mapfile, I say LAYER METADATA wfs_filter 'ogc:PropertyIsEqualTo xmlns:ogc=http://www.opengis.net/ogc;ogc:PropertyNameSTUPE N/ogc:PropertyNameogc:Literal3/ogc:Literal/ogc:PropertyIsEqualTo' (the whole Mapfile is attached) The request that leaves Mapserver towards the Geoserver WFS looks like this: http://88.81.191.230:8080/geoserver/ows?REQUEST=GetFeatureVE RSION=1.0.0SERVICE=WFSTYPENAME=ccss:Flood2010_FloodActivityG radeFILTER=ogc:Filterogc:PropertyIsEqualTo+xmlns:ogc=http://www.opengis.net/ogc;og c:PropertyNameSTUPEN/ogc:PropertyNameogc:Literal3/ogc:Li teral/ogc:PropertyIsEqualTo/ogc:Filter Please note the ogc:Filter filter tag - with namespace used, but not defined. This is an issue, as it is not valid and Geoserver replies with an exception. Changing manually the filter tag either to Filter or ogc:Filter+xmlns:ogc=http://www.opengis.net/ogc; makes the whole thing work. Unfortunately, the Mapserver documentation [1] says, that The filter given as a value of the wfs_filter metadata should not contain Filter start and end tags. So whatever I provide as the wfs_filter value, is later broken by ogc:Filter tag. Do you consider it a bug? Or is there any way how to make Mapserver to create the filter as valid XML? Or let me include the Filter tag in the wfs_filter? Thank you for your advice, Michal Note: Mapserver itself wouldn't mind such a behaviour and would accept such a request, e.g. this one: http://bnhelp.cz/cgi-bin/crwfs/cgi-bin/crwfs?REQUEST=GetFeatu reVERSION=1.0.0SERVICE=WFSTYPENAME=okresyFILTER=ogc:Filte rogc:PropertyIsLessThan+xmlns:ogc=http://www.opengis.net/ogc;ogc:PropertyName KODOK/ogc:PropertyNameogc:Literal3555/ogc:Literal/ogc:P ropertyIsLessThan/ogc:Filter But Geoserver is not that tolerant... [1] http://mapserver.org/ogc/filter_encoding.html ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] small mapserver admin tool errors
Use try+catch: http://www.php.net/manual/en/language.exceptions.php -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von kaaos Gesendet: Montag, 12. Dezember 2011 22:30 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] small mapserver admin tool errors Hi. Im writing a small admin tool for MapServer for own use in PHP with MapScript. I'm building a mapfile object with ms_newMapObj() and then throwing elements into database, forms, etc. I've got this problem that when a mapfile has errors (pure simple like 'IMAGETYPE pnhgg' instead 'IMAGETYPE png') the mapscript parser throws an error and the whole application stops. The thing is that I want the application on to at least tell the user, that his mapfile has errors and for example open a textarea where the user could edit his whole mapfile without throwing it to ms_newMapObj(). I tried many things but nothing seems to work. The thing is, it's msPostMapParseOutputFormatSetup() which actually crashes and which is used by ms_newMapObj(). I dont have access to msPostMapParseOutputFormatSetup(). Sample: A PHP Error was encountered Severity: Warning Message: ms_newMapObj(): [MapServer Error]: msPostMapParseOutputFormatSetup(): Unable to select IMAGETYPE `pnfg'. Filename: controllers/program.php Line Number: 35 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file D:\ms4w\Apache\htdocs\p3\p3.map' in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\program.php:35 Stack trace: #0 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\program.php(35) : ms_newMapObj('D:\ms4w\Apache\...') #1 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\program.php(10) : Program-index() #2 [internal function]: Program-save_f_tmp() #3 D:\ms4w\Apache\htdocs\ci_doctrine\system\codeigniter\CodeIgnit er.php(236): call_user_func_array(Array, Array) #4 D:\ms4w\Apache\htdocs\ci_doctrine\index.php(115): require_once('D:\ms4w\Apache\...') #5 {main} thrown in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\program.php on line 35 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file D:\ms4w\Apache\htdocs\map_file\map_file.map' in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\load_controler. php:35 Stack trace: #0 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\load_controler. php(35): ms_newMapObj('D:\ms4w\Apache\...') #1 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\load_controler. php(10): Program-index() #2 [internal function]: Program-svft() #3 D:\ms4w\Apache\htdocs\ci_doctrine\system\codeigniter\CodeIgnit er.php(236): call_user_func_array(Array, Array) #4 D:\ms4w\Apache\htdocs\ci_doctrine\index.php(115): require_once('D:\ms4w\Apache\...') #5 {main} thrown in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle rs\load_controler. php on line 35 Thanks for any help. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/small-mapserver-admin-t ool-errors-tp7087821p7087821.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Re: Reaspect?
The WMS standard was written this way to support display devices with non-square pixels. So it seems to me that you don't want to use a WMS service. You should really consider using MapServer with mode=map. This mode is more appropriate for custom web applications while the WMS standard is used to increase interoperability. That's pretty much what we've decided to do, although the resulting image is no longer square. We could, of course, do that, too. But this seems like work that really belongs on the server, not on the client side, where all I want to do is request an image and have it passed back to me, trimmed the way I asked. Rahkonen Jukka wrote: Hi, That's how the WMS standard is written. Request must contain BBOX, WIDTH and HEIGHT and server must respect them all. Reaspect parameter does do something useful against some ArcIMS servers which are configured in a certain way. Could you describe mose closely when would you need so muct new code? Isn't taking the BBOX and calculating MaxX-MinX and MaxY-MinY, and then taking either WIDTH or HEIGHT as given and calculating the missing one good enough for your use case? -Jukka Rahkonen- SixDegrees wrote: That makes me sad, because I really need an ability similar to what I've described. I can probably pull it off on my own, but that will require a fair amount of new code to accommodate pixels that are widely different in width and height in many of our images. A capability similar to HTML's IMG tag, where the WIDTH and HEIGHT are strictly obeyed when both are present, but the original image's aspect ratio is maintained when one or the other is left off, would be ideal. I really hope this is not correct, and that the reaspect parameter will do something useful. I can experiment tomorrow when I'm back at the server. Rahkonen Jukka wrote: Hi, Reaspect does not seem to do anything with Mapserver acting as WMS server. The example here http://mapserver.org/trunk/faq.html is for Mapserver acting as a WMS client and reading data from some ArcIMS servers. -Jukka Rahkonen- SixDegrees wrote: Can someone provide an example of what the 'reaspect' parameter of a wms request will do when Mapserver receives it in a GetMap request? As I understand it (poorly) the WIDTH and HEIGHT will remain the same, but if 'reaspect=true' the BBOX may be adjusted so the aspect ratio of the projected image is preserved and WIDTH and HEIGHT just specify a window onto this correctly proportioned rendering, while if 'reaspect=false' the BBOX is retained along with WIDTH and HEIGHT and the image is stretched/squished to fit. Is this correct, or am I completely misunderstanding this? Also, if the above is true and 'reaspect=true' is set, how is the window defined by WIDTH and HEIGHT placed onto the image? Is it centered with respect to the BBOX? Placed against one of the corners? Or something else altogether? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reaspect-tp6953208p6953208.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@.osgeo http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@.osgeo http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reaspect-tp6953208p6953294.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@.osgeo http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@.osgeo http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reaspect-tp6953208p6955963.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Corrupted zipped shapefiles from WFS
This is simply a bug. This happens when a newline is accidentially sent to early. The web server treats this as the end of headers, merges the lines received so far with any additional header lines required and sends them out to the client. Everything apart the first empty line will be presented as content. Similiar things happened to me when I requested a GetFeature with a HTML template and received an error while using EXCEPTIONS=INIMAGE. MapServer had already sent the content-type header with value text/html but the error handler still respected the exceptions parameter and thought itself responsible to send the content-type header. The result was a html page starting with Content-type: imag/png; mode=24bit and a lot of junk - the exception as PNG image - funny. The best thing you can do is reproduce the error with a minimal map file, may be with an inline feature and create a ticket if there no one yet. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Keith Moss Gesendet: Mittwoch, 2. November 2011 07:51 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Corrupted zipped shapefiles from WFS Hi list, We're having a bit of an issue with the zipped shapefiles we're getting back from WFS GetFeature requests. Winzip claims that they're all corrupted* but, oddly, 7zip can open and extract the perfectly valid shapefile without issue. We tried to unzip the file with PHP's inbuilt ZIPArchive class, but that also had issues - it could read the files in there but would extract 0KB length files. Other output formats - CSV, GML, etc - work without issue. We've reproduced the issue on two separate Windows-based servers (2008 2003). We've noticed in the corrupted zip files that the file starts with: Content-Disposition: attachment; filename=result.zip Content-Type: application/zip (when we open it in Notepad). We've tried removing this, but it didn't help. Can anyone on the list, or one of the developers, shed any light on the situation? I've attached a simple test case with an example shapefile, would someone be able to try it on their setup for us please? We're using PHP MapScript with MapServer 6.0.1 (MS4W 3.0.3) / PHP 5.3.6. * The WinZip error: error [path.zip]: start of central directory not found; Zip file corrupt. http://osgeo-org.1803224.n2.nabble.com/file/n6954263/shapezip.zip shapezip.zip -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Corrupted-zipped-shapef iles-from-WFS-tp6954263p6954263.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Sporadically Cannot create OCI handlers
How do you use MapServer, do you use FastCGI? And which version? I had the same problem and I believe with v6.0.1 it doesn't happen anymore. I guess it happens when a connection handle isn't used for some time, the database server already closed it and MS picks it up but doesn't handle the error properly. But this is only a guess and happens so rarely that it's really hard to debug. How often does it occur on your site? Are you able to try without CLOSE_CONNECTION=DEFER? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Sporadically Cannot create OCI handlers
@Andreas: I tried without close_connection=defer, and the error doesn't occur anymore. So it seems like it is solved, but as you said, kinda hard to debug. The mapserver version is 5.6.3 and it supports fastcgi. Opening an Oracle connection is rather slow compared to the time MS renders the data. Without this option a fresh connection to the DB is created for every request and may be even for every layer using such a connection. Things tend to be rather slow so I don't think the problem is solved. Disabling the option just helps to locate the source of the error. Do you _use_ FastCGI or only the plain CGI method? I just talked to a colleague and he told me that this problem disappeared with MS v6.0.1 and so seems to be solved there. So you might want to give it a try. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver Projection Errors
This is drifting away from Mapserver proper, but is there a way to tell where Mapserver/GDAL/Proj.4 are expecting to find their input files, particularly the epsg file? You can try the PROJ_LIB directive on the MAP object to set the path to the epsg database file: MAP ... PROJ_LIB /usr/local/share/proj ... END If you are not sure if the file is used, try a init=epsg:... and comment the corresponding line out of the epsg file. This triggers a not found error. The library itself can be changed by using a LD_PRELOAD/LD_LIBRARY_PATH setting. Or is there any sort of misconfiguration that might produce an error like this? Can you provide a MAP file the causes the error? As long as we can not reproduce it there will sadly be not much help to offer... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver Projection Errors
The error is caused by the msOWSPrintBoundingBox() function during the GetCapabilities request because there's no {ows,wms}_srs metadata set. The used function msOWSGetEPSGProj() tries to fall back to the projections init= parameter but isn't available here. It seems the whole thing is used to support bounding boxes for multiple coordinate systems in the GetCapabilities document. This might only have an effect if using WMS v1.3.0, {ows,wms}_bbox_extended metadata set to true and {ows,wms}_srs projection list with more than one entry. In such a case the original layer extent must be reprojected in the listed SRS which might fail. In your case this might have no negativ impact beside the error message. To get rid off the message you need to set a {ows,wms}_srs metadata at layer level. It seems to be used to advertise the layer's CRS and build the multi BBOX feature only. Altough it might not harm you it might cause trouble in the future LAYER NAME test_image EXTENT 51.44325 35.71925 51.64125 35.87325 METADATA wms_title test_image wms_extent 51.44325 35.71925 51.64125 35.87325 END PROCESSING SCALE=AUTO PROCESSING SCALE_BUCKETS=256 TYPE RASTER DATA /data/geodata/yongbyon/test_image.vrt PROJECTION +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver Projection Errors
mapserver log fills up with the error message msProcessProjection(): Projection library error. projection not named As Daniel already noted, the error you receive can be translated as 'proj' argument missing. Since MS uses the number of arguments _and_ the existence of '+' to decide wether to interpret the PROJECTION block as a one-liner or as a list of projection parameters, I guess you mixed them somehow. So PROJECTION init=epsg:4326 END is interpreted as a list of projection parameters with only one entry and PROJECTION +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs END is interpreted as a one-liner which will be split into a list of parameters before invoking the pj_init() function. If you accidentially forget the quotes or '+' in one of your projection blocks it might be misinterpreted and therefore throw the error. Walk through your MAP file and make sure you use either one-liners using a single quoted string or a list of quoted parameters one at a line. Your examples are correct and the latter equals PROJECTION proj=longlat ellps=WGS84 towgs84=0,0,0,0,0,0,0 no_defs END HTH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] mapcache in a cluster
We use TileCache.py on two servers with the cache on an OCFS2 on a shared LUN in the SAN. No known issues with that for now. Note: Spurious stale lock files occurred already on a single machine. There seemed to be issues with lots of requests and a very slow upstream server. I used a cron job to delete lock files older than 5 minutes or so. As Thomas noted, if the lock files are created on a shared filesystem and you make sure the filesystem you use is able to lock files properly (read the docs carefully!) there's no reason why it should not work. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver Projection Errors
PROJECTION +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs END AFAIK this example should be OK... Should each argument have a '+' in front of it, or only the first? ..and yes, each argument needs the '+' and it should be a single string enclosed in quotes as in the example you've given. Note that I'm already trimming excess whitespace off the strings; gdal seems to add a space at the end of the string. I think spaces at the end are not a problem. How is GDAL involved here? How do you generate the map files? And how is map file generation related to QGIS? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] query in postgis works but in mapfile failed, why??
and the same in my mapfile gives nothing: DATA'geom FROM (SELECT seismic_line.fid,seismic_line.profile,seismic_line.geom FROM seismic_line, sar_contour_line WHERE seismic_line.geom sar_contour_line.geom AND INTERSECTS(seismic_line.geom, sar_contour_line.geom) AND sar_contour_line.contour = -600) AS FOO USING UNIQUE fid USING UNIQUE SRID=4326' why?? Should probably be ...) AS FOO USING UNIQUE fid USING SRID=4326' - without the UNIQUE in front of SRID. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver Projection Errors
Just wondering if the real meaning of the error is just Did not find projection code from the epsg/esri definition files, continuing by other means. Indeed I believe not. If you look into pj_init.c from the PROJ4 source, the core init function pj_init_ctx() contains this: /* find projection selection */ if (!(name = pj_param(ctx, start, sproj).s)) { pj_ctx_set_errno( ctx, -4 ); goto bum_call; } for (i = 0; (s = pj_list[i].id) strcmp(name, s) ; ++i) ; if (!s) { pj_ctx_set_errno( ctx, -5 ); goto bum_call; } according to pj_strerrno.c, these result in projection not named, /* -4 */ unknown projection id,/* -5 */ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: AW: [mapserver-users] Mapserver Projection Errors
I can trigger the message be a leading space. Replacing the original config: PROJECTION 'init=epsg:31468' END by the equivalent string from the epsg definition file: PROJECTION +proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=450 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs END all works well, but with a leading space: PROJECTION +proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=450 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs END it results in the mentioned error: $ /usr/lib/cgi-bin/ms6 QUERY_STRING=map=/data/Hohlraumkarte/Hohlraumkarte.mapservice=WMSrequest=GetCapabilities Content-type: text/html HTML HEADTITLEMapServer Message/TITLE/HEAD !-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- BODY BGCOLOR=#FF msProcessProjection(): Projection library error. projection not named /BODY/HTML So I guess your script doesn't properly generate the PROJECTION block... -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von SixDegrees Gesendet: Donnerstag, 20. Oktober 2011 12:36 An: mapserver-users@lists.osgeo.org Betreff: Re: AW: [mapserver-users] Mapserver Projection Errors To summarize the preceding thread contents: Mapfiles are generated using python, in turn using the GDAL libraries to extract information like the projection needed in the mapfile. Mapfiles are constructed for use in response to WMS requests. QGis initially makes a WMS GetCapabilities request, and this is what is producing the errors in the Mapserver logfile, one error per layer. This isn't specific to QGis; I get the same errors when I send my own GetCapabilities request through a browser. The returned XML does not contain any errors, and layers that have projections that differ from the top-level mapfile projection - for example, a layer with projection for UTM Zone 38N, with the mapfile set for epsg:4326 - have bounding boxes that have been correctly re-projected into the map's projection. If I replace the layer's Proj.4-style multi-argument string with init=epsg:, where is the layer's epsg code, no errors are thrown. Errors only arise when the multi-argument form of the projection string is used, even when it is equivalent to the epsg code projection. Eichner, Andreas - SID-NLK wrote: I think spaces at the end are not a problem. How is GDAL involved here? How do you generate the map files? And how is map file generation related to QGIS? ___ mapserver-users mailing list mapserver-users@.osgeo http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-Projection-Er rors-tp6908527p6912415.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: AW: [mapserver-users] WFS Spatial Filter Problem
OK, now run the CGI on the command line and append the QUERY_STRING parameter carrying the request parameters: $ /usr/lib/cgi-bin/mapserv QUERY_STRING='map=your/mapfile.mapservice=WFSrequest=GetCapabilities' This should give you the capabilities document. If that works use your failing one. This should expectedly fail. If you can't guess right now what causes the crash you can now use gdb to locate the error if you compiled with the debug option enabled. Let us know when you find more detailes about the cause. Regards -Ursprüngliche Nachricht- Von: Bryan Hempen [mailto:bhem...@sciops.esa.int] Gesendet: Mittwoch, 17. August 2011 11:55 An: Eichner, Andreas - SID-NLKM Cc: mapserver-users@lists.osgeo.org Betreff: Re: AW: [mapserver-users] WFS Spatial Filter Problem Hey guys, my current status report. I have tried the following list of things: - as proposed by Andreas, used shp2img. Works perfectly fine! - as proposed by Julien, took a look at the Apache error log. Here is a small excerpt of what it shows: [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] 3c3400-3c3403d000 r-xp fd:00 3123859 /usr/lib64/libldap_r-2.3.so.0 .2.31, referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html ... [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] 3c34a1c000-3c34a1d000 rw-p 0001c000 fd:00 3118384 /usr/lib64/libgeos_c.so.1.6.2 , referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html ... [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] Premature end of scrip t headers: mapserv, referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html In case it could be useful to see the whole log, please just tell me. Now, to wrap things up again adding some new insights by testing with different versions of the MapServer. This is what happened: When I try to use the WFS FE Spatial Filter Intersect with MapServer 5.6.5 on a PostGIS layer, it doesn't work and I get an Error 500. When, however, I use a WFS FE Spatial Filter like Intersect with MapServer 5.6.5 on a shapefile layer with the SAME data as the PostGIS layer contains, it works! When I try to use the WFS FE Spatial Filter BBOX with MapServer 5.6.5 on a PostGIS layer, it works! When I use a WFS FE non-spatial filter like PropertyIsEqualTo and/or combined with logical filters like AND or OR combined with the WFS FE Spatial Filter BBOX with MapServer 5.6.5 on a shapefile layer or a PostGIS layer with the the SAME data, it works! When I try to use the WFS FE Spatial Filter Intersect with MapServer 6.0.1 on a PostGIS layer, sometimes no results are returned and sometimes only some. The results are not accurate. When I try to use the WFS FE Spatial Filter Intersect with MapServer 6.0.1 on a shapefile layer, sometimes no results are returned and sometimes only some. The results are not accurate. When I use a WFS FE non-spatial filter like PropertyIsEqualTo and/or combined with logical filters like AND or OR combined with the WFS FE Spatial Filter BBOX with MapServer 6.0.1 on a shapefile layer or a PostGIS layer with the the SAME data, it seems to work, but I am not 100% sure. Therefore: No problem with Apache setup, mapfiles, data, client/requests. Should be a MapServer bug... Using the same PostGIS db and shapefile all the time and mapfiles modified as minimal as possible. Kind regards, Bryan On 10/08/2011 15:16, Eichner, Andreas - SID-NLKM wrote: Hi, HTTP error code 500 means: Internal Server error and is usually reported when the (F)CGI process dies. Probably a simple NULL pointer dereference due to a missing check which results in a segmentation fault... Ever tried the thing with shp2img? If this also segfaults try recompiling with debug enabled and run it trough gdb. Greets. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bryan Hempen Gesendet: Mittwoch, 10. August 2011 14:35 An: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WFS Spatial Filter Problem Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization
AW: [mapserver-users] WFS Spatial Filter Problem
Hi, HTTP error code 500 means: Internal Server error and is usually reported when the (F)CGI process dies. Probably a simple NULL pointer dereference due to a missing check which results in a segmentation fault... Ever tried the thing with shp2img? If this also segfaults try recompiling with debug enabled and run it trough gdb. Greets. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bryan Hempen Gesendet: Mittwoch, 10. August 2011 14:35 An: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WFS Spatial Filter Problem Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Tuesday, August 09, 2011 4:15 AM Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS Spatial Filter Problem Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.ma p http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.ma p ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from
AW: [mapserver-users] SLD Filter with comment breaks filter
Seems to be a bug in MapServers OGC filter implementation (mapogcfilter.c). I think it blindly handles XML nodes without checking there types which makes comments and text nodes being used as filter arguments as well... The code from MS 5.6.6 is the same as in 6.0rc2 so falling back to a previous version won't be a solution :( -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Arnd Wippermann Gesendet: Samstag, 7. Mai 2011 00:30 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] SLD Filter with comment breaks filter Hi, The filter PropertyIsLike works now as expected with 6 RC2. I have noticed two other issues: 1. The use of a filter And/Or with two or more conditions and adding a comment between the conditions resolves to true for all features, whether true or not. Filter And PropertyIsLike wildCard=* singleChar=. escape=! PropertyNameNA3DESC/PropertyNameLiteralAsia/Literal /PropertyIsLike !-- comment causes only one class in temporary mapfile -- PropertyIsLike wildCard=* singleChar=. escape=! PropertyNameDESCRIPTIO/PropertyNameLiteralContinent/Literal /PropertyIsLike /And /Filter 2. The use of a filter And/Or with only one condition resolves to true for all features, whether true or not. Filter And PropertyIsLike wildCard=* singleChar=. escape=! PropertyNameNA3DESC/PropertyNameLiteralAsia/Literal /PropertyIsLike /And /Filter Arnd ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
VS: [mapserver-users] Mapserver search performance
Have a look at http://www.gdal.org/ogr/ogr_sql.html and http://www.gdal.org/ogr2ogr.html If you have base.{shp,shx,dbf} and addon.dbf that look like $ ogrinfo -al -so base.shp INFO: Open of `base.shp' using driver `ESRI Shapefile' successful. Layer name: base Geometry: Multi Point Feature Count: 1099 Extent: (4636093.190318, 5632568.189608) - (4667726.042353, 5652933.942667) Layer SRS WKT: (unknown) OBJ_ID: String (10.0) OBJ_NAME: String (50.0) and $ ogrinfo -al -so addon.dbf INFO: Open of `addon.dbf' using driver `ESRI Shapefile' successful. Layer name: addon Geometry: None Feature Count: 1099 Layer SRS WKT: (unknown) OBJ_ID: String (10.0) GN: String (45.0) KN: String (13.0) KN2: String (7.0) HHO: Integer (4.0) you will end up in something like $ogr2ogr -f ESRI Shapefile -sql SELECT OBJ_ID, OBJ_NAME, GN, KN, KN2, HHO FROM base JOIN 'addon.dbf'.addon ON base.OBJ_ID = addon.OBJ_ID output base.shp and lead to this $ ogrinfo -al -so output/base.shp INFO: Open of `output/base.shp' using driver `ESRI Shapefile' successful. Layer name: base Geometry: Multi Point Feature Count: 1099 Extent: (4636093.190318, 5632568.189608) - (4667726.042353, 5652933.942667) Layer SRS WKT: (unknown) OBJ_ID: String (10.0) OBJ_NAME: String (50.0) GN: String (45.0) KN: String (13.0) KN2: String (7.0) HHO: Integer (4.0) Hope this helps :) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Mapserver configure error libgd.so
I guess it's a problem with autoconf/automake. Install them if you haven't already and try to recreate the configure script. On my Debian box I have to version: 2.13 and 2.50 and trying to recreate configure results in that: mapserver-6.0.0-beta7$ rm configure autoconf2.13 autoconf: Undefined macros: configure.in:773: dnl AC_CHECK_DECL needs to know the gd include path configure.in:778: AC_CHECK_DECL(gdImageGetTrueColorPixel,[GD_HAS_GET_TRUE_COLOR_PIXEL=yes],,[#include gd.h]) configure.in:832: AC_CHECK_DECL(gdImageGetTrueColorPixel,[GD_HAS_GET_TRUE_COLOR_PIXEL=yes],,[#include gd.h]) mapserver-6.0.0-beta7$ ./configure --prefix=/usr --with-wmsclient --with-oraclespatial=/opt/instantclient_10_2/ --with-postgis --with-ogr --with-gdal --with-proj --with-cairo --with-geos --with-xml2-config=/usr/bin/xml2-config --with-wfs --with-threads ... checking for GD 2.0.28 or higher checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lpng -lz -lXpm -lX11 ). ./configure: 4297: Syntax error: word unexpected (expecting )) and that: mapserver-6.0.0-beta7$ rm configure autoconf2.50 mapserver-6.0.0-beta7$ ./configure --prefix=/usr --with-wmsclient --with-oraclespatial=/opt/instantclient_10_2/ --with-postgis --with-ogr --with-gdal --with-proj --with-cairo --with-geos --with-xml2-config=/usr/bin/xml2-config --with-wfs --with-threads ... checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. So configure created with autoconf2.50 works where as with 2.13 does not... HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Sarel Coetzer Gesendet: Donnerstag, 5. Mai 2011 09:34 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Re: Mapserver configure error libgd.so Hi All my libs are present. I am using LAMPP. The specific error I am getting starts from: checking for gdFontCacheSetup in -lgd... no configure error: Could not find gd.h or libgd.a/libgd.so Any ideas what the issue might be? Sarel Coetzer | GIS Developer Malaria Research Programme Medical Research Council ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: VS: [mapserver-users] Mapserver search performance
Hi. The first thing to note: editing a DBF with Excel Co. seems to be a _really_ bad idea. Those who tried that got Shapes wired to wrong attribute lines. So DBF, SHP, SHX and QIX files have to be used as a whole or will usually end up in a corrupted dataset. I would suggest ogr2ogr from the GDAL suite. It's fast, reliable, can do joins and is aware of the mentioned dependencies. Please note that such a fileset can only provide a spatial index via a QIX file. This is OK if you only want to filter by BBOX. If you want to filter by attribute all lines of the DBF still need to be scanned. In such cases it's wise to use ogr2ogr to split the data in pre-filtered sets. Using a more sophisticated database like PostGIS or SpatialLite can help you implement more complex scenarios. Since MapServer has no native driver for SpatialLite it's probably not as fast as it is supposed to be. This mostly depends on OGRs implementation. Greetings Is there a DBF editor out there that can be used to import the fields from any external data source into the shapefile attribute DBF without affecting the structure? I looked for a lot but they do not have the capability of doing a JOIN based on a common field and pulling data into the shapefile DBF automatically. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: VS: [mapserver-users] Mapserver search performance
Hi, AFAIK dBase files don't provide an index themselves and there's no other way to provide one. shptree only creates an spatial index. Therefore only queries like 'does this geometry touch/intersect/lie within a given rectangle'can be accelerated. I tried the shptree tool but did not see any performance improvement. So this becomes clear: By doing a JOIN MapServer basically runs a loop: for each geometry that matches search withing external data for a line matching the join condition. Could it be because all of this information that I require is coming from an external DBF file that I join to the layer/shape's DBF? Will including all these fields/information in the shape's DBF file itself help? I'm pretty sure that this would help, since this would avoid the (unaccelerated) join. With a database like PostgreSQL/PostGIS or SQlite it's basically the same problem: if you don't create an appropriate index for the join condition, this becomes an costly operation. Although those columns are usually primary and foreign key columns with appropriate index and the join condition is usually a simple equality match. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Troubleshooting a cascading mapserver install.
Just tried a simple request on a WMS server you're cascading: http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?layers=nexrad-n0r-m05mSTYLES=FORMAT=image/pngwidth=512height=512bbox=-180,-90,+180,+90 resulted in the following error: msSaveImageGD(): Unable to access file. Unable to open file /mesonet/www/html/tmp/nexrad_base_reflect129828395630777.gif for writing Looks like the cascaded ones already have a problem. Check that first. HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Gregory Gesendet: Samstag, 19. Februar 2011 20:31 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Troubleshooting a cascading mapserver install. Hi all, I've recently setup a mapserver install on a linux machine. So far the mapfile is written to pull other images from other servers. But unfortunately I get a blank return image and using google earth to display shows a big red X! Here's the mapfile: # # Start of map file # MAP NAME BLACKBERRY STATUS ON SIZE 1000 1000 EXTENT -180 -90 180 90 IMAGECOLOR 139 137 137 IMAGETYPE PNG24 UNITS DD WEB IMAGEPATH /home/greg/public_html/mapserverdemo/tmp IMAGEURL /tmp/ METADATA WMS_TITLE Blackberry WMS Server WMS_ABSTRACT This is a WMS application for display on a blackberry. WMS_ACCESSCONSTRAINTS none WMS_SRS EPSG:4326 END END LAYER NAME CONUS NEXRAD Base Reflectivity (n0r) STATUS ON TYPE RASTER CONNECTION http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?; CONNECTIONTYPE WMS METADATA wms_formatimage/png wms_srsEPSG:4326 wms_namenexrad-n0r-m05m wms_server_version 1.1.1 END END LAYER NAME CONUS NEXRAD Storm Total Precipitation (ntp) STATUS ON TYPE RASTER CONNECTION http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/ntp.cgi?; CONNECTIONTYPE WMS METADATA wms_formatimage/png wms_srsEPSG:4326 wms_namenexrad-ntp wms_server_version 1.1.1 END END LAYER NAME NWS Current Polygon Warnings STATUS ON TYPE RASTER CONNECTION http://mesonet.agron.iastate.edu/cgi-bin/wms/us/wwa.cgi?; CONNECTIONTYPE WMS METADATA wms_formatimage/png wms_srsEPSG:4326 wms_namewarnings_p wms_server_version 1.1.1 END END END # Map File Testing with shp2img works and I get some nice outputs from my mapfile. But once I pop it into a wms client, nothing seems to show. Is it my extents boundaries? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] MAXSCALEDENOM does not work as expected.
Display resolution problem: 72 dpi versus 96 dpi. 72 / 96 * 100% = 75% So play with MAP.RESOLUTION directive... -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von sulu Gesendet: Montag, 21. Februar 2011 10:27 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] MAXSCALEDENOM does not work as expected. Hi. Maybe there is an explanation for this phenomenon but if so, i don't know of any. If i want want to set an upper Scale limit of e. g. 1:5000 i have to multiply 5000 by 0.75 (MAXSCALEDENOM 3750). Thanks in advance. Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAXSCALEDENOM-does-not-work-as-expected-tp6048023p6048023.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] WMS SLD Troubles
Hi, it looks like the Python MapScript module is compiled against a different regex libary than the Python interpreter uses. The premature end of script headers is usually caused by a SIGSEGV where the script gets killed before being able to send any headers. I would suggest to build python-mapscript on your own. HTH -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Frank Broniewski Gesendet: Freitag, 11. Februar 2011 10:30 An: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WMS SLD Troubles Ok, I've found a problem with the parsing of OWSRequest.setParameter() My code: ... elif request.method == 'GET': logging.debug(%s: Request method is GET % datetime.datetime.now()) for key, value in request.args.items(): if key.lower() == 'sld': logging.debug(%s: Escaping %s % (datetime.datetime.now(), key)) logging.debug(%s: Value is %s % (datetime.datetime.now(), value)) value = urllib.quote_plus(value) g.ows_request.setParameter(key, value) if key.lower() == 'sld': value = g.ows_request.getValueByName(key) logging.debug(%s: Loaded Param %s % (datetime.datetime.now(), value)) mapscript.msIO_installStdoutToBuffer() success = g.ows_map.OWSDispatch(g.ows_request) ... What I'm basically doing here is setting the request parameters with setParameter on the ows_reqeuest object. When there is _no_ sld parameter in the request, escaping is not necessary. Once there is a sld request parameter, mapscript crashes when doing setParameter('SLD', 'http://192.168.0.111:8502/sld/style.sld') [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] success = g.ows_map.OWSDispatch(g.ows_request) [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] File /usr/lib/python2.5/site-packages/mapscript.py, line 1515, in OWSDispatch [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] def OWSDispatch(*args): return _mapscript.mapObj_OWSDispatch(*args) [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] MapServerError: msEvalRegex(): Regular expression error. String failed expression test. [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] msEvalRegex(): Regular expression error. String failed expression test. Using urllib.quote_plus I escaped the SLD URL back to a web representation and set it with setParameter. SLD=http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld request.args: Key: SLD Value: http://192.168.0.111:8502/sld/style.sld Quoted Value: http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld Loaded Param http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld Unfortunately quoting does not help, but the error this time is less clear than the one before: [Fri Feb 11 11:11:51 2011] [error] [client 192.168.0.2] Premature end of script headers: gishosting.wsgi the mapserver error log (debug 5) shows also no entry, so I am completely clueless what's going wrong here. Does someone have a clue whats going on there? Datasource is a Postgis database (OpenStreetMap data) which works without the SLD parameter. System is a Ubuntu Hardy 8.04 with the deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main sources /usr/lib/cgi-bin/mapserv -v MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE dpkg -l ||/ Name VersionDescription +++-==-==- ii apache22.2.8-1ubuntu0 Next generation, scalable, extendable web se ii python-mapscri 5.6.6-2~hardy1 Python library for MapServer ii mapserver-bin 5.6.6-2~hardy1 MapServer utilities ii cgi-mapserver 5.6.6-2~hardy1 CGI executable for MapServer Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04) And self compiled libapache2-mod-wsgi Frank Am 10.02.2011 15:00, schrieb Frank Broniewski: Ok, we've narrowed it down a bit. When we use the cgi-mapserver the SLD styling works, so the issue seems to be with (python) mapscript ... I will investigate further Frank Am 09.02.2011 09:18, schrieb Frank Broniewski: Hello, thank you for your kind help :-) I've put the requested informations below. Frank INFO: we're using /usr/lib/cgi-bin/mapserv -v MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
AW: [mapserver-users] Image Symbol Rendering Quality
Just an idea: You are using PNG images as labels which get transformed (rotated) and the AGG renderer draws them using anti-aliasing. But MapServer tends to cut short some code paths and so it probably does for simple transforms like rotation by 90/180/270° and which might ommit anti-aliasing... Since code says more than thousand words, what version are you using? BTW: What's the reason to use pre-rendered labels? -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Adam Eskreis Gesendet: Montag, 14. Februar 2011 21:25 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Image Symbol Rendering Quality Hey All, I am having a strang problem with my map. I am creating a layer composed entirely of PNG symbols. However, there is a very strang problem I am experiencing: Not all of the symbols are rendering iwth the same quality. This is best seen with the following image: http://img708.imageshack.us/i/symbolquality.png/ As you can see, the circled image is far more crisp than the rest of the images, which appear blurry. I've checked the image quality of the original images for all these images that appear blurry, and they are all good quality images that appear as crisp and clear as the circled image, but when mapserver renders them, they are losing significant quality. Why would this image appear more clear than the others? I am using AGG as my renderer, using pngs for input and output. This is my outputformat directive in the mapfile: OUTPUTFORMAT NAME AGGA MIMETYPE image/png; mode=24bit DRIVER AGG/PNG IMAGEMODE RGBA TRANSPARENT TRUE EXTENSION PNG FORMATOPTION INTERLACE=FALSE END Any ideas or help would be great. Thanks. -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL)
Hi Stella, according to http://dev.openlayers.org/docs/files/OpenLayers/Control/WMSGetFeatureInfo-js.html the WMSGetFeatureInfo control's constructor takes an array of OpenLayers.Layer.WMS objects. But you give it the list you used to draw as one layer. So you should create two OpenLayers.Layer.WMS objects, one for layer Test1 and one for Test2 and then give the control an array of them. So if I'm correct it should look something like that: var _test1 = new OpenLayers.Layer.WMS( MyLayer 1, _mapfilex, { layers: [ 'Test1'], format: image/png, transparent: true }, { isBaseLayer: false, buffer: 0, visibility: true } ); var _test2 = new OpenLayers.Layer.WMS( MyLayer 2, _mapfilex, { layers: [ 'Test2'], format: image/png, transparent: true }, { isBaseLayer: false, buffer: 0, visibility: true } ); var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ layers: Array(_test1, _test2), title: 'Click on the map to get information on layers', queryVisible: true, infoFormat: 'text/html' }); infoCtl.events.register(getfeatureinfo,map,showInfo); function showInfo(evt) { alert(evt.text); } Also I don't know how MapServer handles queries to two or more layers if at least one of them declares header or footer - it might happen that a layer without a header is processed before one with. And from what you got back I suggest that MapServer processes each layer if it was queried alone and therefore outputs the HTTP Content-type header after processing the first layer. Mit freundlichen Grüßen, Andreas Eichner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Interpretation of OGC filter encoding
Hey guys, while reading the OGC filter encoding specification I was wondering how the part about properties should be interpreted. I thought it would be a good idea to ask other users about their thoughts and may be one or the other hacker has an eye on the list too... The specs states in part 6 Properties that The PropertyName element is used to encode the name of any property of an object. and that a filter expression processor must use the subset of XPath [10] expressions defined in this document Those expressions are basically relative location paths using abbreviated sytnax and 5. Each step in the path may optionally contain a predicate composed of the predicate delimiters '[' and ']' and a number indicating which child of the context node is to be selected. The example with the Person feature type shows two phone elements: ?xml version=1.0? myns:Person SIN=111222333 xmlns:myns=http://www.someserver.com/myns; xmlns:gml=http://www.opengis.net/gml; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/myns Person.xsd myns:lastNameSmith/myns:lastName myns:firstNameFred/myns:firstName myns:age35/myns:age myns:sexMale/myns:sex myns:spouse SIN=444555666 / myns:location gml:Pointgml:pos15 15/gml:pos/gml:Point /myns:location myns:mailAddress myns:Address myns:streetNameMain St./myns:streetName myns:streetNumber5/myns:streetNumber myns:citySomeCity/myns:city myns:provinceSomeProvince/myns:province myns:postalCodeX1X 1X1/myns:postalCode myns:countryCanada/myns:country /myns:Address /myns:mailAddress myns:phone416-123-4567/myns:phone myns:phone416-890-1234/myns:phone /myns:Person What would happen if I use a filter like: Filter PropertyIsLike escapeChar=! singleChar=? wildCard=* matchCase=false PropertyNamePerson/phone/PropertyName Literal416-890-*/Literal /PropertyIsLike /Filter Since the XPath given in the PropertyName addresses more than one element, how should the filter work? Does it select any feature containing at least one phone element with content matching the pattern and therefore being a SQLish filter? Or does it work like the string/number/boolean functions from the XPath spec and convert the first node in document order which would be the concatenation of every descendant text node of the first phone element (in the example exactly one but the mailAddress element's value would be \n \n Main St.\n 5\n SomeCity\n SomeProvince\n X1X 1X1\n Canada\n \n). Or should a predicate of [1] be implied? I believe the SQLish behaviour is better usable but the XPath one does more conform to the XML-based standards. I checked the specs again and again but couldn't find any hint how that should be handled neither within the 6. Properties section nor within the sections dealing with the operators. This fuzzy definition of a Property becomes a big problem when dealing with SQL data mapped to XML especially if you try to build SQL filters out of the OGC filters... If there are any thoughts, please let me know. Kind regards, Andreas Eichner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing
Hi, the binary file you get using the hostname instead of the IP looks like your MapServer binary. So you have to configure Apache to serve CGI scripts for the virtual host. Maybe you have to put a ScriptAlias within the virtual server config... -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Cassiel Gesendet: Samstag, 7. März 2009 15:17 An: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing just switched to 5.2.0... the problem still remains. I guess mapserver does not like my virtual host config. Could it be? r ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer with RHEL5
Hi guys, we're using MapServer 5.2 with RedHat Enterprise Linux 5, Update 3. The necessary packages (like gdal) are inserted from Fedora Core 6. That works but the packages are somewhat outdated. So I tried to use those from the EPEL channel instead but without success. After compiling MS it segfaults because of the same problem discussed earlier on the list with a conflict between librx headers and libraries (the segfault can be avoided adding some bytes to sizeof(regex_t) in ms_regcomp() but with the effect of ms_regexec() returning wrong results). The servers are fed by a satellite server and have no direct access to a separate repo. So does anyone use MS with RHEL5 and has a nice solution for that? My personal solution would be to use Debian as on my test server (where I never had problems compiling and using MS) but that's not an option for the productive systems here :( Regards, Andreas Eichner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Mapserver layer selects
Altough this is more PostgreSQL/PostGIS related and should go to there list but I tried it and... strange, I can not reproduce your problem. This is what I did: create table swip3 ( id int, zname varchar(20), pid int, geom geometry, rdate timestamp ); insert into swip3 values ( 28, 'Zone 2', 607, geomfromewkb( decode( '010120BB107ADFF8DA335161406551D845D17541C0', 'hex')), '2009-02-12 13:30:00'::timestamp ); create table probe ( int id, int logger_id ); insert into probe values ( 607, 1 ); create table logger ( int id, int client_id ); insert into logger values ( 1, 120 ); SELECT * from swip3 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00') and (geom setSRID( 'BOX3D(138.5356633 -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); id | zname | pid |geom |rdate ++-+ +- 28 | Zone 2 | 607 | 010120BB107ADFF8DA335161406551D845D17541C0 | 2009-02-12 13:30:00 (1 Zeile) So I believe this has really nothing to do with MS. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] hide .map contents
Think you should put the descriptor in a file and set DATA YourDescriptorFile. Since reading the error message it tells: /var/mapserver/champ/OGRVRTDataSource ... /OGRVRTDataSource): path is too long This tells me you used a SHAPEPATH /var/mapserver/champ and a DATA YourDescriptorText which results in MapServer trying to use your descriptor text as a file name... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Errors in trying to angle my labels.
Not sure, but try again without the square brackets. I believe MapServer treats there content as column name. Since you used LABELANGLEITEM successfully the generalized ANGLE should also work... So try ANGLE (180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), (x(endpoint(the_geom))-x(startpoint(the_geom) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] WFS Server Control output by scale?
Hi, I believe you're misunderstanding WFS. It is not intended to serve data on a scale basis. It delivers the raw underlying feature data according to a filter you supply. So if you want features related to an area of interest (which would be the current extent in Openlayers) then you want to filter your features, f.e.: Filter BBOX PropertyNameGeometry/PropertyName gml:Envelope srsName=EPSG:31469 gml:lowerCorner13.0983 31.5899/gml:lowerCorner gml:upperCorner35.5472 42.8143/gml:upperCorner /gml:Envelope /BBOX /Filter You can limit the amount by using a maxfeatures attribute/parameter in your request or limit directly with MapServer by using a wfs_maxfeatures metadata. So basically the client (Openlayers) has to decide when to fetch the features. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Stephen Woodbridge Gesendet: Freitag, 6. Februar 2009 07:28 An: mapserver-users; openlayers user list Betreff: [mapserver-users] WFS Server Control output by scale? Hi all, I'm using mapserver as a WFS server with OpenLayers to serve some polygons. How does one control at what scale mapserver will respond to WFS requests. It looks like OpenLayers makes its request based on a min/max extents. How do you control this? Can you easily limit when OpenLayers makes request if you are using fixed scales based on the scale? or control mapserver based on size/area of extent? I'm not seeing anything in either projects documentation. I could use a clue or pointer to docs. Thanks, -Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] OracleSpatial ENCODING
You have to put something like SetEnv NLS_LANG GERMAN_GERMANY.WE8ISO8859P1 in your apache.conf. Of course, you need to use that value appropriate for your setup. Might be SetEnv NLS_LANG POLISH_POLAND.EE8MSWIN1250 or simply SetEnv NLS_LANG _POLAND. See http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm for more information. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von dzizes Gesendet: Mittwoch, 4. Februar 2009 15:17 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] OracleSpatial ENCODING Hello! I would like to get Polish fonts from layer stored in Oracle Spatial. The layer is properly created and I can nicely GetMap(s). In the LABEL section in my mapfile I've added ENCODING ISO-8859-2 It does not work. Help! -- View this message in context: http://n2.nabble.com/OracleSpatial-ENCODING-tp2268981p2268981.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] Transverse Mercator projection
Take a look at http://www.remotesensing.org/geotiff/proj_list/transverse_mercator.html. HTH. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Subha Ramakrishnan Gesendet: Montag, 2. Februar 2009 13:04 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Transverse Mercator projection Hi, I am trying to show some data in Transverse Mercator Projection using MapServer. When i searched on google, i got the corresponding EPSG code as 9807 but there is not entry for this in epsg file of PROJ 4 library. And i am not able to get the entry for the same that i can add to the file. The prj file that came with the shape file said PROJECTION[Transverse_Mercator]. I am using Mapserver 5.0.2. Has anyone worked with this projection or knows how to show the images or convert them to EPSG:4326? Please help. Thanks a lot. Regards, Subha ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] CGI problem
Internal server error are usually caused by seg faults. So your intention is right, but you've only set the variables. To let the called program see them you need to export them (and use the same request that caused the error): $ export REQUEST_METHOD=GET $ export QUERY_STRING='map=/var/www/proba/data/proba.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities' Let us know if you really found a bug... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] problem with scientific notation in WFS field output
Hi, a quick and dirty solution might be altering the field type to be a character string since the format you are using allows comparision operators to work as expected, for example 19990112 is literally less than 20010822. Also, exporting as character strings would fix your display format. I don't know if MS can dynamically cast the value in case arithmetic operations are involved. So this solution might or might not work for you. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GIF output with AGG renderer
Hi all, I wanted to configure MS 5.2.0 to use the AGG renderer when generating GIF output. The web site doesn't mention the AGG renderer at all on the general output format page. The AGG rendering specifics page only tells about PNG and JPEG. So I'm wondering if it is possible at all. Since AGG can quantize the image it should be no problem to put it out as GIF. I use the graphic stroke but that only works with AGG... Any ideas about that? Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users