Re: [mapserver-users] mapcache question
Hi, Actually it just says there is an error in your mapcache.xml file (or maybe apache can't even access/read it). Check the files rights, check the file itself, and you should find what the problem is. Best regards Guillaume Le 28/08/2016 à 19:45, Jukka Sirviö a écrit : > > Hi, > Thank you all for good answers and suggestions, Thomas proposal, is more or > less, ideal solution for me. > > Mapcache master is compiled according instructions at > http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and > MapServer master & GDAL etc), but httpd fail's to start if following line > "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in > httpd.conf. error message is: > > AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: > failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? > > Need some hint's how to proceed? Thank's in advance! > > > -Jukka > > > > > -Alkuperäinen viesti- > Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com] > Lähetetty: 25. elokuuta 2016 15:56 > Vastaanottaja: Travis Kirstine > Kopio: Lime, Steve D (MNIT); Jukka Sirviö; mapserver-users@lists.osgeo.org > Aihe: Re: [mapserver-users] mapcache question > > The reprojection is done inside MapCache, i.e. as a client of the original > tiles. You don't need an additional WMS :) > > -- > thomas > > On 25 August 2016 at 14:50, Travis Kirstine >wrote: >> I believe that there still would be an issue as the reprojection from X to >> Y, the reprojection would need to be done on the source WMTS side. I guess >> you could proxy the source WMTS using mapserver with the gdal mini driver >> and reproject to create a WMS to feed mapcache? >> >> -Original Message- >> From: thomas bonfort [mailto:thomas.bonf...@gmail.com] >> Sent: August-25-16 3:55 AM >> To: Lime, Steve D (MNIT) >> Cc: Travis Kirstine ; Jukka Sirviö >> ; mapserver-users@lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> in master, there is also support for any GDAL dataset as a mapcache source >> (i.e. in addition to wms). If you use that in addition to a GDAL >> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles >> on the fly. >> >> -- >> thomas >> >> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) >> wrote: >>> I would think reprojection of individual tiles into another set of tiles >>> that would stitch back together without artifacts would be difficult. I >>> thought MapCache did support native MapServer mode=map as a source which >>> could useful if GDAL supports WMTS and you could create a corresponding >>> MapServer layer. >>> >>> -Original Message- >>> From: mapserver-users >>> [mailto:mapserver-users-boun...@lists.osgeo.org] >>> On Behalf Of Travis Kirstine >>> Sent: Wednesday, August 24, 2016 1:14 PM >>> To: Jukka Sirviö ; >>> mapserver-users@lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> >>> According to the docs mapcache only support WMS as input. >>> >>> " A source is a service mod-mapcache can query to obtain image data. This >>> is typically a WMS server accessible by a URL. (There are currently no >>> sources other than WMS implemented, though others may be added later if the >>> need arises)" >>> >>> If this is still true then your proposed chain will not work. >>> >>> MapProxy will support a tiled source and I know TMS works (not sure >>> about WMTS) and handle the reprojection >>> >>> Regards >>> >>> -Original Message- >>> From: mapserver-users >>> [mailto:mapserver-users-boun...@lists.osgeo.org] >>> On Behalf Of Jukka Sirviö >>> Sent: August-24-16 10:09 AM >>> To: mapserver-users@lists.osgeo.org >>> Subject: [mapserver-users] mapcache question >>> >>> >>> Hello, >>> I would like to put a mapcache to be in the middle, in the following chain: >>> >>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, >>> reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers >>> v2, Qgis), also in crs y >>> >>> Mapcache was compiled, and is working a-ok with demo data. But I have >>> trouble to configure mapcache to work as a part in the above chain. As >>> planned, Mapcache should work as a WMTS client down towards target 1 and >>> WMTS server up against target 3, ie. kind of a proxy with crs reprojection >>> and basic auth. Anyway, does this make any sense at all, or is the draft >>> totally irrational? >>> >>> If the draft is reasonable, could you give some hints on how to proceed >>> related to configuration with mapcache.xml? >>> >>> >>> >>> -Jukka >>> >>> >>> >>> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista >>> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et
[mapserver-users] Symbolscaledenom
Hi List, It looks like label OUTLINEWIDTH and OFFSET are dependant of SYMBOLSCALE which leads to strange behaviours and looks on large scale range (see image included - huge halo and distance between point and its label). Is there a way to detach these parameters from the SYMBOLSCALE settings ? Thanks Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapCache and S3 cache
Hi, Have you ever experienced the SignatureDoesNotMatch error when using MapCache with a S3 storage backend ? I have checked my credentials many times, picked new ones, changed their level of privileges, no matter what I can do, I still have 403 errors with SignatureDoesNotMatch error. I thought it could come from bad encoding of special characters in the secret key, but it doesn't really seem to be that, since simple secret key fails too. Any help appreciated Thanks Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Shapezip 3D
Hi Even, Thanks for your reply even if it is disappointing. So I guess all the http://mapserver.org/fr/output/ogr_output.html stuff about 2.5D/3D is just rubbish and the USE_POINT_Z_M compile option is useless. Thanks for your investigations Best regards Guillaume Le 01/03/2014 12:53, Even Rouault a écrit : Le vendredi 28 février 2014 17:29:15, Guillaume Sueur a écrit : Hi list, I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm using MapServer 6.5 compiled with USE_POINT_Z_M options. mapserv -v gives : MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My data are stored in Postgis 2.1. They are 3D. I've added the ows_geomtype MultiPolygon25D metadata to my layer. What I get is a 3D shapefile, but all the Z values are set to 0. Lookking at the request made by MapServer to Postgis, I see the geom is requested with Force2D function : encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom Is this a bug or is there some more settings I didn't set properly ? Guillaume, there's no support yet for parsing 3D geometries in mappostgis.c (mentionned in comments of https://github.com/mapserver/mapserver/pull/4803 ). I wouldn't expect adding support for it to be that difficult. As a workaround, I would have suggested that you could use the OGR PostgreSQL driver, but looking at mapogr.cpp, I also see that the Z support of OGR isn't used. G Even ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Shapezip 3D
OK, got it, but actually no need of MapServer to do that. zip is enough :-) Le 03/03/2014 10:16, Even Rouault a écrit : Selon Guillaume Sueur no-re...@neogeo-online.net: Hi Even, Thanks for your reply even if it is disappointing. So I guess all the http://mapserver.org/fr/output/ogr_output.html stuff about 2.5D/3D is just rubbish and the USE_POINT_Z_M compile option is useless. Actually no, it is correct. My previous comment was on the input interface of MapServer with OGR, where Z support is not currently available. But for the output part (mapogroutput.c), Z support should work. So you could likely use a 3D shapefile (with MapServer native shapefile connection) and output a 3D shapezip. Thanks for your investigations Best regards Guillaume Le 01/03/2014 12:53, Even Rouault a écrit : Le vendredi 28 février 2014 17:29:15, Guillaume Sueur a écrit : Hi list, I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm using MapServer 6.5 compiled with USE_POINT_Z_M options. mapserv -v gives : MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My data are stored in Postgis 2.1. They are 3D. I've added the ows_geomtype MultiPolygon25D metadata to my layer. What I get is a 3D shapefile, but all the Z values are set to 0. Lookking at the request made by MapServer to Postgis, I see the geom is requested with Force2D function : encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom Is this a bug or is there some more settings I didn't set properly ? Guillaume, there's no support yet for parsing 3D geometries in mappostgis.c (mentionned in comments of https://github.com/mapserver/mapserver/pull/4803 ). I wouldn't expect adding support for it to be that difficult. As a workaround, I would have suggested that you could use the OGR PostgreSQL driver, but looking at mapogr.cpp, I also see that the Z support of OGR isn't used. G Even ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Shapezip 3D
Hi list, I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm using MapServer 6.5 compiled with USE_POINT_Z_M options. mapserv -v gives : MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My data are stored in Postgis 2.1. They are 3D. I've added the ows_geomtype MultiPolygon25D metadata to my layer. What I get is a 3D shapefile, but all the Z values are set to 0. Lookking at the request made by MapServer to Postgis, I see the geom is requested with Force2D function : encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom Is this a bug or is there some more settings I didn't set properly ? Thanks Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SHAPEZIP gives bad .PRJ
Hi list, I'm currently working with MapServer Outputformat SHAPEZIP which gives great results. But, I noticed the generated .prj file doesn't match exactly with what can be found on spatialreference.org. Would someone know why and how to fix this ? Best regards Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapcache OnlineResource
Hi, In a mapcache WMTS generated getCapabilities, onlineresource seems to be computed automatically from the actual server name, which leads to issues when that server is not publically exposed with the same name. Is there a way to set manually the OnlineResource string ? Thanks Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache OnlineResource
Found the answer myself (it happens...). Just add an url tag in the global metadata block, pointing to the correct service entry point. Best Guillaume Le 08/06/12 14:36, Guillaume Sueur a écrit : Hi, In a mapcache WMTS generated getCapabilities, onlineresource seems to be computed automatically from the actual server name, which leads to issues when that server is not publically exposed with the same name. Is there a way to set manually the OnlineResource string ? Thanks Guillaume ___ 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] Using applySLD and generateSLD with Mapscript Python
Hi list, I'm playing with mapscript python and SLD files, and having some kinds of troubles. It seems that applySLD doesn't build an EXPRESSION tag for the CLASS it refers too. Starting from a mapfile with CLASS and EXPRESSION set, the SLD body generated is correct : Rule NameVELOV/Name ogc:Filterogc:PropertyIsGreaterThanOrEqualToogc:PropertyNamenbbornettes/ogc:PropertyNameogc:Literal20/ogc:Literal/ogc:PropertyIsGreaterThanOrEqualTo/ogc:Filter PointSymbolizer Graphic Mark WellKnownNamesquare/WellKnownName Fill CssParameter name=fill#993300/CssParameter /Fill /Mark Size8/Size /Graphic /PointSymbolizer /Rule but applying this same SLD file to the mapfile via mapscript gives only a FILTER set: FILTER (nbbornettes= 20) ... CLASS NAME VELOV STYLE ANGLE 0 COLOR 153 51 0 OFFSET 0 0 SIZE 8 SYMBOL sld_mark_symbol_square_filled END # STYLE END # CLASS The matching between SLd Filters and Classes has been lost. It means that you can't build any SLD file with more than one class/filter and see them drawn on the map. I 'm using mapscript 6.0.1 Thanks for any clue Best regards Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Using applySLD and generateSLD with Mapscript Python
Actually, this only happens for POSTGIS layers and not for SHAPEFILE layers, and only with MapServer 6. I have filled a ticket. Best Guillaume Le 06/12/11 10:54, Guillaume Sueur a écrit : Hi list, I'm playing with mapscript python and SLD files, and having some kinds of troubles. It seems that applySLD doesn't build an EXPRESSION tag for the CLASS it refers too. Starting from a mapfile with CLASS and EXPRESSION set, the SLD body generated is correct : Rule NameVELOV/Name ogc:Filterogc:PropertyIsGreaterThanOrEqualToogc:PropertyNamenbbornettes/ogc:PropertyNameogc:Literal20/ogc:Literal/ogc:PropertyIsGreaterThanOrEqualTo/ogc:Filter PointSymbolizer Graphic Mark WellKnownNamesquare/WellKnownName Fill CssParameter name=fill#993300/CssParameter /Fill /Mark Size8/Size /Graphic /PointSymbolizer /Rule but applying this same SLD file to the mapfile via mapscript gives only a FILTER set: FILTER (nbbornettes= 20) ... CLASS NAME VELOV STYLE ANGLE 0 COLOR 153 51 0 OFFSET 0 0 SIZE 8 SYMBOL sld_mark_symbol_square_filled END # STYLE END # CLASS The matching between SLd Filters and Classes has been lost. It means that you can't build any SLD file with more than one class/filter and see them drawn on the map. I 'm using mapscript 6.0.1 Thanks for any clue Best regards Guillaume ___ 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] MacOS X Lion Ports
Hi list, I don't know if William Kyngesburye reads this list, but someone certainly knows him. There is a little issue in the mapserver package when used on Lion. Python mapscript is sent to python2.6 site-packages directory instead of 2.7, which causes the system to be unable to load it. Simply moving the files fixes it, so I guess it will be easy to fix in the package installation too. Cairo and GDAL packages are fine. Best regards Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PostGIS Layer : get only objects WITHIN view
Hi list, I was wondering if there was an efficient way to display only objects fully included inside the map viewport. I could mess around with runtime substitution, but as bbox is already sent, I think there is a way to use it inside my DATA string. Thanks for your clues Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PostGIS Layer : get only objects WITHIN view
Hi Steve, Ok for the CONTAINS thing, but what is supposed to contain my geom field ? Is there a magic variable like %MAP_EXTENT% usable in the mapfile ? Regards Guillaume Le 15/07/2010 21:40, Lime, Steve D (DNR) a écrit : I'd think you'd need to use one of the spatial operators like contains in your data statement. However, you'd need access to the computed map extent to be able to do so. There's another thread related to this topic but with the computed scale. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Guillaume Sueur Sent: Thursday, July 15, 2010 9:48 AM To: Mapserver-users Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view Hi list, I was wondering if there was an efficient way to display only objects fully included inside the map viewport. I could mess around with runtime substitution, but as bbox is already sent, I think there is a way to use it inside my DATA string. Thanks for your clues Guillaume ___ 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] MapServer as fast-cgi
Hi, I'm not sure your apache config is correct. Setting a specific alias for the default cgi-bin dir and using the alias as a specific Location can maybe give troubles. Maybe the default cgi-bin is applying first and your Location is not used at all. My sunday 2 cents Guillaume Le 30/05/2010 17:44, kai-behn...@gmx.de a écrit : Hi Lars, also working on a sunday :-) Thank you very much for your reply. The fcgid-module is enabled/installed. I changed the pathes in the pathes you use, in the access.log of apache is written: 131.173.59.53 - - [30/May/2010:17:31:55 +0200] GET /blabla/blabla/Testkarte12752335142537.jpg HTTP/1.1 200 26397 http://www.mydomain.de/fcgi-bin/mapserv?map=/my_path/mapdatei.map; Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 ( .NET CLR 3.5.30729) ...what looks quite good I think. If I restart apache I get: [Sun May 30 17:35:25 2010] [notice] mod_fcgid: process /blabla/cgi-bin/mapserv(2537) exit(shutting down), terminated by calling exit(), return code: 0 [Sun May 30 17:35:26 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch configured -- resuming normal operations but I don`t get something like: [Sun May 30 16:38:27 2010] [info] mod_fcgid: server /var/www/clients/client1/web1/fcgi-bin/mapserv(21099) started With fcgi your MapServer processes will stay in memory. You should see them within top even when the map is already delivered. And with CLOSE_CONNECTION=DEFER you can then reuse database connections which in turn will make your application faster. I`m not sure if I understand. What do you mean with: You should see them within top even when the map is already delivered. And can`t I check it with the Debug 5 in the log-file? Thank you very much, Kai Original-Nachricht Datum: Sun, 30 May 2010 16:47:24 +0200 Von: Lars Lingnerm...@lingner.eu An: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] MapServer as fast-cgi -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30.05.2010 16:10, Kai Behncke wrote: Dear users, I try to set up Mapserver with fast-cgi, but so far it doesn`t work as it should do (well I think it doesn`t, I`m also not so sure how to test ist). * I have succesfully compiled MapServer 5.6.3 with fast-cgi (on Debian 5.0) * Apache runs with mod_fcgid * In the mapfile I have implemented in the layers PROCESSING CLOSE_CONNECTION=DEFER But some steps I don`t understand: In the apache-conf I set: ScriptAlias /fcgi-bin/ /etc/apache2/cgi-bin/mapserv Location /fcgi-bin Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch SetHandler fcgid-script Order allow,deny Allow from all #FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env #LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib #-appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 #-maxClassProcesses 30 -startDelay 5 /Location a) If I comment in FastCGIConfig .. I always get from the Apache: Invalid command 'FastCgiConfig', perhaps misspelled or defined by a module not included ?? What might be the reason for that? Does Apache load the fcgid module? You can check in /etc/apache2/mods-enabled if its enabled and in /etc/apache2/mods-available if its installed Or check the error.log of apache: [Sun May 30 16:38:27 2010] [info] mod_fcgid: server /var/www/clients/client1/web1/fcgi-bin/mapserv(21099) started I have the following config: ScriptAlias /fcgi-bin/ /path/to/fcgi-bin/ Location /fcgi-bin SetHandler fcgid-script Options None Order allow,deny Allow from all /Location my /etc/apache2/mods-enabled/fcgid.conf looks like this: IfModule mod_fcgid.c AddHandlerfcgid-script .fcgi IPCConnectTimeout 20 /IfModule b) I start the Apache without the FastCGIConfig in the apache-conf-file and I run the MapServer as: http://www.xyz.de/fcgi-bin/?map=/path_to_my/mapfile.map ...this should be the way to run MapServer as fast-cgi, shouldn`t it? Hmm. I defined the scriptalias as path to the fcgi directory and not to the binary. So the request URL is something like this: http://example.org/fcgi-bin/mapserv?map...;... But I don't know if your way might also be ok. c) I thought, if I run MS with Debug 5 the layers should be produced much faster, right? But the log-file doesn`t show any difference betwenn MS as cgi or fcgi, this might be because of the missing FastCgiConfig in Apache, right? With fcgi your MapServer processes will stay in memory. You should see them within top even when the map is already delivered. And with CLOSE_CONNECTION=DEFER you can then reuse database connections which in turn will make your application faster. Lars -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwCenEACgkQ0GRF77ebR/lSTACeO/vSeKLqQ1WphIb95/WqgZ3m qOkAnjvmSo5NA1+6uE5b34RWOp7nZXPy =lEMY
Re: [mapserver-users] wms version 1.3 bbox problems
And don't forget to check that user-agent is MAPINFOW.EXE before doing that, or you would screw up requests sent by OGC specs respectful clients. If you want to change the order of coordinates, only do it for EPSG codes between 4000 and 5000... Regards, Guillaume Le 05/05/2010 21:08, Yewondwossen Assefa a écrit : You could possibly look into using mapscript wrapper for WxS services (http://mapserver.org/ogc/mapscript.html) and possibly change the version programatically or the order of the bbox. regards, On 05/05/2010 2:29 PM, Travis Kirstine wrote: It appears that the bbox in the reverse order for 1.3, is there a work around? wms.php?cid=27VERSION=1.3.0REQUEST=GetMapLAYERS=Imagery_groupSTYLES=CRS=EPSG:4269BBOX=-180,-90,180,90WIDTH=636HEIGHT=318FORMAT=image/pngTRANSPARENT=TRUEBGCOLOR=0xFFEXCEPTIONS=XML HTTP/1.1 200 166460 - C:\\Program Files\\MapInfo85\\Professional\\MAPINFOW.EXE On 5 May 2010 12:15, Yewondwossen Assefayass...@dmsolutions.ca wrote: Hi, What does the GetMap request looks like, specifically the bbox coordinates and the projection? For wms 1.3.0, bbox coordinates are expected for projections such as espg:4326 to use the inverse axe order (lat/long instead of long/lat)? regards, On 05/05/2010 11:54 AM, Travis Kirstine wrote: Hi, I'm currently running ms 5.4.2 and am having difficulties with wms version 1.3. I am using MapInfo as the client and it seems that it is hard coded wms version 1.3 if available from the service. It seems that there is bbox issue when passing GetMap request to the service. Is there something I have to add to the mapfile to indicate the correct bbox or projection? MAP NAME Montreal Map SIZE 256 256 STATUS OFF UNITS METERS EXTENT -180 -90 180 90 IMAGECOLOR 155 203 231 SHAPEPATH /home/share1/data IMAGETYPE JPEG RESOLUTION 96 PROJECTION init=epsg:4326 END WEB IMAGEPATH /home/share1/data/map_images/ IMAGEURL http:///; METADATA wms_onlineresource http://xx; wms_srs EPSG:32198 EPSG:2138 EPSG:32098 EPSG:4269 EPSG:4326 EPSG:54004 # updated by user wms_title Montreal Map # defined by user wms_abstract # defined by user ows_sld_enabled false END END OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png TRANSPARENT ON END OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END LAYER NAME Imagery_1 DATA /home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml METADATA wms_group_abstract wms_group_title Imagery wms_title Imagery_1 wms_extents -180 -85.05112877980659 180 85.0511287798066 END PROJECTION init=epsg:4326 END MINSCALE 295828775 TYPE RASTER GROUP Imagery_group STATUS ON PROCESSING CLOSE_CONNECTION=DEFER PROCESSING RESAMPLE=BILINEAR END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] PHP mapscript $shape-buffer() takes a longtime
Distance maybe ? Guillaume Le mercredi 18 novembre 2009 à 09:27 -0500, Worth Lutz a écrit : I'm learning a lot here. I now understand how to get the buffered geometry quickly. I am using the buffered geometry to use PHP mapscript to select parcel intersecting the buffered geometry. $layer-queryByShape($bufferedShape); Are you telling me that there is a better/faster way to do this? -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ludwig Kniprath Sent: Wednesday, November 18, 2009 3:01 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP mapscript $shape-buffer() takes a longtime We had the same problem. In deed the buffer-algorithm is very expensive, especially with large polygons and a large buffer-radius. If you use Postgis, you can simplify the Polygon with ST_Simplify or ST_SimplifyPreserveTopology in dependency from scale and buffer-radius, this will make the buffer-process much faster without significant loss of quality. You can do this on runtime on your original data with dynamic PostGIS-queries. If you don't use PostGis, you have to create simplified layers. Pseudo-PHP-PostGIS-SQL: SELECT ... ST_SetSRID(ST_BUFFER(ST_SIMPLIFY($geometery_field,$simplify_tolerance),$buff er_radius, $number_of_segments),$srid)::geometry ...FROM... And don't use the buffered polygon for geo-queries, there are faster ways in PostGIS and Mapserver. Regards Ludwig Kniprath I'm trying to buffer a shape returned from a point query on a polygon layer of parcels. When I try to use: $bufferedShape = $shape-buffer(200); I get back a fatal error: Maximum execution time of 30 seconds exceeded. I know that this is a php error message and that I could increase the allowable execution time. If I use a buffer distance of 175 I get results. Should it take such a long time to but a buffer around this parcel? It is a large parcel with one corner being a long curve like a quarter of a circle and another section on one side being a half circle. ___ 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] Changing WMS Styles on the FLy
Hi Bill, SLD would definitely be the best way to achieve that. You can pass XML string in the GetMap, but the limitation of url length in browser won't allow you to go very far. What you can do is build a default SLD file (generated from your mapfile settings, mapscript has got functions for that), allow its edition on the client side (modification of fill and stroke colors for instance), and save it back to a temp (or not) location, with a specific name. Then send getMap again with SLD parameter pointing to that new SLD file. Note that the sld file must be accessible for mapserver with http. Don't hesitate to ask for more, Regards, Guillaume Le vendredi 16 octobre 2009 à 15:49 -0600, Bill Thoen a écrit : Hi folks, I've got a WMS server that that's doing a great job supplying about 40-50 layers of US national data to a project in Philadelphia, but now the client wants to be able to change layer styles interactively. So what I'd like to know is using SLD the best way to approach this? Since you can pass SLD info back to the server along with a GetMap request, it seems that SLD was designed for this job. Or would it be easier to interactively modify a mapfile directly before issuing a getmap (would that even work?) What other ways are there to interactively change how a layer is styled? I'm not very familiar with SLD yet, but it sounds like you have to set up a configuration file in XML, and then you pass its location to the system in a GetMap request. Could you also just pass serialized XML in the GetMap instead of a UIRL to _change_ a style? Or do you always have to use a configuration file? I'm still studying up on this, but I 'm curious whether this is the right approach to interactively change later styles or if I should be looking at something else altogether. Thanks! - Bill Thoen ___ 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] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs
hi, rename your OUTPUTFORMAT to 'PNG' for it to be used when asking for png format. Guillaume Le mercredi 14 octobre 2009 à 16:36 +0300, Adrian Popa a écrit : Hello all, My goal is to setup tilecache (which is proving to be a real pain), and so far I've noticed that even if I configured my map to generate noninterlaced PNGs (instructions here: http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs), it still generates interlaced PNGs. Here is my outputformat (the only one defined) in my map: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION INTERLACE=OFF END The parameters that get sent to my mapserver instance are: BBOX 2896046.12635,5831228.011975,2935181.884825,5870363.77045 EXCEPTIONS application/vnd.ogc.se_inimage FORMAT png HEIGHT 256 LAYERS Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudete MAP /var/www/html/map/rtc_base.map MAP_IMAGETYPE agg MAXEXTENT left-bottom=(20.26,43.16) right-top=(29.7,48.46) MAXRESOLUTION 156543 REQUEST GetMap SERVICE WMS SRS EPSG:900913 STYLES TRANSITIONEFFECT resize TRANSPARENT false UNITS m VERSION 1.1.1 WIDTH 256 I'm not sure if MAP_IMAGETYPE=agg is the one which selects the outputformat or not, but the map seems to be rendered with AGG (I could be wrong, of course). So, what am I missing here? Is there another parameter that should be sent to mapserver to select the outputformat? By the way, the image file generated has these properties: img.png: PNG image, 256 x 256, 8-bit colormap, interlaced Thanks, Adrian ___ 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] python mapscript - FORMATOPTION
Hi, Just an idea on the fly, because I didn't try it myself, but you could maybe try : of.setOption(QUANTIZE_FORCE, ON) and see what happens... regards Guillaume Le mardi 13 octobre 2009 à 23:54 +0200, Ivan Mincik a écrit : Dear all, I am trying to set FORMATOPTION QUANTIZE_FORCE=ON option using python mapscript. I can successfully use this code snippet to write OUTPUTFORMAT in to my mapfile: of = mapscript.outputFormatObj(AGG/PNG,PNG_AGGAQ) of.name = PNG_AGGAQ of.driver = 'AGG/PNG' of.imagemode = mapscript.MS_IMAGEMODE_RGBA of.mimetype = image/png of.transparent = 1 but of.setOption(FORMATOPTION, QUANTIZE_FORCE=ON) is not creating any result to my mapfile. Is 'setOption' working in python mapscript ? Thanks, Ivan ___ 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] remote SLD problem
Hi, Try to make your sld file readable by any user. Regards, Guillaume Le lundi 28 septembre 2009 à 18:14 +0200, DeDuikertjes a écrit : Hello, this is my problem, please help mapserver is running ok, and this gives me a nice picture: http://mydomain.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP200801-0005/wkt/NL.IMRO.0999.BP200801-0005.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapBBOX=6.36411,51.8821,6.37681,51.8897Layers=NL.IMRO.0999.BP200801-0005Format=image/pngwidth=800height=600SRS=EPSG:4326 Now, I'd like to use a SLD to do some styling. So I've made myself a nice SLD and I use the url: http://check.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP200801-0005/wkt/NL.IMRO.0999.BP200801-0005.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapBBOX=6.36411,51.8821,6.37681,51.8897Layers=NL.IMRO.0999.BP200801-0005Format=image/pngwidth=800height=600SRS=EPSG:4326SLD=http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld ok, the SLD is at the specified location and I can view it with my browser. mapserver returns an error document with: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed to connect to 85.12.17.114: Permission denied) for http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld That puzzled me for a while, but then I tried (from the box where mapserver runs): su -c 'wget http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s /bin/sh nobody that returns: bestplan.sld: Permission denied So user nobody can't get to the SLD. I believe mapserver is running as nobody because I believe apache does. I think that's the problem. But then, how to solve this? Any help greatly appreciated ... MArco ___ 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] SLD with TextSymbolizer
Hi Daniel, Label is supposed to enclise the name of a field. Here is a complete working example of text symbolizer : TextSymbolizer Labelid_field/Label LabelPlacement PointPlacement Displacement DisplacementX/ DisplacementY5/DisplacementY /Displacement /PointPlacement /LabelPlacement Font CssParameter name=font-familyVERDANA/CssParameter CssParameter name=font-stylebold/CssParameter CssParameter name=font-size16/CssParameter /Font Fill CssParameter name=fill#00/CssParameter /Fill Halo Radius3/Radius FillCssParameter name=fill#FF/CssParameter/Fill /Halo /TextSymbolizer Hope that helps Guillaume Daniel Degasperi a écrit : Hi, I've some problems using the TextSymbolizer in my SLD-File (see Attachment route_sld.xml), specially with the following part, which will generate this error: column Literal does not exists. (see Attachment wms_error.png for further details) ogc:Labelogc:LiteralV/ogc:Literal/ogc:Label Is this problem related to MapServer or MapServer does not support SLD-Labels? I've tested this with MapServer 5.2.2 and 5.4.2. Best regards, Daniel Degasperi ___ 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] Precache
I'll be there too ! Best regards, Guillaume Varun saraf a écrit : It worked perfect.I have another question but I guess I will put it up on the tilecache-users list. Thanks a lot, Varun On Fri, Jun 19, 2009 at 6:55 PM, Guillaume Sueurno-re...@neogeo-online.net wrote: Hi Varun, It looks rather like a question for the tilecache-users list, but I can give you a hand. I think you didn't specify any layer when running tilecache_seed.py Please try : tilecache_seed.py [your_layer_name_as_set_in_tilecache.cfg] 0 5 where 0 and 5 are zoom start and zoom end. You can adapt this last one depending on how many levels you set for your layer. Run it from the directory where tilecache.cfg is, to avoid problem if you have many of them... Regards, Guillaume Varun saraf a écrit : Hello, I have got this (tilecache with mapserver on google maps) working finally after a lot of problems but I now really need to know about how to do a pre-cache of all the tiles from mapserver. I am running tilecache 2.10 on Windows with mapserver ms4w from maptools.org. I tried running tilecache_seed.py as per the suggestion above but it always ends up in the following error Traceback (most recent call last): File C:\ms4w\Apache\cgi-bin\tilecache-2.10\tilecache_seed.py, line 9, in mo dule TileCache.Client.main() File C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py, line 153, in main layer = svc.layers[args[0]] IndexError: list index out of range Any help in this regard would be great. Thanks, Varun On Fri, Jun 19, 2009 at 2:39 PM, Varun sarafvsaraf@gmail.com wrote: Hi Roger, I am trying to get my mapserver and tilecache work together but its somehow not working. I am using the same projection as you in all my layers and the mapfile. (This works when I call my mapserver directly from google and hence the projection is right). Here is my mapfile (Only things that might be important). MAP EXTENT -173 5 -45 75 IMAGETYPE PNG PROJECTION init=epsg:4326 END WEB METADATA wms_srs EPSG:4326 EPSG:900913 END END LAYER PROJECTION init=epsg:4326 END END Next I added the 900913 epsg to the proj.4 of mapserver and made the required changes in tilecache.cfg file as you specified. [google-tiles] type=MapServerLayer mapfile=C:/ms4w/apps/QCTGIS/drawMap.map metaTile=true metaSize=2,2 metaBuffer=0,500 layers=tr20_d00 spherical_mercator=true srs=EPSG:900913 I am not sure if the linkn I am using is wrong. I have tilecache installed in the cgi directory of the apache server that was installed using ms4. The example index.html that comes with tilecache works fine and I can see the images being cached. Also my mapserver directly works fine. Can you tell me what is it that I am doing wrong here? the link I use for the tileUrlTemplate in google maps is http://127.0.0.1:8123/cgi-bin/tilecache-2.10/tilecache.cgi/1.0.0/google-tiles/{Y}/{X}/{Z}.png?type=google;. I can also see that this call gets initiated in the apache logs (access.log) but nothing happens therafter. I don't even know if this is failing at tilecache end and mapserver isn't being called at all or at mapserver's end where the image is not being sent by mapserver. Can you help me out here? Thanks a lot. Varun On Thu, May 21, 2009 at 12:46 PM, Roger Andréran...@gmail.com wrote: Ahh, ok. I'm not sure in what fashion you are using TileCache, but my experience has been with using it to create tiles to display in Google Maps. Google Maps uses the projection which is EPSG:900913. I believe there are other codes for it, but that is the one I use. All of my source data for the MapServer projects I make are in EPSG:4326. So there are 3 things I need to do in order to make the Tilecache output tiles align correctly in Gmaps. 1. I set both the mapfile and the layer projections to EPSG:4326. MAP NAME 'v2_80m_global' PROJECTION init=epsg:4326 END LAYER NAME 'imagery' PROJECTION init=epsg:4326 END snip... 2. I explicity allow for a wms request to be made for the layer in EPSG:900913 by setting the following in my MapServer LAYER: METADATA wms_srs EPSG:4326 EPSG:900913 snip... 3. I define my TileCache layer so that it requests images from Mapserver in EPSG:900913. [v2_20m_global] type=MapServerLayer mapfile=/var/www/mapfiles/v2_20m_global/v2_20m_global.map metaTile=true metaSize=2,2 metaBuffer=0,500 layers=imagery spherical_mercator=true srs=EPSG:900913 That's what works for me. Roger -- On Thu, May 21, 2009 at 5:24 AM, Chad Clabaugh cclaba...@centwire.com wrote: Thank you Roger, for your response. I have done that but I do not understand how tilecache works. The images that are returned from mapserver line up perfectly. But the images returned from tilecache do not align very well (they're distorted). If tilecache is simply caching the returned images then I do not understand where this distortion comes from. Any thoughts? Thanks! -Original
Re: [mapserver-users] Precache
Hi Varun, It looks rather like a question for the tilecache-users list, but I can give you a hand. I think you didn't specify any layer when running tilecache_seed.py Please try : tilecache_seed.py [your_layer_name_as_set_in_tilecache.cfg] 0 5 where 0 and 5 are zoom start and zoom end. You can adapt this last one depending on how many levels you set for your layer. Run it from the directory where tilecache.cfg is, to avoid problem if you have many of them... Regards, Guillaume Varun saraf a écrit : Hello, I have got this (tilecache with mapserver on google maps) working finally after a lot of problems but I now really need to know about how to do a pre-cache of all the tiles from mapserver. I am running tilecache 2.10 on Windows with mapserver ms4w from maptools.org. I tried running tilecache_seed.py as per the suggestion above but it always ends up in the following error Traceback (most recent call last): File C:\ms4w\Apache\cgi-bin\tilecache-2.10\tilecache_seed.py, line 9, in mo dule TileCache.Client.main() File C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py, line 153, in main layer = svc.layers[args[0]] IndexError: list index out of range Any help in this regard would be great. Thanks, Varun On Fri, Jun 19, 2009 at 2:39 PM, Varun sarafvsaraf@gmail.com wrote: Hi Roger, I am trying to get my mapserver and tilecache work together but its somehow not working. I am using the same projection as you in all my layers and the mapfile. (This works when I call my mapserver directly from google and hence the projection is right). Here is my mapfile (Only things that might be important). MAP EXTENT -173 5 -45 75 IMAGETYPE PNG PROJECTION init=epsg:4326 END WEB METADATA wms_srs EPSG:4326 EPSG:900913 END END LAYER PROJECTION init=epsg:4326 END END Next I added the 900913 epsg to the proj.4 of mapserver and made the required changes in tilecache.cfg file as you specified. [google-tiles] type=MapServerLayer mapfile=C:/ms4w/apps/QCTGIS/drawMap.map metaTile=true metaSize=2,2 metaBuffer=0,500 layers=tr20_d00 spherical_mercator=true srs=EPSG:900913 I am not sure if the linkn I am using is wrong. I have tilecache installed in the cgi directory of the apache server that was installed using ms4. The example index.html that comes with tilecache works fine and I can see the images being cached. Also my mapserver directly works fine. Can you tell me what is it that I am doing wrong here? the link I use for the tileUrlTemplate in google maps is http://127.0.0.1:8123/cgi-bin/tilecache-2.10/tilecache.cgi/1.0.0/google-tiles/{Y}/{X}/{Z}.png?type=google;. I can also see that this call gets initiated in the apache logs (access.log) but nothing happens therafter. I don't even know if this is failing at tilecache end and mapserver isn't being called at all or at mapserver's end where the image is not being sent by mapserver. Can you help me out here? Thanks a lot. Varun On Thu, May 21, 2009 at 12:46 PM, Roger Andréran...@gmail.com wrote: Ahh, ok. I'm not sure in what fashion you are using TileCache, but my experience has been with using it to create tiles to display in Google Maps. Google Maps uses the projection which is EPSG:900913. I believe there are other codes for it, but that is the one I use. All of my source data for the MapServer projects I make are in EPSG:4326. So there are 3 things I need to do in order to make the Tilecache output tiles align correctly in Gmaps. 1. I set both the mapfile and the layer projections to EPSG:4326. MAP NAME 'v2_80m_global' PROJECTION init=epsg:4326 END LAYER NAME 'imagery' PROJECTION init=epsg:4326 END snip... 2. I explicity allow for a wms request to be made for the layer in EPSG:900913 by setting the following in my MapServer LAYER: METADATA wms_srs EPSG:4326 EPSG:900913 snip... 3. I define my TileCache layer so that it requests images from Mapserver in EPSG:900913. [v2_20m_global] type=MapServerLayer mapfile=/var/www/mapfiles/v2_20m_global/v2_20m_global.map metaTile=true metaSize=2,2 metaBuffer=0,500 layers=imagery spherical_mercator=true srs=EPSG:900913 That's what works for me. Roger -- On Thu, May 21, 2009 at 5:24 AM, Chad Clabaugh cclaba...@centwire.com wrote: Thank you Roger, for your response. I have done that but I do not understand how tilecache works. The images that are returned from mapserver line up perfectly. But the images returned from tilecache do not align very well (they're distorted). If tilecache is simply caching the returned images then I do not understand where this distortion comes from. Any thoughts? Thanks! -Original Message- From: Roger André [mailto:ran...@gmail.com] Sent: Wednesday, May 20, 2009 11:46 PM To: Chad Clabaugh Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Precache Your request is somewhat lacking in detail, but assuming
Re: [mapserver-users] MapServer,Mod_python and tilecache
Hi, Tilecache user-list would have been a more appropriate list to post this problem to, but I can give you a couple of clues. As tilecache readme says (http://tilecache.org/docs/README), you should try : http://example.com/yourdir/tilecache.cgi/1.0.0/basic/0/0/0.png before any tile of the tileset has been drawn, its root directory (basic here) has not been created yet. That's why you get 404 I think. Best regards, Guillaume saltalungo a écrit : Hi, I'm trying to configure the tilecache on mapserver with mod_python. the components that I have are: Apache 2.2.11 Mod_python 3.3.1 python 2.5 tilecache 2.10 I have a problem displaying the data that are insert inside the file tilecache.cfg when i send the request http://localhost/tilecache/tilecache.py/1.0.0/basic i receive a Not Found The requested URL /tilecache/tilecache.py/1.0.0/basic was not found on this server. Is the problem that it can't read the tilecache.cfg? on the httpd.conf of apache i have tthose lines: Directory C:\ms4w\Apache\htdocs\tilecache\tilecache AddHandler python-program .py PythonHandler TileCache.Service PythonPath ['C:/ms4w/Apache/htdocs/tilecache/'] + sys.path PythonOption TileCacheConfig C:/ms4w/Apache/htdocs/tilecache/tilecache.cfg PythonDebug On /Directory Anyone have a idea on where i miss the right? thanx saltalungo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] hotspot information on point layers
Hi, That will mainly depend on your client side implementation, in which the map image itself will be displayed. For example, if you use OpenLayers as a client, you can set a mouseOver or mouseClick on your layer, and trigger a WMS getFeatureInfo request on it. Regards Guillaume meenu a écrit : hi ..advance thanks to all ,in a mapserver project how possible to do the hotspot information of points...for eg i have one pointlocation table like as follows...when the mouse is on the top of these points,need to generte one hotspot information regarding this point with an image...can anybody help me to do this part...regards ** LAYER NAME n_twns TYPE POINT CONNECTIONTYPE OGR CONNECTION n_twns.TAB STATUS ON LABELITEM NAME CLASS #SIZE 10 STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'ball' END #STYLE LABEL COLOR 100 100 255 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP END#LABEL END# CLASS END#LAYER * - Meenu ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 5.4 SYMBOLSET
Hi, I think what David meant was about getting an error when SYMBOLSET is not declared in the symbol file since 5.4. I ran into the same problem, and had to add SYMBOLSET ... END to my symbol files to have them running fine with MapServer 5.4. Is it something newly added, or just a long lasting requisite become mandatory ? Regards, Guillaume Daniel Morissette a écrit : Are you sure that the file you are editing is really the one used by your mapfile? That's a common mistake... to verify that, try inserting an invalid keyword in place of the SYMBOLSET keyword in your file and verify that MapServer produces a parser error about it. If it doesn't then it's probably not using the file you think it is. Daniel David Nugent wrote: It starts (and ends) like this: SYMBOLSET SYMBOL NAMEpoint TYPEELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAMEdashed TYPEELLIPSE POINTS 1 1 END FILLED TRUE STYLE 8 6 8 6 END END ... END Regards, David On 30/04/2009, at 1:13 PM, Steve Lime wrote: Can you share your symbolset file? I've not had an issue with that change. Steve David Nugent dav...@datalinktech.com.au 04/29/09 9:54 PM Hello all, I've recently upgraded to mapserver 5.4 and hit a problem with SYMBOLSET. It seems that a file containing symbols referenced from the .map file must now contain a SYMBOLSET keyword at the start (and presumably end with END?). I made this change, but the parser still complains with the message First token must be SYMBOLSET. Not really wanting to waste time on debugging the lex code, I simply removed the check that emits this error from mapsymbol.c and all works as expected. Obviously there is a deeper problem, whether it be the logic in that statement (which appears to be correct as far as I can tell) or the lex parser itself. I'm just wondering if anyone else had hit the same problem. ___ 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] Mapserver 5.4 SYMBOLSET
Good to know ! Thanks ! Christy Nieman a écrit : Hi, It was addressing some potential security problems: http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html Christy Guillaume Sueur wrote: Hi, I think what David meant was about getting an error when SYMBOLSET is not declared in the symbol file since 5.4. I ran into the same problem, and had to add SYMBOLSET ... END to my symbol files to have them running fine with MapServer 5.4. Is it something newly added, or just a long lasting requisite become mandatory ? Regards, Guillaume Daniel Morissette a écrit : Are you sure that the file you are editing is really the one used by your mapfile? That's a common mistake... to verify that, try inserting an invalid keyword in place of the SYMBOLSET keyword in your file and verify that MapServer produces a parser error about it. If it doesn't then it's probably not using the file you think it is. Daniel David Nugent wrote: It starts (and ends) like this: SYMBOLSET SYMBOL NAMEpoint TYPEELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAMEdashed TYPEELLIPSE POINTS 1 1 END FILLED TRUE STYLE 8 6 8 6 END END ... END Regards, David On 30/04/2009, at 1:13 PM, Steve Lime wrote: Can you share your symbolset file? I've not had an issue with that change. Steve David Nugent dav...@datalinktech.com.au 04/29/09 9:54 PM Hello all, I've recently upgraded to mapserver 5.4 and hit a problem with SYMBOLSET. It seems that a file containing symbols referenced from the .map file must now contain a SYMBOLSET keyword at the start (and presumably end with END?). I made this change, but the parser still complains with the message First token must be SYMBOLSET. Not really wanting to waste time on debugging the lex code, I simply removed the check that emits this error from mapsymbol.c and all works as expected. Obviously there is a deeper problem, whether it be the logic in that statement (which appears to be correct as far as I can tell) or the lex parser itself. I'm just wondering if anyone else had hit the same problem. ___ 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] python mapscript AGG problem
Hi, I guess that the mapscript you are using with python is not the proper one. Did you go to mapserver/mapscript/python and run setup.py install ? Note that integration of agg in python-mapscript is not trivial due to some limitations in the agg lib. regards Guillaume dzizes a écrit : HEllo! I've compiled mapserver against AGG on linux. My web application that works with mapserver renders nice images with the use of AGG library. /usr/lib/cgi-bin$ ./mapserv -v MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE However, when I try to open simple mapfile with mapscript - python craches. Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits or license for more information. import mapscript m = mapscript.mapObj('/tmp/test.map') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.5/site-packages/mapscript.py, line 1267, in __init__ this = _mapscript.new_mapObj(*args) _mapscript.MapServerError: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. # mapfile output specification OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png FORMATOPTION TRANSPARENT=ON FORMATOPTION INTERLACE=OFF FORMATOPTION QUANTIZE_FORCE=OFF END Any ideas what might be wrong? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] TrueType Legend causes TimeOut
Hi list, I have a mapfile with a LEGEND defined in it, and I use it throught WMS with getLegendGraphics. When I use TYPE BITMAP, everything is fine When I use TYPE TRUETYPE, with the proper settings of size and FONT, if hangs until cgi timeout, without explicit error reported. I've checked that my FONTSET and associated FONTS are ok. Has anyone got an idea of what can cause mapserv to hang like that without explicit crash on anything during legend production ? I'm using MapServer 5.2.1 Regards, Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer, SLD and PointSymbolizer : Fill AND Stroke ?
Hi, I prefer to ask before going crazy... I'm trying to use SLD to display a point layer with a PointSymbolizer using a WellKnownName graphic. I can have it filled with a fill color I can have it outlined with a stroke color but I can't have both fill and outline at the same time. Changing their order in the sld file doesn't change anything (i first thought the outline was under the fill color) Is it due to sld specification which would imply to draw 2 graphics (1 for fill and a bigger one for outline), or is it a mapserver limitation/bug ? Thanks, Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer, SLD and PointSymbolizer : Fill AND Stroke ?
forget it, typo :-(, the # was missing in front of stroke color definition sorry Guillaume Guillaume Sueur a écrit : Hi, I prefer to ask before going crazy... I'm trying to use SLD to display a point layer with a PointSymbolizer using a WellKnownName graphic. I can have it filled with a fill color I can have it outlined with a stroke color but I can't have both fill and outline at the same time. Changing their order in the sld file doesn't change anything (i first thought the outline was under the fill color) Is it due to sld specification which would imply to draw 2 graphics (1 for fill and a bigger one for outline), or is it a mapserver limitation/bug ? Thanks, Guillaume ___ 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] Strange Postgis/Mapserver SQL behaviour
My idea is that in mapfile context your main query should only be SELECT the_geom from (select...) as DATA is expecting a single geom object Hope it helps Guillaume Stefan Schwarzer a écrit : Hi there, I have a unfortunately rather complex query for my postgis layers. But if I take the SQL and insert it into PgAdmin, I get what I want: a table with the_geom, name, value, uid. But when using this query in the map file, I suddenly get an error message: Warning: [MapServer Error]: prepare_database(): Error declaring cursor: ERROR: syntax error at end of input LINE 2: ...D(-180.200445434298 -90,180.200445434298 90)'::BOX3D, 4326 ) ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT value::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),uid::text from ( SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, COALESCE(SUM(d.value), -) AS value, r.id AS uid FROM cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r. in /www/geodataportal/htdocs/mod_map/map.php on line 1331 Here is the query: SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, COALESCE(SUM(d.value), -) AS value, r.id AS uid FROM cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE (d.year_start = 2003 ) AND (d_nom.year_start = 2003 ) AND d_nom.value 0 GROUP BY r.name, d.year_start ORDER BY 1,2;', 3) AS ct(name varchar, y_2003 numeric) ORDER BY 2 NULLS LAST ) AS sub2 ON sub2.name = sub1.name) AS foo And within the mapfile I attach a USING UNIQUE uid USING srid=4326 to the query. Can anyone give me a hint what the problem might be? Thanks for any adive! Stef ___ 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] Internal Server Error - newbie
Hi Actually your attachement has not been included, but I may have an idea : in your url, you must supply the full path to your map file. So if ms4w is located at the system root it is fine, instead you must correct that. Regards, Guillaume kapil manoj a écrit : Hi all, I am using mapserver 5.0.3 on fedora 9. i installed it very recently in my box , to acknowledge my installation of mapserver in my box , i got the message when i call the browser http://localhost/cgi-bin/mapserv No query information to decode. QUERY_STRING is set, but empty. Then i played with the mapserver demo gmap.. its works fine... Thenafter i tried to play with the examples given in the mapserver tutorial , with the very first example i get error when i call the link http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=statesmode=map http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=statesmode=map i get the following error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, r...@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log. Apache/2.2.9 (Fedora) Server at localhost Port 80 From the above error i understand that something wrong with apache , i checked the error log file , ita abig one page error. i couldn't probe that error, i have attached the error log file for your perusal could anybody please help me out? help will be appreciated... many thanks, zizu ___ 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] PHP - configuring error with mapserver- 5.0.3
Hi You probably need the packages which will include the php headers needed by mapserver compilation. Sorry, I don't know this package name for Fedora. Regards, Guillaume kapil manoj a écrit : hi all, i am a new user , i am using mapserver 5.0.3 on fedora 9... i am struggling in installation as well as configuration part of mapserver in my box. well, come to the point i am trying to configure php with mapserver , but configuration error occured while configuring. I have installed php-5.2.6 through *yum install* in my system. The following is the configuration error ug 458 or Apache bug 22030). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... Enabling debug features: -g in CFLAGS. *configure: checking for PHP/MapScript module options...* *configure: error: Missing or invalid PHP source directory in --with-php=DIR.* From the error message it is clearly evident that i gave invalid source directory, but the following are the php source directories found in my system /etc/php.d /etc/php.ini /etc/httpd/conf.d/php.conf /etc/php.d/dbase.ini /etc/php.d/error_log /etc/php.d/gd.ini /etc/php.d/json.ini /etc/php.d/mapserver.ini /etc/php.d/mysql.ini /etc/php.d/mysqli.ini /etc/php.d/pdo.ini /etc/php.d/pdo_mysql.ini /etc/php.d/pdo_pgsql.ini /etc/php.d/pdo_sqlite.ini /etc/php.d/pgsql.ini /etc/php.d/zip.ini */usr/bin/php* /usr/bin/php-cgi */usr/lib/php* /usr/lib/httpd/modules/ libphp5.so /usr/lib/php/modules /usr/lib/php/pear /usr/lib/php/modules/dbase.so /usr/lib/php/modules/gd.so /usr/lib/php/modules/json.so /usr/lib/php/modules/mysql.so /usr/lib/php/modules/mysqli.so /usr/lib/php/modules/pdo.so /usr/lib/php/modules/pdo_mysql.so /usr/lib/php/modules/pdo_pgsql.so /usr/lib/php/modules/pdo_sqlite.so /usr/lib/php/modules/pgsql.so /usr/lib/php/modules/php_mapscript.so /usr/lib/php/modules/phpcups.so /usr/lib/php/modules/zip.so */usr/share/php* /usr/share/doc/php-cli-5.2.6 /usr/share/doc/php-common-5.2.6 /usr/share/doc/php-mapserver-5.0.3 /usr/share/doc/php-cli-5.2.6/README /usr/share/doc/php-cli-5.2.6/README.FastCGI /usr/share/doc/php-common-5.2.6/CODING_STANDARDS /usr/share/doc/php-common-5.2.6/CREDITS /usr/share/doc/php-common-5.2.6/EXTENSIONS /usr/share/doc/php-common-5.2.6/INSTALL /usr/share/doc/php-common-5.2.6/LICENSE /usr/share/doc/php-common-5.2.6/NEWS /usr/share/doc/php-common-5.2.6/README.EXTENSIONS /usr/share/doc/php-common-5.2.6/README.EXT_SKEL /usr/share/doc/php-common-5.2.6/README.PARAMETER_PARSING_API /usr/share/doc/php-common-5.2.6/README.PHP4-TO-PHP5-THIN-CHANGES /usr/share/doc/php-common-5.2.6/README.SELF-CONTAINED-EXTENSIONS /usr/share/doc/php-common-5.2.6/README.STREAMS /usr/share/doc/php-common-5.2.6/README.SUBMITTING_PATCH /usr/share/doc/php-common-5.2.6/README.TESTING /usr/share/doc/php-common-5.2.6/README.TESTING2 /usr/share/doc/php-common-5.2.6/README.UNIX-BUILD-SYSTEM /usr/share/doc/php-common-5.2.6/README.UPDATE_5_2 /usr/share/doc/php-common-5.2.6/README.WIN32-BUILD-SYSTEM /usr/share/doc/php-common-5.2.6/README.input_filter /usr/share/doc/php-common-5.2.6/TSRM_LICENSE /usr/share/doc/php-common-5.2.6/ZEND_CHANGES /usr/share/doc/php-common-5.2.6/ZEND_LICENSE /usr/share/doc/php-common-5.2.6/gd_README /usr/share/doc/php-common-5.2.6/regex_COPYRIGHT */var/lib/php* /var/lib/php/session I tested with all the source directories that i have in my system, but the error still remains. i have installed php through YUM INSTALL way , that is a precompiled binaries not an source package.. May be that could be a reason to cause this error.. i am not sure so what could be a problem please somebody help me... regards zizu ___ 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] runtime substitution DATA
Hi list, I'm trying to change the DATA statement of a PostGIS Layer on the fly, from a WMS request. I made it work for FILTER or EXPRESSION, but no success with DATA, either using my %PARAM% in the middle of the SQL string or for the whole thing. I've seen here (http://mapserver.org/cgi/runsub.html) that it should validate a DATAPATTERN. Would someone have some clues about this ? Thanks Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] runtime substitution DATA
These are a really good explanation and examples Steve ! Many many thanks, I'm going to put my hands into it ! Regards, Guillaume Steve Lime a écrit : You should be able to use either approach. To change the whole thing you'd do: map.layer[mylayer]=DATA+'some new SQL string'... but in this case you must set DATAPATTERN at the map level to a regular expression to use to validate the new SQL. I think this is really hard to do properly and so should probably be avoided. Another alternative is replacing just parts of the SQL, kind of an SQL template approach, here's an example I'm using in production now: DATA point FROM (SELECT *,oid FROM sites2 WHERE has_telemetry ~ '%has_telemetry%' AND has_archive ~ '%has_archive%' AND has_water_chemistry ~ '%has_water_chemistry%' AND is_cwl_site ~ '%is_cwl_site%' AND is_flood_warning_gage ~ '%is_flood_warning_gage%') as foo USING UNIQUE oid USING SRID=-1 METADATA has_telemetry_validation_pattern '^[01.]$' has_archive_validation_pattern '^[01.]$' has_water_chemistry_validation_pattern '^[01.]$' is_cwl_site_validation_pattern '^[01.]$' is_flood_warning_gage_validation_pattern '^[01.]$' END In this example my data contain 0 or 1 depending on the properties of a site. I want to allow the user to pick 0, 1 or either so I use regex's in PostgreSQL (hence the . being a legal character from my application. The validation patterns restrict input to 0,1 or . (e.g. either). Another example: DATA 'point FROM (select *,oid, substring(station from 2) as station_no_char from sites2 where oid=%id%) as foo USING UNIQUE oid USING SRID=-1' METADATA id_validation_pattern '^[0-9]{1,14}$' END Here I'm using the oid to identify one site and the validation pattern to limit input to a sequence of numbers from 1 to 14 characters in length. If the value for id doesn't match then an error is thrown. Steve On 2/25/2009 at 3:07 AM, in message 49a50a6e.90...@neogeo-online.net, Guillaume Sueur no-re...@neogeo-online.net wrote: Hi list, I'm trying to change the DATA statement of a PostGIS Layer on the fly, from a WMS request. I made it work for FILTER or EXPRESSION, but no success with DATA, either using my %PARAM% in the middle of the SQL string or for the whole thing. I've seen here (http://mapserver.org/cgi/runsub.html) that it should validate a DATAPATTERN. Would someone have some clues about this ? Thanks Guillaume ___ 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] Pyhton mapscript import error
Hi, python mapscript + agg is a real pain I grabbed a howto file some months ago, on PerryGeo blog (http://www.perrygeo.net/wordpress/) find it here as attachment it works fine. I've just tested it again few minutes ago. Regards Guillaume gautamvs a écrit : I am getting error while importing mapscript in python snip import mapscript Traceback (most recent call last): File stdin, line 1, in ? File mapscript.py, line 7, in ? import _mapscript ImportError: /usr/local/lib/python2.4/site-packages/_mapscript.so: undefined symbol: _ZN3agg6gse5x7E /snip when i removed the AGG suport in Mapserver , i am able to import without any error. But my application requires AGG support (ie. with Tilecache) I am using Mapserver 5.2.1, AGG 2.5, Python 2.4 on CentOS. Thanks for any help. Gautam # agg #agg 2.4 # based on http://trac.osgeo.org/mapserver/ticket/2215 tar -xzvf agg2.4.tar.gz cd agg2.4 emacs src/Makefile # add to CXXFLAGS ... -fPIC CXXFLAGS= $(AGGCXXFLAGS) -I../include -L./ -fPIC # add to the end of file shared: $(OBJ) ../font_freetype/agg_font_freetype.o $(CXX) -shared -W1,-soname,libagg.2.4.so -o libagg.so \$(OBJ) ../font_freetype/agg_font_freetype.o -L/usr/local/lib -lfreetype make cd examples/X11 emacs Makefile #Change: #-I/usr/local/include/freetype2 \ #To: #`freetype-config --cflags` \ # add to both CXXFLAGS .. -fPIC ## CXXFLAGS= $(AGGCXXFLAGS) -I../../include \ -L../../src \ $(PIXFMT) -fPIC CXXFREETYPEFLAGS= $(AGGCXXFLAGS) -Wall \ -I../../include \ -I../../font_freetype \ `freetype-config --cflags` \ -L../../src \ $(PIXFMT) -fPIC ## make freetype cd ../../font_freetype/ ar r libaggfontfreetype.a agg_font_freetype.o cd ../src ln -s ../font_freetype/libaggfontfreetype.a cd .. make clean make cd src make shared sudo cp libagg.so /usr/local/lib sudo ldconfig # mapserver ./configure --without-tiff --with-jpeg --with-png --with-freetype \ --with-zlib --with-threads --with-proj \ --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-ogr \ --with-wmsclient --with-wfsclient --with-wfs \ --without-pdf --with-geos --enable-debug --with-agg=/home/perry/src/agg-2.4 \ --with-postgis=/usr/bin/pg_config \ --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/apache2 --with-gd=/usr/local \ --with-fastcgi make sudo cp mapserv /usr/lib/cgi-bin/ sudo cp shp2img shp2pdf shptree shptreetst shptreevis sortshp tile4ms scalebar legend msencrypt mapserv /usr/local/bin/ #mapscript cd mapscript/python # swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i swig -python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy \ -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel -nobuildnone \ -o mapscript_wrap.c ../mapscript.i python setup.py build cd tests/cases python runalltests.py -v # don't worry about the 4 test failures .. due to postgres database not being present cd ../.. sudo python setup.py install --force___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Get Feature Info into gmaps balloon
try with : using unique gid in your data string regards guillaume gzambotti a écrit : Hi there, I am new with mapserver. I use a WMS/mapserver (4.9) to Get Feature Info into a google maps balloon. If I set my mapfile to a shapefile everything works very well. When I try to use PostGIS I get this error (Content-type: application/vnd.ogc.se_xml ). any idea? many thanks, Giovanni Here my mapfile: LAYER NAME ED_Total MINSCALE 100 CONNECTIONTYPE postgis CONNECTIONuser=africamaps password=j0kerz dbname=africamaps host=localhost port=5432 #DATA the_geom from ED_Total using unique gid USING SRID=4326 DATA the_geom from (select gid, NAME, CITY, STATE, the_geom from ED_Total) as foo using unique the_geom using SRID=4326 #DATA /opt/CGA/data/vec/gio1/shapefile/EDtotal TYPE POINT METADATA wms_title ED_Total wms_srs EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004 'wms_include_items' 'all' wms_onlineresource http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map; ows_exceptions_format application/vnd.ogc.se_xml wms_exceptions_format application/vnd.ogc.se_xml wms_exceptions_format application-vnd.ogc.se_inimage wms_ature_info_mime_type text/html END STATUS ON PROJECTION +init=epsg:4326 END #projection CLASS NAME lt 1 STYLE COLOR 255 255 250 SYMBOL 'circle' SIZE 8.5 END STYLE COLOR 255 0 0 SYMBOL 'thickcross' SIZE 7.5 END END #class HEADER /opt/CGA/newam/htdocs/gtest/header.html TEMPLATE /opt/CGA/newam/htdocs/gtest/query.html FOOTER /opt/CGA/newam/htdocs/gtest/footer.html END #layer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] libgdal error with php/MapScript
Can't it comes from an external lib dynamiccaly linked to gdal, like Ecwlib or other ? did you try to call your php page from the command line, which can give more information on missing dependancies ? regards, Guillaume Jacolin Yves a écrit : Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez écrit : Jacolin Yves wrote: ... --with-gdal=/usr/local/bin/gdal-config ... [...] PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared object file: No such file or directory in Unknown on line 0 /etc/php.d/mapscript.ini Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure that directory is in the system's library path. The simple way to do that is to add /usr/local/lib to the file /etc/ld.so.conf and then run /sbin/ldconfig as root to update the runtime linker's cache. Daniel Daniel, /etc/ld.so.conf and ldconfig command was already edited or run :( I am building PHP5 to see if this changes something, Thanks anyway, Y. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Documentation for serving large raster images using tile cache.
Hi Asif, Why not giving a try to gdal2tiles ? it will build a whole tileset from your input raster, and will set up for you a GoogleEarth kml, a Google Maps sample app and an OpenLayers sample app as well, from which you'll be able to read your tiles. Regards, Guillaume Asif Memon a écrit : Thanks Roger, I have tiled a large mosaic(2 GB) by using the GDAL utility(gdal_convert “TILED=YES”). I want to test the performance for querying the mosaic with the zoom functionality. Do I need to write a client or is there anything readily available with which I can check the performance? Sincerely, Asif Memon ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] about Obtaing high performance in the map server response
Holà, What sort of data are you displaying ? which format are them ? regards Guillaume fsalas a écrit : I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high performance What can i do for Obtaining high performance in the map server response ___ Dpto de Sistemas Informáticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus -- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1230006 Definition date: 2008/11/06 MDAV version: 2.2.8 ___ 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] Using JOIN and FILTERITEM
From http://mapserver.gis.umn.edu/docs/reference/mapfile/join/html2pdf : Joins are defined within a LAYER object. It is important to understand that JOINs are ONLY available once a query has been processed. You cannot use joins to affect the look of a map. The primary purpose is to enable lookup tables for coded data (e.g. 1 = Forest) but there are other possible uses. Regards, Guillaume Nelson Soto a écrit : Hello, Can I use FILTERITEM after I have done a JOIN? I keep getting an error stating it can not find the JOINed field when FILTERITEM is used… LAYER # Parcels Polygon Layer NAME 'ParcelsAvailableSearch' DATA 'parcels_tiles/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_flag.html' JOIN NAME extend TABLE 'parcels_tiles/joint.dbf' FROM 'LOC_ID' TO 'LOC_ID' TYPE ONE-TO-ONE END FILTERITEM 'FLD_INT' FILTER /%id4%/ CLASS SYMBOL 'plainline' SIZE 3 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 END END Joint.dbf consists of two fields, LOC_ID and FLD_INT. I need FLD_INT but it is subject to change so I need it in a separate file. So, I want to generate an item query of everything that matched the FLD_INT which is set by another program before hand. Can this be done? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Gérant Neogeo Technologies SARL 46 RUE MATABIAU 31000 TOULOUSE Tél : +33 6 74 91 95 20 http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disappearing point in a map
can't it comes from the offset of 10 pixels you're applying on the point symbol ? regards, guillaume Chip Taylor a écrit : I have a map where I pass in the information about a point via the URL. I am using mapserver version 5.2 on a Windows Server 2000. In some cases the point just does not appear. For example, the map extents of -78.9043321338311+35.0222546417047+-78.8914558661689+35.0367113582953 will not show a point at -78.897894, 35.029483 and yet a map extents of -78.9041121338311+35.0222546417047+-78.8912358661689+35.0367113582953 will show the point of -78.897674, 35.029483, less than 300 linear feet away. Here is the URL passing in the first example: https://devmap/bin/mapserv.exe?mode=mapmap=map_files/US.mapmapsize=580 475map_MyPoint_feature=newmap.layer[MyPoint]=feature+points+-78.897894+35. 029483+END+TEXT+%27Secondary%20Building%27ENDlayers=roadsmapext=-78.904332 1338311+35.0222546417047+-78.8914558661689+35.0367113582953program=%2Fbin%2 Fmapserv.exe And here is the mapfile: MAP NAME US STATUS ON UNITS DD EXTENT -127.00 43.00 -115.00 50.00 SIZE 500 400 IMAGECOLOR 156 188 217 IMAGETYPE png SYMBOLSET ../etc/NAVsymbols.sym SHAPEPATH ../Shape_Files/navteq_data/ FONTSET ../etc/fonts.txt Include InlineSyms.map # # Symbol for drawing Star # Symbol NAME 'Star' TYPE VECTOR FILLED true POINTS 0 0.375 0.35 0.375 0.5 0 0.65 0.375 1 0.375 0.75 0.625 0.875 1 0.5 0.75 0.125 1 0.25 0.625 END END # # == # Web Interface Definition # == WEB # the following preset_scales metadata is a list of specific scales that # the mapfile is configured for. These values are not used, but can be # placed in other applications such as ka-Map (http://ka-map.maptools.org/) METADATA preset_scales 2500,7500,12000,17500,35000,75000,125000,20,40,75,200,4 00,750,1500,3000,6000 END MINSCALE 1 # necessary for CGI point query TEMPLATE ../HTML_Files/sitemap.html IMAGEPATH 'd:/wwwroot/tmp/' IMAGEURL /tmp/ LOG d:/MapLogs/mapserver.log #ERROR ../maperror.htm END # == # Projection Definition # == PROJECTION init=epsg:4269 END # # MyPoint # LAYER NAME MyPoint TYPE Annotation STATUS DEFAULT METADATA wms_titleMyPoint ##required END CLASS COLOR -1 0 0 STYLE COLOR 255 0 0 OUTLINECOLOR 255 255 0 SYMBOL 'star' SIZE 20 END LABEL FONT Arial TYPE TRUETYPE ANTIALIAS TRUE COLOR 0 0 0 BACKGROUNDCOLOR 220 220 220 OFFSET 10 0 SIZE 10 POSITION lr END END END END #mapfile Any help would be greatly appreciated. Chip Taylor Prepared Response, inc ___ 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] mapserver compiled with gd problem
Hi Didrik, You apparently use a bitmap font with an incorrect SIZE attribute in your label, maybe because you didn't explicitely set TYPE TRUETYPE in the mapfile. So check that your label is defined with TYPE TRUETYPE SIZE integer Regards, Guillaume Didrik Pinte a écrit : Hi, I have a CentOS server running a MapServer 5.2.0. The gd version on the server is a 2.0.28 and I need ANGLE FOLLOW on one of my layers. Thus, I have tried to recompile MapServer with the latest GD (2.0.35). The result is the following : [Wed Oct 08 15:56:53 2008] [error] [client 213.213.238.142] PHP Warning: [MapServer Error]: msGetBitmapFont(): Invalid bitmap font. Must be one of tiny, small, medium, large or giant.\n in /v.../includes/carto_functions.php on line 168, referer: http://mysite/prod/navigationdetails.php?parent=525siteflag=1 [Wed Oct 08 15:56:53 2008] [error] [client 213.213.238.142] PHP Fatal error: Call to a member function saveWebImage() on a non-object in /v.../includes/carto_functions.php on line 169, referer: http://mysite/prod/navigationdetails.php?parent=525siteflag=1 GD has support for png, jpeg, freetype and fontconfig ... What is the missing link ? Thanks for your help. Didrik ___ 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] Using Fast CGI with MapServer toalleviate poor performance
I'm not a palette guru, so I won't answer on the raster mess up. But for your dcw vectors, as I could see, your are requesting the WMS layer in png format. Thus, this outputformat name doesn't exist in your mapfile, where you defined png24. So you should try to rename your OUTPUTFORMAT to PNG, or change your layers configuration and have them asking for png24. Actually, this could help for the raster problem too ;-) regards, Guillaume [EMAIL PROTECTED] a écrit : Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . A problem with using the OpenLayers.MapServer method is that the (1) The raster colours are messed up and (2) Anti-aliasing is not being done on the vector layers. I don't know why this is. Regards, John Westwood Stephen Woodbridge [EMAIL PROTECTED] 18/09/08 9:08 PM John Westwood wrote: Hi Paul and other MapServer Gurus, I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer is a fast WMS server, have I done something wrong for it not to be? What do you think could be the problem? You might want to check that you are comparing apples and apples. I would expect WMS to be a little slower because there is some overhead to query the server before actually making the image request. Do you have ratio set the same for both layers? What versions of Mapserver and OpenLayers are you using? Can you post a URL that has the two layers present in the layer switch so we can look at the requests and how your have it configured? Or post the HTML so we can look at. In fact you might want to post the HTML to the openlayers list and as the question there first, to make sure you have equivalent requests between WNS and Mapserver. -Steve W I will give it some thought tomorrow. John Paul Ramsey [EMAIL PROTECTED] 17/09/08 5:15 PM John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood [EMAIL PROTECTED] wrote: The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Map Information ___ 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] SLD and LinePlacement
Ok, seems interesting. Thank you ! Yewondwossen Assefa a écrit : Guillaume, Right now the SLD does not have an equivalent parameter (in LinePlacement or PointPlacamant) the could be set and translate as ANGLE AUTO or ANGLE FOLLOW in MapServer. The default setting of MapServer for the label object is to set the ANGLE AUTO and ANGLE FOLLOW to FALSE. So it is not possible right now. Maybe we could, when reading the sld and creating the label objects, set by default the angle to auto or follow. Would that make sense? If that is the case, you could open a bug on it discuss it further there and add the enhancement if it is agreed. Best Regards, Guillaume Sueur wrote: Hi list, Would someone know how to configure the equivalent of ANGLE AUTO for labelling lines with an SLD file ? I've tried the LinePlacement block, for it doesn't seem to do anything special. Thanks Guillaume ___ 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] Using Fast CGI with MapServer toalleviatepoorperformance [SOLVED]
Hi John, Interesting results indeed ! The ironic thing is that I used the projection string instead of the epsg code so I could avoid the lookup so it would be faster! I do not understand why MapServer does an unnecessary reprojection with OpenLayers.WMS and the projection string; shouldn't it be able to determine that the projection string is the same as the epsg number? I guess, that would probably involve a lookup, thus rendering the use of the projection string in place of the epsg code ineffectual. For the reprojection thing, I don't think there is a perfect solution. As WMS uses EPSG codes, mapserver would have to scan the whole epsg file on each projection definition to find the matching epsg-proj pair, and it could take a long time, much longer than simply scanning the epsg file to find the proj string for a specific epsg code. I think the best solution for you is to use a custom epsg file with only the definitions you need in it, and keep using epsg codes in your mapfile, which ensures full compatibility with WMS usage. Thanks again for all the help, it would have taken me much longer to solve the problem on my own! Your welcome. It's always interesting to face such problems and discover the bottlenecks. This is helpful for all of us. Best regards, Guillaume Regards John Westwood Great Britain Historical GIS Project ___ 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] WMS layer is not shown in right projection
Althought it would be more appropriate to ask this on openlayers user list, I can give you few clues : All WMS layers are requested in the map's projection definition. In your case, as the map seems to be 4326, your wms layers must be able to send its output in that resolution. If you want to use 31468, set this code for the map resolution, declare it in your wms layer metadata 'wms_srs' attribute, and it should be fine. Regards, Guillaume Sebastian Geithner a écrit : Hi list, I have a problem according to the projection of my layers. I have set up the foss-gis-suite and use OpenLayers as client. I have configured MapServer as WMS-Server. If I request a layer (using EPSG-Code 31468 [Gauss Kruger zone 4]) via OpenLayers.Layer.MapServer the response is OK but if I try this with the OpenLayers.Layer.WMS layer I don't get the map. I have tested the EPSG-Code 4326 and the map shows up (but stretched). Why can't I use the same projection for both layers or where is the failure? OpenLayers-Code: html xmlns=http://www.w3.org/1999/xhtml; head titlePrototyp/title link rel=stylesheet href=../../lib/OpenLayers-2.6/theme/default/style.css type=text/css / style type=text/css #map { width: 500px; height: 300px; border: 1px solid grey; } /style script src=../../lib/OpenLayers-2.6/OpenLayers.js type=text/javascript/script /head body h1 id=titlePrototyp/h1 div id=tags/div p id=shortdescOpenLayers in Verbindung mit lokalem UMN MapServer/p br / div id=map/div div id=legendimg src=http://localhost:8080/tmp/thueringenleg12207028122967.png;/div br / div id=info/div script type=text/javascript OpenLayers.ProxyHost = /cgi-bin/proxy.cgi?url=; var bounds = new OpenLayers.Bounds(11.4929,50.8957,11.5849,50.9502); var map = new OpenLayers.Map(map,{ units: 'm', projection: 'epsg:4326' }); var mapserv = new OpenLayers.Layer.MapServer.Untiled(Local MapServer, http://localhost:8080/cgi-bin/mapserv?map=/home/jade/fgs/www/htdocs/thueringen.map;, {layers: 'Felder', format: 'png'} ); var wms = new OpenLayers.Layer.WMS.Untiled( WMS Layer, http://localhost:8080/cgi-bin/mapserv?map=/home/jade/fgs/www/htdocs/thueringen.map;, {layers: 'Felder', format:'png'} ); map.addLayer(wms); map.addLayer(mapserv); map.addControl(new OpenLayers.Control.MouseDefaults()); map.addControl(new OpenLayers.Control.OverviewMap()); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.zoomToExtent(bounds); /script /body /html Map file: MAP NAME Thueringen STATUS ON SIZE 600 400 EXTENT 4464371.92 5640027.581000 4470798.744000 5646045.455000 IMAGECOLOR 180 180 180 UNITS METERS PROJECTION init=epsg:31468 END OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE PC256 EXTENSION png END #WEB-Section-- WEB TEMPLATE /home/jade/fgs/www/htdocs/thueringen.html IMAGEPATH /home/jade/fgs/www/htdocs/tmp/ IMAGEURL /tmp/ METADATA wms_title WMS Map Service wms_onlineresource http://localhost:8080/cgi-bin/mapserv?map=/home/jade/fgs/www/htdocs/global.map; wms_srs EPSG:4326 END END #LAYER-Section-- LAYER NAME Felder TYPE POLYGON STATUS ON DATA 50353v_f.shp DUMP TRUE TEMPLATE /home/jade/fgs/www/htdocs/thueringen.html PROJECTION init=epsg:31468 END METADATA wms_title Felder wms_srs EPSG:4326 END CLASSITEM FBI_2008 CLASS NAME groesste Flaeche EXPRESSION DETHLIGL50353F15 STYLE OUTLINECOLOR 100 100 100 COLOR 255 150 150 END END CLASS NAME alle anderen
Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance
I guess that wms makes a reprojection job as the request comes with an EPSG code and the map projection is set by a proj string. Even if they are equivalent, can MapServer know that and forget about reprojection ? The cgi is rather straight forward as no EPSG is required. As the layers don't have PROJECTION blocks, they are drawn straight forward. my 2 cents. Guillaume Christopher Schmidt a écrit : On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . Okay, so to cut OpenLayers out of the loop: http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.mapservice=WMSLAYERS=europeFORMAT=image%2FpngVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=epsg%3A3034BBOX=2097152,2097152,4194304,4194304WIDTH=256HEIGHT=256 http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.maplayers=europeformat=image%2Fpngmode=mapmap_imagetype=pngmapext=2097152+2097152+4194304+4194304imgext=2097152+2097152+4194304+4194304map_size=256+256imgx=128imgy=128imgxy=256+256 The former is WMS, the latter is not-WMS. There is a very obvious speed difference between the two. The reason the MapServer image has its colors wrong, for the record, is because it is using 8bit pngs instead of 24 bit pngs. My first impression was that was the reason for the difference, but unfortunately, 8bit gifs don't seem to fare any better. Time for the URLs: MapServer: real0m0.660s WMS: real 0m2.707s These may help someone who knows MapServer investigate more. Regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Using Fast CGI with MapServer to alleviatepoor performance
doesn't mapserver have to scan the whole epsg file to find the matching epsg - proj pair ? Steve Lime a écrit : This shouldn't be the case, there are tests in the main API code to test projections of the map against layers to avoid this. I suspect it's projection related though... Steve On 9/19/2008 at 11:19 AM, in message [EMAIL PROTECTED], Guillaume Sueur [EMAIL PROTECTED] wrote: I guess that wms makes a reprojection job as the request comes with an EPSG code and the map projection is set by a proj string. Even if they are equivalent, can MapServer know that and forget about reprojection ? The cgi is rather straight forward as no EPSG is required. As the layers don't have PROJECTION blocks, they are drawn straight forward. my 2 cents. Guillaume Christopher Schmidt a écrit : On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . Okay, so to cut OpenLayers out of the loop: http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.mapservice=WMSL AYERS=europeFORMAT=image%2FpngVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=ap plication%2Fvnd.ogc.se_inimageSRS=epsg%3A3034BBOX=2097152,2097152,4194304,419 4304WIDTH=256HEIGHT=256 http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.maplayers=europ eformat=image%2Fpngmode=mapmap_imagetype=pngmapext=2097152+2097152+4194304+41 94304imgext=2097152+2097152+4194304+4194304map_size=256+256imgx=128imgy=128im gxy=256+256 The former is WMS, the latter is not-WMS. There is a very obvious speed difference between the two. The reason the MapServer image has its colors wrong, for the record, is because it is using 8bit pngs instead of 24 bit pngs. My first impression was that was the reason for the difference, but unfortunately, 8bit gifs don't seem to fare any better. Time for the URLs: MapServer: real0m0.660s WMS: real 0m2.707s These may help someone who knows MapServer investigate more. Regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Gérant Neogeo Technologies SARL 46 RUE MATABIAU 31000 TOULOUSE Tél : +33 6 74 91 95 20 http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance
Hi John, Could you try to set your map projection with its EPSG code instead of the proj string, and see what happens ? Regards, Guillaume John Westwood a écrit : Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . A problem with using the OpenLayers.MapServer method is that the (1) The raster colours are messed up and (2) Anti-aliasing is not being done on the vector layers. I don't know why this is. Regards, John Westwood Stephen Woodbridge [EMAIL PROTECTED] 18/09/08 9:08 PM John Westwood wrote: Hi Paul and other MapServer Gurus, I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer is a fast WMS server, have I done something wrong for it not to be? What do you think could be the problem? You might want to check that you are comparing apples and apples. I would expect WMS to be a little slower because there is some overhead to query the server before actually making the image request. Do you have ratio set the same for both layers? What versions of Mapserver and OpenLayers are you using? Can you post a URL that has the two layers present in the layer switch so we can look at the requests and how your have it configured? Or post the HTML so we can look at. In fact you might want to post the HTML to the openlayers list and as the question there first, to make sure you have equivalent requests between WNS and Mapserver. -Steve W I will give it some thought tomorrow. John Paul Ramsey [EMAIL PROTECTED] 17/09/08 5:15 PM John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood [EMAIL PROTECTED] wrote: The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Map Information ___ 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] build mapserver 5.2.0 with proj 4.6.0
make sure you don't have any pre-installed Proj lib which would get linked during the ./configure Jacolin Yves a écrit : Hello, I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure script tells me : configure: error: This version of PROJ is too old. PROJ4.4.2 or later is required. , here is the configure comande line: ./configure --with-postgis --with-wmsclient --with-wfsclient --with-geos --with-proj=/usr/local/ --with-gdal --with-ogr --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ --with-agg=/mnt/data/compil/agg-2.5/ --with-curl-config=/usr/bin/curl-config --with-tiff --with-xml2-config=/usr/bin/xml2-config Do you know how to resolv this? Thanks Y. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0
what is surprising is that I have here an Ubuntu box with proj 4.6.0 package and a mapserver 5.2.0 compiled on it without any problem. Jacolin Yves a écrit : Hi Guillaume, This is a fresh system install from a virtual private server under OpenVZ, I tried to remove all packetage with apt-get remove, and nothing is removed ;) Furthermore I setup the option --with-proj which link to /usr/local/lib where libproj is installed (by myself). I built all main dependance (proj, gdal, geos, libecw and agg). It seems that configure script test pj_transform in proj and if this is not present, think it is an old proj release. I ma going to check in the proj ML to know more about this. Regards, Y. Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez écrit : make sure you don't have any pre-installed Proj lib which would get linked during the ./configure Jacolin Yves a écrit : Hello, I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure script tells me : configure: error: This version of PROJ is too old. PROJ4.4.2 or later is required. , here is the configure comande line: ./configure --with-postgis --with-wmsclient --with-wfsclient --with-geos --with-proj=/usr/local/ --with-gdal --with-ogr --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ --with-agg=/mnt/data/compil/agg-2.5/ --with-curl-config=/usr/bin/curl-config --with-tiff --with-xml2-config=/usr/bin/xml2-config Do you know how to resolv this? Thanks Y. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] AGG - transparent PNG with QUANTIZE OPTIONS in MS4W
Thanks Jeff, I didn't know there was an upgrade package and was still using 5.0.2 version ! hmmm, actually it is not so obvious in the main page ;-) Regards, Guillaume Jeff McKenna a écrit : On 22-Jul-08, at 1:54 PM, Guillaume Sueur wrote: Hi list, I was wondering if transparent PNG with quantize options were available in MS4W as it requires the option --with-experimental-png . Thanks Yes this was recently requested and added for the 5.2.0 upgrade package. #~~~ # Optional RGBA palette png output # -- # Enable support for quantization of rgba pngs #~~~ !IFDEF PNG_DIR RGBA_PNG_ENABLED=-DUSE_RGBA_PNG !ENDIF --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.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
Re: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup
yes, it would. be you probably didn't install it in /usr like you specify in your configure. so try with --with-gd=/usr/local instead good luck ! Guillaume Matthew Pettis a écrit : Hi, I actually downloaded, unpacked, configure/make/make install'ed from http://www.libgd.org/releases/gd-2.0.35.tar.gz . I assume that would be the same thing as your command below? thanks, Matt On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort [EMAIL PROTECTED] wrote: hi, have you installed the libgd development packages ? # apt-get install libgd-dev thomas On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis [EMAIL PROTECTED] wrote: Hi All, This still fails... below is my configuration parameter setup and the output of configure are below... any suggestions? thanks, matt === configure parameters === ./configure --with-ogr=/usr \ --with-gdal=/usr \ --with-httpd=/usr/sbin/apache2 \ --with-wfsclient \ --with-wmsclient \ --enable-debug \ --with-curl=/usr \ --with-proj=/usr \ --with-threads \ --with-tiff \ --with-libiconv=/usr/local/lib \ --with-jpeg \ --with-freetype=/usr/lib/xorg/modules/fonts/ \ --with-threads \ --with-wcs \ --with-xml2-config=/usr/bin/xml2-config \ --with-gd=/usr \ --with-php=/usr === === output of configure script === checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.0.3' configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from -L -liconv libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). = On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis [EMAIL PROTECTED] wrote: Replied to your previous one -- I will try again tonight with your suggestion and update the list with the results -- Thanks again! Matt On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette [EMAIL PROTECTED] wrote: As I wrote in a previous message, is it possible that you configured using --with-gd=/usr/lib? You should use --with-gd=/usr only and the configure script should take care of looking in the right subdirectory for each file. Daniel Matthew Pettis wrote: Hi, More and different compiling issues from the one I've already posted... My configure script errors as shown below (truncated because I believe the most important part is included): -- configure: checking where
Re: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup
configure dump can't be the same. It should say : configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local instead of configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. if it is so, did you check your /etc/ld.so.conf as asked previously and run ldconfig afterwards ? Regards, Guillaume Matthew Pettis a écrit : Hi Guillaume, All, Guillaume was right, the install is in /usr/local, but when I changed the configure script to take --with-gd=/usr/local I get the same results as before (./configure dump is same as previously posted). Other ideas? Thanks, Matt On Sat, Jul 19, 2008 at 12:30 PM, Guillaume Sueur [EMAIL PROTECTED] wrote: yes, it would. be you probably didn't install it in /usr like you specify in your configure. so try with --with-gd=/usr/local instead good luck ! Guillaume Matthew Pettis a écrit : Hi, I actually downloaded, unpacked, configure/make/make install'ed from http://www.libgd.org/releases/gd-2.0.35.tar.gz . I assume that would be the same thing as your command below? thanks, Matt On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort [EMAIL PROTECTED] wrote: hi, have you installed the libgd development packages ? # apt-get install libgd-dev thomas On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis [EMAIL PROTECTED] wrote: Hi All, This still fails... below is my configuration parameter setup and the output of configure are below... any suggestions? thanks, matt === configure parameters === ./configure --with-ogr=/usr \ --with-gdal=/usr \ --with-httpd=/usr/sbin/apache2 \ --with-wfsclient \ --with-wmsclient \ --enable-debug \ --with-curl=/usr \ --with-proj=/usr \ --with-threads \ --with-tiff \ --with-libiconv=/usr/local/lib \ --with-jpeg \ --with-freetype=/usr/lib/xorg/modules/fonts/ \ --with-threads \ --with-wcs \ --with-xml2-config=/usr/bin/xml2-config \ --with-gd=/usr \ --with-php=/usr === === output of configure script === checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.0.3' configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from -L -liconv libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). = On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis [EMAIL PROTECTED] wrote: Replied to your previous one -- I will try again tonight with your suggestion and update the list with the results -- Thanks again! Matt On Fri, Jul
Re: [mapserver-users] Compiling Issues: Ubuntu 8.04
try to add /usr/lib to your /etc/ld.so.conf and then /sbin/ldconfig if you don't find needed files (proj_api.h etc, but you seem to have them on your disk), always try to install the devel package correspondig to your lib. Guillaume Matthew Pettis a écrit : Hi Guillaume, Milo, Thanks for the replies... please see below MIlo: --- Ah! I faced this one on debian yesterday! Thanks to great help on the irc channel I can help ou with a solution, aint life great? You say proj_api.h is in that directory, but how about libproj.a/libproj.so? Did you run the ./configure, make , make install for proj? If you did You may need to run: ldconfig /usr/include --- proj_api.h is in /usr/include/ while libproj.a/libproj.so are in /usr/lib... i didn't build the libproj.* libraries myself, but downloaded them via synaptic -- do i need to do a manual build? Guillaume: --- On Fri, Jul 18, 2008 at 2:05 AM, Guillaume Sueur [EMAIL PROTECTED] wrote: did you add your lib path to /etc/ld.so.conf and run ldconfig after proj install ? Guillaume Matthew Pettis a écrit : Hi, I am compiling MapServer from source because I want to include fastcgi... anyway, I've fixed most of the compile issues, but I can't get past the following: configure: checking whether we should include PROJ.4 support... configure: error: Could not find proj_api.h or libproj.a/libproj.so in /usr/include/. However, I verified that /usr/include/proj_api.h does exist, so I'm a bit confused... any suggestions? Thanks, Matt --- answer: no, because like I wrote to Milo, I did a synaptic install of the proj library, not a manual build... can i still edit it after doing a synaptic install? my ld.so.conf file looks like this currently: --- include /etc/ld.so.conf.d/*.conf --- is this what it should look like? Thanks, Matt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] ShapeObj-values in python mapscript
Hi list, I'd like to access to the values of a ShapeObj in python mapscript but it seems that the values array is not accessible in python. I'm using mapscript 5.0.2 Any hint ? Thanks -- Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ShapeObj-values in python mapscript
sure, I've noticed that. But how can I retrieve the fields names ? Thx Umberto Nicoletti a écrit : Use getValue(index) instead. Umberto On Thu, Jul 10, 2008 at 11:56 AM, Guillaume Sueur [EMAIL PROTECTED] wrote: Hi list, I'd like to access to the values of a ShapeObj in python mapscript but it seems that the values array is not accessible in python. I'm using mapscript 5.0.2 Any hint ? Thanks -- Guillaume ___ 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] insertLayer()
I guess you just need a new LayerObj, as described in the mapscript documentation (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class) : Layer Objects can be returned by the MapObj class, or can be created using: layerObj ms_newLayerObj(MapObj map [, layerObj layer]) A second optional argument can be given to ms_newLayerObj() to create the new layer as a copy of an existing layer. If a layer is given as argument then all members of a this layer will be copied in the new layer created. You can then play with : boolean moveLayerUp(int layerindex) Move layer up in the hierarcy of drawing. boolean moveLayerDown(int layerindex) Move layer down in the hierarcy of drawing. array getlayersdrawingorder() Return an array containing layer's index in the order which they are drawn. boolean setlayersdrawingorder(array layeryindex) Set the layer's order array. The argument passed must be a valid array with all the layer's index. Return TRUE on success or else FALSE. to set your layer's correct place into the map. Hope that helps, Guillaume Hans Castorp a écrit : Hi to all, If map-insertLayer() isn't available in php mapscript, how can I insert a runtime created layer using php mapscript??? Thanks in advance. Hans Castorp. Enviado desde Correo Yahoo! http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html La bandeja de entrada más inteligente. ___ 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] WMS, SLD, FilterEncoding and PropertyIsLike
Folks, I've found the trick ! Where OGC SLD specification says : PropertyIsLike wildCard=* singleChar=# escapeChar=! MapServer wants : PropertyIsLike wildCard=* singleChar=# escape=! Using the first expression with MapServer causes the filter set with it to apply to every records. Should I submit a ticket for this ? Guillaume Yewondwossen Assefa a écrit : Guillaume, Attaches is an sld I use for testing and mapsever returns the expected results. If you do not mind sharing your sld, you can send it to me and I can have a look. Best Regards, Guillaume Sueur wrote: actually it helped me going further in my analysis : when I use PropertyIsLike, it traps all the records, even those non matching with the pattern. Is that a mapserver bug on WMS-SLD handling ? Thanks Oscar Gomez a écrit : Hi Guillaume, In the past it worked for me, but I had to look very carefully at the symbology specification from OGC. Here you are my example: sld:Rule * * sld:Name / *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Title *-* ![CDATA[ * * ]] * * /sld:Title *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# ogc:Filter *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# ogc:PropertyIsLike wildCard=*** singleChar=*#* escapeChar=*!* * * * * * * ogc:PropertyName*ORIGENAGUA*/ogc:PropertyName * * ogc:Literal*Subter**/ogc:Literal * * /ogc:PropertyIsLike * * /ogc:Filter *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:PolygonSymbolizer *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Fill *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:GraphicFill *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Graphic *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Mark * * sld:WellKnownName*circle*/sld:WellKnownName *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Fill * * sld:CssParameter name=*fill**#A87000*/sld:CssParameter * * sld:CssParameter name=*fill-opacity**1.0*/sld:CssParameter * * /sld:Fill * * /sld:Mark * * sld:Size*1*/sld:Size * * /sld:Graphic * * /sld:GraphicFill * * /sld:Fill *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Stroke * * sld:CssParameter name=*stroke**#A87000*/sld:CssParameter * * sld:CssParameter name=*stroke-width**1*/sld:CssParameter * * sld:CssParameter name=*stroke-opacity**1*/sld:CssParameter * * /sld:Stroke * * /sld:PolygonSymbolizer * * /sld:Rule I hope you find it useful. Best, Oscar On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Has anyone ever had a PropertyIsLike filter working on a WMS layer ? I have an SLD file with several rules, all of them with PropertyIsEqualTo Filter. It works ok. If I change one of these to PropertyIsLike (I add wildcard, singleChar and escapeChar as well), they ALL go wrong, none of the filters being used. All my objects are then shown with the default representation placed at the end of the file without any filter. Any idea about this strange behaviour ? Thanks -- Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Oscar Gomez Visita mi blog!! http://ogomez2.blogspot.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike
seen, thanks. shame on me for having followed the wrong specification paper ! But actually, isn't MapServer behaviour a bit weird when it applies the misconfigured filter on every record ? Guillaume [EMAIL PROTECTED] a écrit : [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Mon, 30 Jun 2008 11:30:40 +0200 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No Mapserver is right in this case it uses SLD 1.0 which is tied to Filter 1.0, see: http://schemas.opengis.net/filter/1.0.0/filter.xsd xsd:attribute name=escape type=xsd:string use=required/ Btw, in Filter 1.1 the OGC changed this to: http://schemas.opengis.net/filter/1.1.0/filter.xsd xsd:attribute name=escapeChar type=xsd:string use=required/ Best regards, Bart On Mon, 30 Jun 2008 11:19:04 +0200, Guillaume Sueur [EMAIL PROTECTED] wrote: Folks, I've found the trick ! Where OGC SLD specification says : PropertyIsLike wildCard=* singleChar=# escapeChar=! MapServer wants : PropertyIsLike wildCard=* singleChar=# escape=! Using the first expression with MapServer causes the filter set with it to apply to every records. Should I submit a ticket for this ? Guillaume Yewondwossen Assefa a écrit : Guillaume, Attaches is an sld I use for testing and mapsever returns the expected results. If you do not mind sharing your sld, you can send it to me and I can have a look. Best Regards, Guillaume Sueur wrote: actually it helped me going further in my analysis : when I use PropertyIsLike, it traps all the records, even those non matching with the pattern. Is that a mapserver bug on WMS-SLD handling ? Thanks Oscar Gomez a écrit : Hi Guillaume, In the past it worked for me, but I had to look very carefully at the symbology specification from OGC. Here you are my example: sld:Rule * * sld:Name / *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Title *-* ![CDATA[ * * ]] * * /sld:Title *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# ogc:Filter *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# ogc:PropertyIsLike wildCard=*** singleChar=*#* escapeChar=*!* * * * * * * ogc:PropertyName*ORIGENAGUA*/ogc:PropertyName * * ogc:Literal*Subter**/ogc:Literal * * /ogc:PropertyIsLike * * /ogc:Filter *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:PolygonSymbolizer *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Fill *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:GraphicFill *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Graphic *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Mark * * sld:WellKnownName*circle*/sld:WellKnownName *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Fill * * sld:CssParameter name=*fill**#A87000*/sld:CssParameter * * sld:CssParameter name=*fill-opacity**1.0*/sld:CssParameter * * /sld:Fill * * /sld:Mark * * sld:Size*1*/sld:Size * * /sld:Graphic * * /sld:GraphicFill * * /sld:Fill *-* http://www12.asphost4free.com/ogomez2/temp/wise.xml# sld:Stroke * * sld:CssParameter name=*stroke**#A87000*/sld:CssParameter * * sld:CssParameter name=*stroke-width**1*/sld:CssParameter * * sld:CssParameter name=*stroke-opacity**1*/sld:CssParameter * * /sld:Stroke * * /sld:PolygonSymbolizer * * /sld:Rule I hope you find it useful. Best, Oscar On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Has anyone ever had a PropertyIsLike filter working on a WMS layer ? I have an SLD file with several rules, all of them with PropertyIsEqualTo Filter. It works ok. If I change one of these to PropertyIsLike (I add wildcard, singleChar and escapeChar as well), they ALL go wrong, none of the filters being used. All my objects are then shown with the default representation placed at the end of the file without any filter. Any idea about this strange behaviour ? Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo from PostGis database
add gid to the SQL string : DATA the_geom FROM (select gid, numero, feuille, the_geom FROM localisant) as foo USING UNIQUE gid USING SRID=27582 and try to use EPSG:27572 as 27582 is deprecated. Regards, GUillaume SAEZ Laurent - CETE Méditerr./DI/ETER a écrit : Hi, I've tried to use the gid column, but the getfeatureinfo reports me an error : Postgresql reports the error as #39;ERREUR: la colonne «gid» n#39;existe pas #39; The error tells me that the gid column doesn't exist. You can trust me, I have a field called gid. Thanks Le 30/06/2008 19:49, Bart van den Eijnden (OSGIS) (par Internet) a écrit : You shouldn't use the geometry column as the unique column (USING UNIQUE X). Try an integer type column for that. Best regards, Bart SAEZ Laurent - CETE Méditerr./DI/ETER wrote: Hi list, I'm trying to access data fields using getfeatureinfo from a PostGIS database. I've read some articles about it, but it seems that I'm a newbie. I've no problem with data access when I do some getmap requests. Here is a part of my mapfile : LAYER NAMEbdparcellaire_numero TYPEannotation STATUS ON DUMP TRUE TEMPLATE blank.html MINSCALE 100 MAXSCALE 1 CONNECTIONTYPEpostgis CONNECTIONuser=toto password=toto dbname=bdparcellaire_2007 host=172.23.208.134 port=5432 LABELITEMnumero CLASS LABEL TYPE TRUETYPE WRAP # COLOR 0 0 0 OUTLINECOLOR 254 254 254 FONT arial SIZE 9 POSITION CC FORCE false PARTIALS false END END METADATA WMS_TITLE Numéros de parcelle (Données BD Parcellaire® - Copyright IGN) wms_abstract Visible entre les échelles 1/100 et 1/10 000wms_srs EPSG:27582 EPSG:27581 EPSG:27583 EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 EPSG:4326 wms_extent 47650 1620400 1197850 2677450 WMS_ENCODING UTF-8 GML_INCLUDE_ITEMS all END END When I try this getfeatureinfo request, the XML returned is not complete : The request : http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoSRS=EPSG%3A27582WIDTH=600HEIGHT=400BBOX=643470,1743572,643590,1743652LAYERS=bdparcellaire_numeroSTYLES=FORMAT=image%2FpngQUERY_LAYERS=bdparcellaire_numeroX=167Y=175INFO_FORMAT=application%2Fvnd.ogc.gmlFEATURE_COUNT=999 The entire XML : ?xml version=1.0 encoding=UTF-8? msGMLOutput xmlns:gml=http://www.opengis.net/gml; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; bdparcellaire_numero_layer Why it doesn't work ? I know that it should be in my DATA object in my mapfile, but I don't know what exactly... Thanks a lot... ___ 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] No Labels on PostGIS Layer
just an idea before coffee... DATA field_boundary from (select fb.field_id as field_id, fb.field_id as OID, fb.field_boundary as field_boundary, fb.acres as acres, f.field_name as field_name from field_boundary fb, fields f where fb.field_id=f.field_id) as field_boundary doesn't it make a lot of 'field_boundary' for different things (table, geo field...) what happens if you write: DATA the_geom from (select fb.field_id as field_id, fb.field_id as OID, fb.field_boundary as the_geom fb.acres as acres, f.field_name as field_name from field_boundary fb, fields f where fb.field_id=f.field_id) as myjoin Guillaume Paul Ramsey a écrit : There's really nothing special going on. Send your map file and a table dump and I will attempt to duplicate, but frankly... if it was a general problem we'd have heard of it by now. P. On Mon, Jun 23, 2008 at 6:31 PM, osprey44 [EMAIL PROTECTED] wrote: Paul, I originally started with just trying to view acres, which lives in field_boundary table which has the geometry. To triple check, I just removed reference to the field table and changed the labelitem to acres. Still no joy. Is there any special DB setting that is required to return the label query data; similar to what needs to be done to utilize the geometry columns? Chris Work it back to basics. Does it work without the join? There's nothing obviously wrong with your map entry, that I can eyeball. P On Mon, Jun 23, 2008 at 2:35 PM, osprey44 [EMAIL PROTECTED] wrote: Yes, that particular ID should return a name of Madison. Also, I attempted to use acres and that column also has a value. I have labeled layers that have come from shapefiles in nearly the same manner (minus the postgis connection), and their labels print properly. -- View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18081915.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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Client setup not sending any requests
Hi, Tough question, as the problem can has many origins, or even multiple origins... Having seen your .map, I assume that the main parameters are correct. Maybe one first pointto check is the scale : the getCapabilities says for raster100 : ScaleHint min=4 max=16/ and you set in your layer section scales from 500 to 2. I don't think your initial extent (3037978.75 6622010.94 3767454.98 779) falls into that. Can you try with a more adequate extent ? Also, you are requesting a jpeg image from the wms server to render your map in png. Try to ask for png as the server allows that. Hint : to test a mapfile directly, you can use shp2img which will try to draw the image as defined in the mapfile. use shp2img -o test.png to get the resulting image into test.png file. Hope that helps, Guillaume GoneWacko a écrit : Hello, I am currently working on a project where I’m trying to use Mapserver as a WMS client, intending to have Mapserver handle the overlaying of data for me. The WMS service I’m going to be using one licensed from the National Land Survey of Finland. This server only supports HTTPS connections and requires Basic Authorization to get data from the service. This may prove to be an issue for me in the future, but at the moment I’m having (what I suspect to be) a different problem. When I test my Map file, which to the best of my (currently limited) knowledge of Mapserver, should work, I only get entirely white images back from the mapserv binary. I’ve not yet figured out how to get mapserv to do verbose logging, but the logging it does so far does not show me what the issue might be. I’ve been trying to get it to work on linux, but then when it didn’t I tried it on my local windows machine as well. Both machines display the same white image. The output of my mapserv –v invocations: On Linux: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Windows: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 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=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The map file I’m using can be found at the following location: http://www.gonewacko.com/work/finland.map For more information about the capabilities of the WMS Server I’m trying to connect to, I’ve uploaded the results of a GetCapabilities request here: http://gonewacko.com/work/GetCapabilities.xml (Most of the text is in Finnish; Which I don’t actually understand myself, but luckily it’s not too relevant). The URL I’ve been using to test it has usually just been http://example.com/cgi-bin/mapserv?map=/path/to/finland.mapmode=map http://example.com/cgi-bin/mapserv?map=/path/to/finland.mapmode=map. My theories are - The map has been set up in such a way that mapserv finds it’s not within the area I’m requesting, and as such does not attempt to render it. - The map has just been set up incorrectly (most likely) Note that the only files I have are the map file. I do not have any shape files or anything of that nature. And apart from the censored login information in the URLs, the map file is available in its entirety. Also note that I’ve tried replacing the WMS URLs with something that is not a https url (i.e. a normal http url), as well as omitting the authorization data. It still wouldn’t send a request to the URL. Can anyone shed some light on what I’m doing wrong? Thanks in advance. Best Regards, Stijn Gijsen ___ 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] SLD implementation - fill-opacity
Hi folks, Does Mapserver SLD implementation supports the fill-opacity css parameter ? As far as I can see, it doesn't. Bug ? Thanks -- Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD implementation - fill-opacity
sure thanks [EMAIL PROTECTED] a écrit : I am quite sure this is because back then Mapserver only supported layer-level transparency, and not style-level transparency. With the new addition of style-level transparency in trunk, it should become possible to implement this now AFAICT. Maybe open up an enhancement ticket for this? Best regards, Bart On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur [EMAIL PROTECTED] wrote: Hi folks, Does Mapserver SLD implementation supports the fill-opacity css parameter ? As far as I can see, it doesn't. Bug ? Thanks -- Guillaume ___ 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] SLD implementation - fill-opacity
Hi, Assefa, Do you mean I have to use AGG to get benefit from opacity settings in SLD ? Thanks Yewondwossen Assefa a écrit : Hi there, Actually the style-opacity parameter was there for a while although not used until recently. The SLD (mapserver svn) already reads the stoke/fill-opacity and set the parameter. Note that this only the AGG output supports opacity at style level. Please report an issue through bug 2638 if opacity with AGG output is not working as expected. Best Regards, [EMAIL PROTECTED] wrote: I am quite sure this is because back then Mapserver only supported layer-level transparency, and not style-level transparency. With the new addition of style-level transparency in trunk, it should become possible to implement this now AFAICT. Maybe open up an enhancement ticket for this? Best regards, Bart On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur [EMAIL PROTECTED] wrote: Hi folks, Does Mapserver SLD implementation supports the fill-opacity css parameter ? As far as I can see, it doesn't. Bug ? Thanks -- Guillaume ___ 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 -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD implementation - fill-opacity
I still don't have a the desired rendering, even with AGG... I'm using 5.0.1 dev version, should I upgrade to the last SVN version ? thanks Yewondwossen Assefa a écrit : Guillaume Sueur wrote: Hi, Assefa, Do you mean I have to use AGG to get benefit from opacity settings in SLD ? Thanks Yesy : the SLD will always parse and set the style's opacity parameter. But since only the AGG output uses it when rendering the map, you would need to set your output to AGG to see the effects. Yewondwossen Assefa a écrit : Hi there, Actually the style-opacity parameter was there for a while although not used until recently. The SLD (mapserver svn) already reads the stoke/fill-opacity and set the parameter. Note that this only the AGG output supports opacity at style level. Please report an issue through bug 2638 if opacity with AGG output is not working as expected. Best Regards, [EMAIL PROTECTED] wrote: I am quite sure this is because back then Mapserver only supported layer-level transparency, and not style-level transparency. With the new addition of style-level transparency in trunk, it should become possible to implement this now AFAICT. Maybe open up an enhancement ticket for this? Best regards, Bart On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur [EMAIL PROTECTED] wrote: Hi folks, Does Mapserver SLD implementation supports the fill-opacity css parameter ? As far as I can see, it doesn't. Bug ? Thanks -- Guillaume ___ 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 -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD implementation - fill-opacity
Great ! thanks again ! Yewondwossen Assefa a écrit : Guillaume, Yes :support in AGG for the style opacity is only available in the last svn trunk (http://trac.osgeo.org/mapserver/ticket/1155) Besr Regards, Guillaume Sueur wrote: I still don't have a the desired rendering, even with AGG... I'm using 5.0.1 dev version, should I upgrade to the last SVN version ? thanks Yewondwossen Assefa a écrit : Guillaume Sueur wrote: Hi, Assefa, Do you mean I have to use AGG to get benefit from opacity settings in SLD ? Thanks Yesy : the SLD will always parse and set the style's opacity parameter. But since only the AGG output uses it when rendering the map, you would need to set your output to AGG to see the effects. Yewondwossen Assefa a écrit : Hi there, Actually the style-opacity parameter was there for a while although not used until recently. The SLD (mapserver svn) already reads the stoke/fill-opacity and set the parameter. Note that this only the AGG output supports opacity at style level. Please report an issue through bug 2638 if opacity with AGG output is not working as expected. Best Regards, [EMAIL PROTECTED] wrote: I am quite sure this is because back then Mapserver only supported layer-level transparency, and not style-level transparency. With the new addition of style-level transparency in trunk, it should become possible to implement this now AFAICT. Maybe open up an enhancement ticket for this? Best regards, Bart On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur [EMAIL PROTECTED] wrote: Hi folks, Does Mapserver SLD implementation supports the fill-opacity css parameter ? As far as I can see, it doesn't. Bug ? Thanks -- Guillaume ___ 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] insert png image in svg output
actually, it's getting a bit clearer now. what happens when you try to open the svg file in your web browser ? Guillaume valerio vianello a écrit : Hi, I need that Mapserver give me an image in svg format. I tried to follow the instruction in http://mapserver.gis.umn.edu/docs/howto/svg-howto; but I still have some problems. My map file is composed by two layers: a raster layer (a png file) a polygon layer. I set in the map the output format as svg and I have put in the file this code : OUTPUTFORMAT NAME svg DRIVER svg MIMETYPE image/svg+xml IMAGEMODE PC256 EXTENSION svg END In the Mapserver tmp directory there is two file. One file in png format with the raster layer and one file in svg format with the polygon layer and a link to the png file. There is a way to insert a real picture in the svg file in place of the link ? The following is the code in the svg file. ?xml version=1.0 encoding=UTF-8? svg version=1.1 width=600 height=400 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; !-- START LAYER background -- image xlink:href=/ms4w/tmp/ms_tmp/4843c233_6948_1.png x=0 y=0 width=600 height=400/ !-- START LAYER floors -- path stroke=#202020 stroke-width=1 style=fill:none d=M 8 28 L 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8 28 z/ path stroke=#202020 stroke-width=1 style=fill:none d=M 240 241 L 285 241 L 285 364 L 146 363 L 149 322 L 240 241 z/ path stroke=#202020 stroke-width=1 style=fill:none d=M 3 242 L 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242 z/ path stroke=#202020 stroke-width=1 style=fill:none d=M 5 30 L 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30 z/ path stroke=#202020 stroke-width=1 style=fill:none d=M 293 38 L 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z/ path stroke=#202020 stroke-width=1 style=fill:none d=M 436 41 L 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z/ path stroke=#00 stroke-width=1 style=fill:none d=M 11 138 L 281 136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244 L 8 223 L 11 138 z/ text x=115 y=234 font-family=arial-bold font-size=12pt fill=#841f1f text-anchor=ends.X/text text x=466 y=106 font-family=arial-bold font-size=12pt fill=#841f1f text-anchor=ends.F/text text x=323 y=106 font-family=arial-bold font-size=12pt fill=#841f1f text-anchor=ends.E/text text x=50 y=90 font-family=arial-bold font-size=12pt fill=#841f1f text-anchor=ends.canteen/text text x=35 y=310 font-family=arial-bold font-size=12pt fill=#841f1f text-anchor=ends.B/text text x=185 y=308 font-family=arial-bold font-size=12pt fill=#841f1f text-anchor=ends.A/text /svg Any suggestion thanks valerio Scopri il Blog di Yahoo! Mail http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F: trucchi, novità, consigli... e la tua opinione! ___ 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] Performances using EPSG codes or Proj parameters
Folks, In a previous thread (testing mapserver largefiles rendering improvements), Paul mentionned that using proj4 literals was a part of a performances improvement process. Has anyone done some tests about this and would have few results to share ? We drop that thread after discussing about auto-qix or not. Could we open some wiki page on the topic 'How to improve MapServer performance' and 'What should a MapFile optimizer do ?'. It could be a good start to a maybe more formal approach we could hold in CapeTown. Regards, Guillaume SUEUR ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
if you can, yes, have a try to linux. But this should work on Windows too. it's been a long time since I haven't used MapServer on Windows, but I remember having had problems with backslashes. Can you try doubling them (ie C:\\ms4w\\Apache\\htdocs\\test.html) Can you confirm it is still the exact same error (parsing error on line 1) ? then, can you check your CR-LF as well ? Hope that helps ! Guillaume Νίκος Παπαδάκης a écrit : Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME TEST!!! SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE C:\ms4w\Apache\htdocs\test.html IMAGEPATH C:\ms4w\Apache\htdocs\tmp IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html *html headtitleMapServer Hello World/title/head body form method=POST action=/cgi-bin/mapserv.exe input type=submit value=Click input type=hidden name=MAP value=C:\ms4w\Apache\htdocs\test.map input type=hidden name=map_web value=imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/ /form IMG SRC=[img] width=400 height=300 border=0 /body /html * * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo Problem in Mapserver5
Hi, I would say something is wrong in your mapfile - SCALEBAR section. Maybe some option has changed in version 5. Try to delete that section and test again. Regards, Guillaume kevin gomes a écrit : Hello, I'm facing problems making the GetFeatureInfo request in Mapserver5. The following GetFeatureInfo request, returns expected results in Mapserver4. *http://demo.binyasit.com/gvis/htdocs/protogis_wms.cgi?REQUEST=GetFeatureInfoEXCEPTIONS=application/vnd.ogc.se_xml; http://demo.binyasit.com/gvis/htdocs/protogis_wms.cgi?REQUEST=GetFeatureInfoEXCEPTIONS=application/vnd.ogc.se_xml; BBOX=64.998443,15.821582,85.960357,21.578418X=492Y=119INFO_FORMAT=text/htmlQUERY_LAYERS=districts FEATURE_COUNT=2WIDTH=954HEIGHT=262VERSION=1.1.1LAYERS=districts * But when i make the same request in Mapserver5, it asks for additional parameters. Then i checked the Migration Docs and modified the request as follows *http://pcmcgisda.org.in/cgi-bin/mapserv.5b?format=image/pngSRS=EPSG:26915map=/srv/release.pcmc.org/map/.config.mapREQUEST=GetFeatureInfo; http://pcmcgisda.org.in/cgi-bin/mapserv.5b?format=image/pngSRS=EPSG:26915map=/srv/release.pcmc.org/map/.config.mapREQUEST=GetFeatureInfo; EXCEPTIONS=application/vnd.ogc.se_xmlBBOX=356415.589844,2056761.035156,395041.410156,2067368.964844X=440Y=98INFO_FORMAT=text/html QUERY_LAYERS=watersupplyline,esr,valveFEATURE_COUNT=2WIDTH=954HEIGHT=262VERSION=1.1.1LAYERS=watersupplyline,esr,valveSTYLES= *But it returns the following error.* * ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE ServiceExceptionReport SYSTEM http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd; ServiceExceptionReport version=1.1.1 ServiceException msDrawScalebar(): General error message. Unsupported scalebar style. /ServiceException /ServiceExceptionReport I am not able to make out what is wrong with the Request. Can you please guide me. Regards, -- Kevin Gomes ...enjoy being GIS maniacs ___ 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] testing mapserver large files rendering improvements
Hi, I've just been doing few tests on mapserver trunk version to get an idea of how much the rendering of large shapefiles has been improved by paul's hacks on shx handler (http://blog.cleverelephant.ca/2008/04/see_30.html) My shapefile is 1 208 668 features, 160 Mo for the .shp file itself with a .shx of 5.2 Mo here are the times for a 5x5 km map to be drawn with shp2img, in PNG (no AGG) NO QIX : mapserv 5.0.2 : 0.680 s mapserv trunk : 0.699 s (!) WITH QIX : mapserv 5.0.2 : 0.124 s mapserv trunk : 0.027 s it looks like if the improvement only appears with use of a .qix file, which is highly recommended but sometimes forgotten. Has anyone had the same kind of experiment ? By the way, I noticed that it doesn't seem mandatory anymore to write the mapfile's DATA statement without the .shp extension to make use of the .qix file, as the results are strictly identical on mapserver trunk if I write streets.shp or streets. Can someone confirm that ? Thanks Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] testing mapserver large files rendering improvements
Thanks for theses informations Jeff. I'd like to suggest to emphasis the need of a .qix file a little bit more in the mapserver documentation. It's only explained in 'Utility Programs' Section and 'Optimizing vector data sources' doc, but the huge benefit of it (25 x faster in this case, but still 5x on small shapes) is not, IMHO, mentionned enough to make people use it on every shapefile. Regards, Guillaume Jeff McKenna a écrit : Hello, comments inline below: On 15-May-08, at 9:27 AM, Guillaume Sueur wrote: Hi, I've just been doing few tests on mapserver trunk version to get an idea of how much the rendering of large shapefiles has been improved by paul's hacks on shx handler (http://blog.cleverelephant.ca/2008/04/see_30.html) My shapefile is 1 208 668 features, 160 Mo for the .shp file itself with a .shx of 5.2 Mo here are the times for a 5x5 km map to be drawn with shp2img, in PNG (no AGG) NO QIX : mapserv 5.0.2 : 0.680 s mapserv trunk : 0.699 s (!) WITH QIX : mapserv 5.0.2 : 0.124 s mapserv trunk : 0.027 s it looks like if the improvement only appears with use of a .qix file, which is highly recommended but sometimes forgotten. Has anyone had the same kind of experiment ? yes: http://lists.osgeo.org/pipermail/mapserver-dev/2008-April/007170.html By the way, I noticed that it doesn't seem mandatory anymore to write the mapfile's DATA statement without the .shp extension to make use of the .qix file, as the results are strictly identical on mapserver trunk if I write streets.shp or streets. Can someone confirm that ? Confirmed. This was fixed recently (ticket: http://trac.osgeo.org/mapserver/ticket/590), verified, and documentation was updated. Therefore the next release of MapServer will no longer require you to omit the '.shp' for the DATA parameter for .qix use. -jeff ___ 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] Trouble compiling 5.0.2 with AGG on Centos 4
try --with-freetype=/usr/bin and --with-agg=/path/to/agg/build/dir Guillaume Dominik Schmid a écrit : We've finally decided to move forward and replace our ageing Mapserver 4.0.1 installation with the latest and greatest version. I came as far as thinking that the AGG make was successfull, but when I try to configure Mapserver (/.configure -with-agg --with-freetype) I get the following error: configure: error: freetype required for agg support - please configure --with-freetype I did include some directories with both options with the same result. I'm not sure where AGG is exactly installed (directly in agg-2.x or in a subdirectory in there) nor which freetype directory to use located (the libfreetype.* files are in /usr/lib but freetype-config is in /usr/bin). When I check in yum I see that freetype 2.1.9 is in fact installed. One problem I see is with AGG, I can't get it through Centos 4 repositories so I guess need to compile it myself. I've tried various instructions: - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's still valid info) - Rich Fromm's instructions posted on this list on Nov 27, 2007 The instruction in ticket 2215 don't result in the promised agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5. Rich's instructions for build AGG (. autogen.sh) exits with the following error: ./configure: line 4513: syntax error near unexpected token 'FREETYPE,' ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,' I'm kind of lost with this, so I'm turning to this list for help. Documentation for installing Mapserver 5 with AGG support seems scarce. Here's some more system info: - Centos 4.4 - Apache 2.0.52 - PHP 5.1.6 - pgsql 8.1.8 - freetype and freetype-devel 2.1.9 ... I can give more specs if needed. Any help is greatly appreciated Dominik ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Howto generate 24-bit png data from mapscript?
Hi, Did you try using map.setOutputFormat(image/png) or map.setOutputFormat(png) ? Guillaume Sven Geggus a écrit : Hi there, looks like I got bitten by some mapscript bug, because I am unable to produce 24-bit png output via mapscript from my raster layers. I always get 8-bit rasters :( Despite the bug, I need a workaround for this as 8-bit rasters are insufficient for my purpose. Here is what my current testscript looks like: --cut-- import mapscript def index(req): req = mapscript.OWSRequest() req.loadParams() map = mapscript.mapObj() map.name = TestMap map.shapepath = /path/to/orthoimage/ map.setProjection(init=epsg:4326) map.setMetaData(wms_srs,epsg:4326) map.setExtent(-180.0,-90.0,180.0,90.0) outputFormat=mapscript.outputFormatObj(GD/PNG) outputFormat.name=png outputFormat.setMimetype(image/png) outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA outputFormat.transparent=1 outputFormat.setExtension(png) map.setOutputFormat(outputFormat) layer = mapscript.layerObj(map) layer.name= foobar layer.type = mapscript.MS_LAYER_RASTER layer.status = mapscript.MS_DEFAULT layer.data = my_otho_image.img map.save(/tmp/buggy.map) map.OWSDispatch(req) --cut-- Do you know a suitable workaround for this Problem? I consider this as a bug, because I am able to produce perfect 24-bit png data when using the genearted mapfile from cgi-mapserv. Regards Sven P.S.: I already reported this, but did not get a responce https://trac.osgeo.org/mapserver/ticket/2587 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] grayscale shaded relief in mapserver
Hi list, I've got a grayscale TIF showing shaded relief which I can't manage to display properly with mapserver. The image is just white. gdalinfo gives : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is ok. I tried few things like resampling it to 32 colors, or PROCESSING COLOR_MATCH_THRESHOLD=3 as I've found in mails archives, but without any luck. Any clue ? Thanks -- Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile?
Hi John, Maybe you can also filter the getCapabilities on the server side : make a wrapper which will get called by the client (for instance : www.server.net/myOwnCapabilities?layer=layer_namemap=map.map the wrapper will perform the standard getCapabilities on http://localhost/cgi-bin/mapserv and then manipulate the XML doc to erase all the layers nodes not requested by the user. If it suits your need, you can go this way. Hope that helps Guillaume John Maurer a écrit : Hi mapserver-users, What is the best way to provide a generic/flexible WMS-related URL for a specific layer within my MapServer mapfile? I want to include this kind of thing in our DIF FGDC metadata so that users know about a WMS for a given data set. If I provide a GetCapabilities request, this advertises *all* of the layers in my mapfile, which represent a collection of multiple data sets, most of which will be unrelated to the data set in the metadata. On the other hand, if I provide a GetMap request this allows me to specify the layer intended for a particular data set, but it limits the output possibilities to a specific srs, format, width, height, and bbox. A GetCapabilities for a specific layer would be akin to what I need, but I don't think that's how it works. This is my quandary and I'm hoping somebody has a solution to this kind of thing?? Thanks! Cheers, John Maurer -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS - getCapabilities BBOX
Hi, I've got a problem with mapserver's WMS getCapabilities. My data are projected in a local projection (EPSG:27563). Apparemtly, the getCapabilities calculates a LatLongBoundigBox, given in WGS84. But these values are wrong, with a serious shift on the west. When I translate the data with ogr2ogr to EPSG:4326 in KML, tha data is at the correct place in GoogleEarth. Any hint ? Thanks -- Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS - getCapabilities BBOX
Ok for the ticket. I'm going to read carefully your comments not to write non-sense ! Doing some further investigations, I noted that the WFS getCapabilities sends back a LatLongBoundingBox (don't forget the G to long for WFS... don't know why this parameter hasn't got the exact same name in WFS and WMS...) in WGS84 where the WFS specs say The LatLongBoundingBox element is used to indicate the edges of an enclosing rectangle in the SRS of the associated feature type. I may be wrong on this interpretation, but fixing the GetCapabilities XML doc on the fly allowed me to display my data. Best regards, Guillaume Frank Warmerdam a écrit : Guillaume Sueur wrote: Hi, I've got a problem with mapserver's WMS getCapabilities. My data are projected in a local projection (EPSG:27563). Apparemtly, the getCapabilities calculates a LatLongBoundigBox, given in WGS84. But these values are wrong, with a serious shift on the west. When I translate the data with ogr2ogr to EPSG:4326 in KML, tha data is at the correct place in GoogleEarth. Guillaume, EPSG:27563 has a prime meridian other than greenwich. I presume that is causing the problem. In fact, looking through the code I think the latlong box is actually computed in the GCS of the coordinate system in question, rather than WGS84. So in your case there is a serious error in the east west axis, but in other situations people may see small errors due to the lack of datum adjustment. I would suggest you file a ticket on it. Specifically the ticket might note that msOWSPrintLatLonBoundingBox() just passes NULL for the destination coordinate system, and msProjectPoint() just treats this as a special case to use the lat/long coordinate system (GCS) associated with the projected coordinate system. So in this case we see a big error because you are getting values relative to the paris prime meridian. This is likely to affect a number of places in MapServer (WMS, and WCS at least). Please add me (warmerdam) as a cc on the created ticket. I might not fix it, but I should at least be able to help. Best regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapfile for getFeatureInfo
Hi, maybe try wms_include_items all too. hope that helps guillaume Luca Casagrande a écrit : Hello everybody, after configuring a mapfile for WMS serving, I am trying to add the getFeatureInfo option but it's not working. According to doc, it's enough adding DUMP true and gml_include_items. I made some test with Qgis, but the query is not working What am I missing? Can be an issue with postgis/schema? Thanks for your help Luca This is the mapfile: MAP NAME test UNITS meters SIZE 800 600 RESOLUTION 96 IMAGETYPE png IMAGECOLOR 255 255 255 IMAGEQUALITY 95 TRANSPARENT ON PROJECTION init=epsg:23033 END EXTENT 138667 4624862 452902 4852896 SYMBOL NAME quadrato TYPE VECTOR POINTS 0 0 1 0 1 1 0 1 0 0 END FILLED TRUE END WEB METADATA wms_title Demo server wms_onlineresource http://localhost/cgi-bin/wms; wms_srs EPSG:23033 wms_abstract Test Server END END ###Sezione formati di output### OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB FORMATOPTION INTERLACE=OFF END LAYER NAME stations TYPE POINT GROUP stazioni CONNECTIONTYPE postgis CONNECTION 'host=localhost user=postgres dbname=test password=postgres' DATA 'the_geom FROM manis.stations' TEMPLATE foo PROJECTION init=epsg:23033 END DUMP TRUE STATUS ON METADATA wms_extent 138667 4624862 452902 4852896 wms_title stazioni gml_include_items all END CLASS STYLE SYMBOL quadrato OUTLINECOLOR 0 0 0 COLOR 255 0 0 SIZE 15 END END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS - DescribeFeatureType
Hi again, I'm trying to use describeFeatureType to retrieve type and fields of a given layer. While it looks right for attibute data, the GeomType is not precise : element name=msGeometry type=gml:GeometryPropertyType minOccurs=0 maxOccurs=1/ The only piece of information I get in there is that the Geometry is of GeometryType, which I don't need any WFS request for ! Is there a specific METADATA item to add or use to be able to have the precise type (PolygonPropertyType for instance) ? Thanks, -- Guillaume SUEUR ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS - DescribeFeatureType
bien vu ! merci ! Jacolin Yves a écrit : Hi, Mapserver is a SLD server by default (i mean no extra configuration, no extra build), just ask to mapserv cgi and you get it. The style is the one you setup in your LAYER CLASS object. You can even change it and send it back to mapserver to change the style of the LAYER. This is what I do for a simple map export to define the new opacity of the layer, opacity changed by my openLayer side. Y. Le Wednesday 12 March 2008 10:22:03 Guillaume Sueur, vous avez écrit : Will that work if no SLD is yet associated to the mapfile and maplayer ? Jacolin Yves a écrit : Hi, With a geStyle resquest, you get something like this for the polygon layer : PolygonSymbolizer Fill CssParameter name=fill#7f/CssParameter /Fill Stroke CssParameter name=stroke#00/CssParameter /Stroke /PolygonSymbolizer For a polyline layer: LineSymbolizer Stroke CssParameter name=stroke#00/CssParameter CssParameter name=stroke-width1/CssParameter /Stroke /LineSymbolizer For a point layer: PointSymbolizer Graphic Mark WellKnownNamecircle/WellKnownName Fill CssParameter name=fill#c8/CssParameter /Fill /Mark Size5/Size /Graphic /PointSymbolizer Y. Le Wednesday 12 March 2008 10:14:07 Guillaume Sueur, vous avez écrit : which kind of SLD request ? Actually, I need the geomType to specify which SLD template to associate with the layer... Jacolin Yves a écrit : Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez écrit : Hi again, I'm trying to use describeFeatureType to retrieve type and fields of a given layer. While it looks right for attibute data, the GeomType is not precise : element name=msGeometry type=gml:GeometryPropertyType minOccurs=0 maxOccurs=1/ The only piece of information I get in there is that the Geometry is of GeometryType, which I don't need any WFS request for ! Is there a specific METADATA item to add or use to be able to have the precise type (PolygonPropertyType for instance) ? Thanks, Hi Guillaume, You can use a SLD request on the layer. Y. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] combine many georeferenced tifs in one layer
not using the suffix causes mapserver to look for .shp and .qix which is the quadtree index file. Using .shp suffix causes mapserver looking for foo.shp.qix and not finding it, and not using your foo.qix Guillaume Mike Meier a écrit : Hi Bart, why without .shp suffix? I don't find this hint at the Mapfile reference or in a Trac Ticket. Greetings Mike Bart van den Eijnden (OSGIS) schrieb: You can do the following things to speed up performance: * create a spatial index on your tileindex shapefile with shptree (also make sure you reference your TILEINDEX in the MAP file without the .shp suffix) * create overviews in the tiff files using gdaladdo Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Onderwerp: RE: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 10:51 Thanks a lot Bart and you too Till! I had some troubles with the wildcards (*.tif) since the gdaltindex binary from gdal.org doesn't seem to support them - although it says so in the manual. I googled a bit and found fwtools which have gdaltindex implemented as well and here the wildcards work. But just as I thought I get follow-up problems :) 1) gdaltindex puts out a warning when processing my tiffs: Warning 1:TIFFFetNormalTag:ASCII value for tag quot;copyrightquot; contains null byte in value; value incorrectly truncated during reading due to implementation limitations But luckily that doesn't seem to influence the result. Still I would like to know what it is trying to tell me and google doesn't know :) 2) when loading the layer it takes at least 20seconds for mapserver to show it. I understand it is because of big amount of data? (50files, all in all 40MB) Is there any way to speed this up? Thank you very much for your help! Janosch -Ursprüngliche Nachricht- Von: Bart van den Eijnden (OSGIS) [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2008 11:49 An: Skrobek, Janosch; mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] combine many georeferenced tifs in one layer You need to create a tileindex using gdaltindex, and then reference that tileindex in your layer. See the RASTER HOWTO for details, chapter 4: http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: mapserver-users@lists.osgeo.org lt;mapserver-users@lists.osgeo.orggt; Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 08:45 gt; Hello everyone! gt; gt; I'm just getting started with Mapserver and have worked my way through gt; the tutorial made by Pericles S. Nacionales. Now I have started to work gt; on my own mapserver application but am experiencing some problems. gt; gt; I have a shapefile of my hometown which I use as the background layer. gt; Now I want to add Raster Data, I have 50 georeferenced tif tiles of the gt; area. I could add them in an own layer each but I would rather like all gt; these tiffs to be in one layer. Is there a way to tell mapserver to use gt; all tiffs in a folder for a layer? If not, what would be the best way to gt; combine these tiffs into one big image? gt; gt; I hope you can help me out :) gt; gt; Best Regards gt; Janosch gt; gt; gt; gt; Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. gt; Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, gt; informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte gt; Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der gt; rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist über diese gt; E-Mail-Adresse derzeit noch nicht möglich. gt; gt; gt; gt; ___ gt; mapserver-users mailing list gt; mapserver-users@lists.osgeo.org gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users gt; gt; Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht
Re: [mapserver-users] AGG_Q + raster problem
quantize_colors=255 is maybe the reason why your colors are reindexed on a 256 colors palette. Hans Castorp a écrit : Thanks Brent, but there is a mistake, the example I attached is not the mapservers original output: I have prepared it and give .gif extensión. This is the way I configure my output: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION TRANSPARENT=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=255 END Thanks in advance. -Mensaje original- De: Brent Fraser [mailto:[EMAIL PROTECTED] Enviado el: lunes, 18 de febrero de 2008 18:17 Para: Hans Castorp CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, GIF supports only 256 colors. Use PNG (or JPG) for an output format. Brent Fraser Hi to all, I’m trying to publish a cartography using both vectorial and raster layers. I’m using mapserver 5 and agg_q as output format. There is no problem about vectorial files (shapefiles): all work fine. The only problem I’m having is trying to publish some raster stuff: an aerial photo (.geotiff) and a digital terrain model (.ecw). I’m not capable to make the output showing real colours; there is an example attached to this mail (an aerial photo). My mapfile looks in this way: LAYER NAME MDT STATUS DEFAULT GROUP MDT TYPE raster DATA mdt.tif CLASS MINSCALE 15000 END END LAYER NAME ORTOFOTO STATUS DEFAULT GROUP ORTOFOTO TYPE raster DATA ortofoto.ecw CLASS MAXSCALE 15000 END END What I have to do to solve this? Thanks in advance to everyone. Hans Castorp No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users