[mapserver-users] Re: [mapserver-dev] Proposed MapServer project additions...
Le mardi 09 août 2011 08:25:45, Steve Lime a écrit : The next significant MapServer release would be dubbed MapServer Suite and would contain all project components, that is, MapServer CGI, MapServer MapScript, MapServer TinyOWS and MapServer MapCache. The PSC is excited about the possibilities for the project and our users, and welcome any comments, questions or concerns regarding these proposed changes. Users interested in following or participating in MapServer development are encouraged to join the mapserver-dev mailing list. This is really great! Really good addition :) Thanks, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : +41 21 619 1031 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD and LABEL MINDISTANCE ..?
On 08/09/2011 13:23, Julien Cigar wrote: Hello, I'm using SLD with a TextSymbolizer section for labeling my polygons (this is what I have at the moment http://www.pastie.org/2344427). It works well except that I miss the MINDISTANCE of the LABEL section and wondered if there is a way to do it in the SLD ..? Does Mapserver supports some VendorOption that are undocumented? Is there a way to mix a LABEL section (in the .map file) with the SLD? Thanks, Julien apparently it's not possible to use a SLD and CLASS/LABEL definitions together, when I specify a SLD my LABEL definition in my mapfile is simply ignored.. too bad :( ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. attachment: jcigar.vcf___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Spatial Filter Problem
Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. *From:*mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Bryan Hempen *Sent:* Tuesday, August 09, 2011 4:15 AM *Cc:* mapserver-users@lists.osgeo.org *Subject:* Re: [mapserver-users] WFS Spatial Filter Problem Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from alldata using unique product_id using SRID=4326 CLASS STYLE OUTLINECOLOR125 0 0 END END DUMP TRUE ## REQUIRED END # layer END Does anyone see a problem with the setup? Many thanks to Kai and Assefa for the help so far! I am going to send you the shapefile (which you could import into the database with pgsql2shp), the mapfile, and my client. Kind regards, Bryan This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use,
Re: [mapserver-users] WFS Spatial Filter Problem
Perhaps the problem comes from the HTTP server (wrong (Fast)CGI config, ...) ? Take a look at your your error.log On 08/10/2011 14:35, Bryan Hempen wrote: Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. *From:*mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Bryan Hempen *Sent:* Tuesday, August 09, 2011 4:15 AM *Cc:* mapserver-users@lists.osgeo.org *Subject:* Re: [mapserver-users] WFS Spatial Filter Problem Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from alldata using unique product_id using SRID=4326 CLASS STYLE OUTLINECOLOR125 0 0 END END DUMP TRUE ## REQUIRED END # layer END Does anyone see a problem with the setup? Many thanks to Kai and Assefa for the help so far! I am going to send you the shapefile (which you could import into the database with pgsql2shp), the mapfile, and my client. Kind regards, Bryan This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = This message and any
AW: [mapserver-users] WFS Spatial Filter Problem
Hi, HTTP error code 500 means: Internal Server error and is usually reported when the (F)CGI process dies. Probably a simple NULL pointer dereference due to a missing check which results in a segmentation fault... Ever tried the thing with shp2img? If this also segfaults try recompiling with debug enabled and run it trough gdb. Greets. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bryan Hempen Gesendet: Mittwoch, 10. August 2011 14:35 An: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WFS Spatial Filter Problem Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Tuesday, August 09, 2011 4:15 AM Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS Spatial Filter Problem Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.ma p http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.ma p ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from
Re: [mapserver-users] WFS Spatial Filter Problem
Looks like you checked the Apache error_log. With the config that you quoted, you should find the debug info in /home/bhempen/ms_error.txt. On 11-08-10 08:35 AM, Bryan Hempen wrote: Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. *From:*mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Bryan Hempen *Sent:* Tuesday, August 09, 2011 4:15 AM *Cc:* mapserver-users@lists.osgeo.org *Subject:* Re: [mapserver-users] WFS Spatial Filter Problem Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from alldata using unique product_id using SRID=4326 CLASS STYLE OUTLINECOLOR125 0 0 END END DUMP TRUE ## REQUIRED END # layer END Does anyone see a problem with the setup? Many thanks to Kai and Assefa for the help so far! I am going to send you the shapefile (which you could import into the database with pgsql2shp), the mapfile, and my client. Kind regards, Bryan This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. =
[mapserver-users] Meaning of PROJECTION and WMS - using OpenLayers
Hi, since a couple of days we try visualize data from a postgis database using mapserver and openlayers. As far as we know is our postgis data in EPSG:25832 and our mapfile for mapserver looks like this: http://dpaste.com/hold/591626/ Now we have created an index.html containing the following JS snippet: http://dpaste.com/hold/591627/ We can test the WMS using a direct WMS URL to our MapServer and asking for EPSG:25832 and the correct extends, and it displays the map just fine (Everything is protected so I cannot provide this URL here). If we try to display the map using the openlayers code above we do not see anything at all. You can zoom and move it around but that's everthing you get with openlayers. Networkdebugging tools tell me, that OpenLayers by default is requesting that google projection of EPSG:3867. But even providing coordinates that should somehow be in Dortmund it does only display the backgroundcolor. Maybe you can help me clearing up a few things. Like the list of projections in 'wms_srs' is what MapServer provides via WMS. And the PROJECTION entry on the 'LAYER' level should be set to the projection of my data. Correct? And the PROJECTION on the MAP level is ignored? Does MapServer automatically convert the coordinates? MapServer requires to have EXTEND set. Which projection should I use? The one defined at MAP level? Best regards, Michael ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Meaning of PROJECTION and WMS - using OpenLayers
Dear Michael You need to tell OL which projection to request in within the map object. This is how I do it: var mapoptions = { maxExtent: new OpenLayers.Bounds(773500, 4555450, 2602100, 6384050), units: 'm', projection: EPSG:2193, }; map = new OpenLayers.Map( 'map',mapoptions ); Then my layer is something like this: var topochwms = new OpenLayers.Layer.WMS( Topos (Chathams), http://myserver/cgi-bin/gsswms.exe?;, {layers: ['ci250k','ci50kcitm'], transparent: 'true',format: image/png}, {singleTile: true, isBaseLayer: true, visibility: true} ); map.addLayer(topochwms); regards, Robert Michael G. michael.ga...@tu-dortmund.de 11/08/2011 11:41 a.m. Hi, since a couple of days we try visualize data from a postgis database using mapserver and openlayers. As far as we know is our postgis data in EPSG:25832 and our mapfile for mapserver looks like this: http://dpaste.com/hold/591626/ Now we have created an index.html containing the following JS snippet: http://dpaste.com/hold/591627/ We can test the WMS using a direct WMS URL to our MapServer and asking for EPSG:25832 and the correct extends, and it displays the map just fine (Everything is protected so I cannot provide this URL here). If we try to display the map using the openlayers code above we do not see anything at all. You can zoom and move it around but that's everthing you get with openlayers. Networkdebugging tools tell me, that OpenLayers by default is requesting that google projection of EPSG:3867. But even providing coordinates that should somehow be in Dortmund it does only display the backgroundcolor. Maybe you can help me clearing up a few things. Like the list of projections in 'wms_srs' is what MapServer provides via WMS. And the PROJECTION entry on the 'LAYER' level should be set to the projection of my data. Correct? And the PROJECTION on the MAP level is ignored? Does MapServer automatically convert the coordinates? MapServer requires to have EXTEND set. Which projection should I use? The one defined at MAP level? Best regards, Michael ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users