Re: AW: [mapserver-users] WFS Spatial Filter Problem
Hey guys, my current status report. I have tried the following list of things: - as proposed by Andreas, used shp2img. Works perfectly fine! - as proposed by Julien, took a look at the Apache error log. Here is a small excerpt of what it shows: [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] 3c3400-3c3403d000 r-xp fd:00 3123859 /usr/lib64/libldap_r-2.3.so.0 .2.31, referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html ... [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] 3c34a1c000-3c34a1d000 rw-p 0001c000 fd:00 3118384 /usr/lib64/libgeos_c.so.1.6.2 , referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html ... [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] Premature end of scrip t headers: mapserv, referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html In case it could be useful to see the whole log, please just tell me. Now, to wrap things up again adding some new insights by testing with different versions of the MapServer. This is what happened: When I try to use the WFS FE Spatial Filter Intersect with MapServer 5.6.5 on a PostGIS layer, it doesn't work and I get an Error 500. When, however, I use a WFS FE Spatial Filter like Intersect with MapServer 5.6.5 on a shapefile layer with the SAME data as the PostGIS layer contains, it works! When I try to use the WFS FE Spatial Filter BBOX with MapServer 5.6.5 on a PostGIS layer, it works! When I use a WFS FE non-spatial filter like PropertyIsEqualTo and/or combined with logical filters like AND or OR combined with the WFS FE Spatial Filter BBOX with MapServer 5.6.5 on a shapefile layer or a PostGIS layer with the the SAME data, it works! When I try to use the WFS FE Spatial Filter Intersect with MapServer 6.0.1 on a PostGIS layer, sometimes no results are returned and sometimes only some. The results are not accurate. When I try to use the WFS FE Spatial Filter Intersect with MapServer 6.0.1 on a shapefile layer, sometimes no results are returned and sometimes only some. The results are not accurate. When I use a WFS FE non-spatial filter like PropertyIsEqualTo and/or combined with logical filters like AND or OR combined with the WFS FE Spatial Filter BBOX with MapServer 6.0.1 on a shapefile layer or a PostGIS layer with the the SAME data, it seems to work, but I am not 100% sure. Therefore: No problem with Apache setup, mapfiles, data, client/requests. Should be a MapServer bug... Using the same PostGIS db and shapefile all the time and mapfiles modified as minimal as possible. Kind regards, Bryan On 10/08/2011 15:16, Eichner, Andreas - SID-NLKM wrote: Hi, HTTP error code 500 means: Internal Server error and is usually reported when the (F)CGI process dies. Probably a simple NULL pointer dereference due to a missing check which results in a segmentation fault... Ever tried the thing with shp2img? If this also segfaults try recompiling with debug enabled and run it trough gdb. Greets. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bryan Hempen Gesendet: Mittwoch, 10. August 2011 14:35 An: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WFS Spatial Filter Problem Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/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
[mapserver-users] free multilayer GIS data
Hi all, I need to make a presentation on free gis stack (apache phpmapscript pg pgrouting) to some interested party. My question is do you know where I could get some nice free GIS data with multiple layers like roads (to build pgrouting stuff on), houses, objects, gasline, powerline, optical cables, water etc... This is for demo only, so area does not have to more than 1km2. Pointing in right direction, would be helpful, too. Thanks, Esmin. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: AW: [mapserver-users] WFS Spatial Filter Problem
OK, now run the CGI on the command line and append the QUERY_STRING parameter carrying the request parameters: $ /usr/lib/cgi-bin/mapserv QUERY_STRING='map=your/mapfile.mapservice=WFSrequest=GetCapabilities' This should give you the capabilities document. If that works use your failing one. This should expectedly fail. If you can't guess right now what causes the crash you can now use gdb to locate the error if you compiled with the debug option enabled. Let us know when you find more detailes about the cause. Regards -Ursprüngliche Nachricht- Von: Bryan Hempen [mailto:bhem...@sciops.esa.int] Gesendet: Mittwoch, 17. August 2011 11:55 An: Eichner, Andreas - SID-NLKM Cc: mapserver-users@lists.osgeo.org Betreff: Re: AW: [mapserver-users] WFS Spatial Filter Problem Hey guys, my current status report. I have tried the following list of things: - as proposed by Andreas, used shp2img. Works perfectly fine! - as proposed by Julien, took a look at the Apache error log. Here is a small excerpt of what it shows: [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] 3c3400-3c3403d000 r-xp fd:00 3123859 /usr/lib64/libldap_r-2.3.so.0 .2.31, referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html ... [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] 3c34a1c000-3c34a1d000 rw-p 0001c000 fd:00 3118384 /usr/lib64/libgeos_c.so.1.6.2 , referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html ... [Wed Aug 17 10:42:15 2011] [error] [client 10.68.180.121] Premature end of scrip t headers: mapserv, referer: http://ssols02.esac.esa.int/psa/bhempen/tree.html In case it could be useful to see the whole log, please just tell me. Now, to wrap things up again adding some new insights by testing with different versions of the MapServer. This is what happened: When I try to use the WFS FE Spatial Filter Intersect with MapServer 5.6.5 on a PostGIS layer, it doesn't work and I get an Error 500. When, however, I use a WFS FE Spatial Filter like Intersect with MapServer 5.6.5 on a shapefile layer with the SAME data as the PostGIS layer contains, it works! When I try to use the WFS FE Spatial Filter BBOX with MapServer 5.6.5 on a PostGIS layer, it works! When I use a WFS FE non-spatial filter like PropertyIsEqualTo and/or combined with logical filters like AND or OR combined with the WFS FE Spatial Filter BBOX with MapServer 5.6.5 on a shapefile layer or a PostGIS layer with the the SAME data, it works! When I try to use the WFS FE Spatial Filter Intersect with MapServer 6.0.1 on a PostGIS layer, sometimes no results are returned and sometimes only some. The results are not accurate. When I try to use the WFS FE Spatial Filter Intersect with MapServer 6.0.1 on a shapefile layer, sometimes no results are returned and sometimes only some. The results are not accurate. When I use a WFS FE non-spatial filter like PropertyIsEqualTo and/or combined with logical filters like AND or OR combined with the WFS FE Spatial Filter BBOX with MapServer 6.0.1 on a shapefile layer or a PostGIS layer with the the SAME data, it seems to work, but I am not 100% sure. Therefore: No problem with Apache setup, mapfiles, data, client/requests. Should be a MapServer bug... Using the same PostGIS db and shapefile all the time and mapfiles modified as minimal as possible. Kind regards, Bryan On 10/08/2011 15:16, Eichner, Andreas - SID-NLKM wrote: Hi, HTTP error code 500 means: Internal Server error and is usually reported when the (F)CGI process dies. Probably a simple NULL pointer dereference due to a missing check which results in a segmentation fault... Ever tried the thing with shp2img? If this also segfaults try recompiling with debug enabled and run it trough gdb. Greets. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bryan Hempen Gesendet: Mittwoch, 10. August 2011 14:35 An: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] WFS Spatial Filter Problem Hi David, I enabled debugging using the following settings: CONFIG MS_ERRORFILE /home/bhempen/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON The only line that shows up after I got an error 500 using the spatial filter is: [Wed Aug 10 14:30:46 2011].451858 CGI Request 1 on process 21100 Not really helpful, right? Regards, Bryan On 09/08/2011 15:38, Fawcett, David (MPCA) wrote: Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here:
Re: [mapserver-users] free multilayer GIS data
I'd start here: http://downloads.cloudmade.com/ http://downloads.cloudmade.com/And then look for additional data in the OpenStreetMap project. On top of those, googling around for 'open data' also comes up with a lot of info :). On 17 August 2011 12:55, Esmin Gracić esmin.gra...@gmail.com wrote: Hi all, I need to make a presentation on free gis stack (apache phpmapscript pg pgrouting) to some interested party. My question is do you know where I could get some nice free GIS data with multiple layers like roads (to build pgrouting stuff on), houses, objects, gasline, powerline, optical cables, water etc... This is for demo only, so area does not have to more than 1km2. Pointing in right direction, would be helpful, too. Thanks, Esmin. ___ 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] free multilayer GIS data
For data at a smaller scale, you may also want to look at the Natural Earth data sets. Raster and vector, clean data, with attributes, liberal (Public Domain) license. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Wednesday, August 17, 2011 7:25 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] free multilayer GIS data I'd start here: http://downloads.cloudmade.com/ And then look for additional data in the OpenStreetMap project. On top of those, googling around for 'open data' also comes up with a lot of info :). On 17 August 2011 12:55, Esmin Gracić esmin.gra...@gmail.commailto:esmin.gra...@gmail.com wrote: Hi all, I need to make a presentation on free gis stack (apache phpmapscript pg pgrouting) to some interested party. My question is do you know where I could get some nice free GIS data with multiple layers like roads (to build pgrouting stuff on), houses, objects, gasline, powerline, optical cables, water etc... This is for demo only, so area does not have to more than 1km2. Pointing in right direction, would be helpful, too. Thanks, Esmin. ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto: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] Invalid pdf file from WMS
Hi, This request from Mapserver 6.0 gives me a nice pdf file: http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= However, if I double the bounding box the resulting pdf cannot be opened by Acrobat reader. http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=1728HEIGHT=1324LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= The latter gives fine image with format=image/png. Any idea about what is going wrong? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Invalid pdf file from WMS
the second one is incomplete, the request seems to be failing. can you run the request locally to see if it segfaults, and if so provide a backtrace: /path/to/mapserver-cgi QUERY_STRING='map=/path/to/mapREQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES=' -- thomas On Wed, Aug 17, 2011 at 15:40, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This request from Mapserver 6.0 gives me a nice pdf file: http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= However, if I double the bounding box the resulting pdf cannot be opened by Acrobat reader. http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=1728HEIGHT=1324LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= The latter gives fine image with format=image/png. Any idea about what is going wrong? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PDF Generation - file suffix?
I don't want to pollute Jukka's thread about large .pdf creation, so I am forking it. The .pdf file generated by his request renders fast and looks nice, but the file doesn't have a .pdf suffix. This confused my browser and didn't automatically associate the file with Acrobat Reader. This isn't a huge issue for me as a user, but if I am developing something for a more general audience, it will be a problem. Is there a way to ensure that the generated .pdf has the correct file suffix? http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= David. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WCS GetCoverage responses in multi-part mime format
Hi there! I am currently setting up a WCS server using MapServer 5.6.5. I am serving hyperspectral images and my goal is to visualize a subset of bands within a BBOX in a webclient. This should work fine if WCS 1.1.0 GetCoverage requests would not return results in a multi-part mime format as stated on http://mapserver.org/ogc/wcs_server.html#getcoverage. Browsers can't seem to deal with this type of format. I can't use WCS 1.0.0 requests because they do not allow for subsetting of bands. Since I use MapServer version 5.6.5, WCS 2.0 is not supported, but if a WCS 2.0 (as supported by MapServer 6.x) also returns GetCoverage requests in a multi-part mime format it would be useless for me anyway. Is there any way to turn off the response of WCS GetCoverage requests in a multi-part mime format in MapServer? If I upgrade to WCS 2.0, will I still have the same problem? Or does anyone know how to make a browser visualize the image-part of the reponse? I can't find anything useful on the web. Thanks for your help, 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Invalid pdf file from WMS
Hi, Command with big BBOX does lead into segmantation fault. Unfortunately I am just an amateur and I have no idea about what is a backtrace and how I could provide it to you. The server is a virtual Linux box (Ubuntu). -Jukka Rahkonen- thomas bonfort wrote: the second one is incomplete, the request seems to be failing. can you run the request locally to see if it segfaults, and if so provide a backtrace: /path/to/mapserver-cgi QUERY_STRING='map=/path/to/mapREQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES=' -- thomas On Wed, Aug 17, 2011 at 15:40, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This request from Mapserver 6.0 gives me a nice pdf file: http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= However, if I double the bounding box the resulting pdf cannot be opened by Acrobat reader. http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=1728HEIGHT=1324LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= The latter gives fine image with format=image/png. Any idea about what is going wrong? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Invalid pdf file from WMS
if gdb is installed on the system, you do: gdb /path/to/mapserv $ run QUERY_STRING='map=...' (...program runs and spits out the beginning of the pdf..., then segfaults) $ bt -- thomas On Wed, Aug 17, 2011 at 21:36, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, Command with big BBOX does lead into segmantation fault. Unfortunately I am just an amateur and I have no idea about what is a backtrace and how I could provide it to you. The server is a virtual Linux box (Ubuntu). -Jukka Rahkonen- thomas bonfort wrote: the second one is incomplete, the request seems to be failing. can you run the request locally to see if it segfaults, and if so provide a backtrace: /path/to/mapserver-cgi QUERY_STRING='map=/path/to/mapREQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES=' -- thomas On Wed, Aug 17, 2011 at 15:40, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This request from Mapserver 6.0 gives me a nice pdf file: http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= However, if I double the bounding box the resulting pdf cannot be opened by Acrobat reader. http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=1728HEIGHT=1324LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= The latter gives fine image with format=image/png. Any idea about what is going wrong? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Invalid pdf file from WMS
Hi, Amazing. I got this (gdb) bt #0 0x0013a258 in FT_Done_Face () from /usr/lib/libfreetype.so.6 #1 0x00f447c3 in ?? () from /usr/lib/libcairo.so.2 #2 0x00f4ba19 in cairo_font_face_destroy () from /usr/lib/libcairo.so.2 #3 0x0813a8b4 in ?? () #4 0x0813a9c8 in cleanupCairo () #5 0x080c5aee in ?? () #6 0x0810b406 in ?? () #7 0x0807207d in ?? () #8 0x0805c2f4 in ?? () #9 0x00fefbd6 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #10 0x08057881 in ?? () -Jukka- Lähettäjä: thomas bonfort [thomas.bonf...@gmail.com] Lähetetty: 17. elokuuta 2011 22:56 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Invalid pdf file from WMS if gdb is installed on the system, you do: gdb /path/to/mapserv $ run QUERY_STRING='map=...' (...program runs and spits out the beginning of the pdf..., then segfaults) $ bt -- thomas On Wed, Aug 17, 2011 at 21:36, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, Command with big BBOX does lead into segmantation fault. Unfortunately I am just an amateur and I have no idea about what is a backtrace and how I could provide it to you. The server is a virtual Linux box (Ubuntu). -Jukka Rahkonen- thomas bonfort wrote: the second one is incomplete, the request seems to be failing. can you run the request locally to see if it segfaults, and if so provide a backtrace: /path/to/mapserver-cgi QUERY_STRING='map=/path/to/mapREQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES=' -- thomas On Wed, Aug 17, 2011 at 15:40, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This request from Mapserver 6.0 gives me a nice pdf file: http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=864HEIGHT=662LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= However, if I double the bounding box the resulting pdf cannot be opened by Acrobat reader. http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=1728HEIGHT=1324LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395SRS=EPSG:2393STYLES= The latter gives fine image with format=image/png. Any idea about what is going wrong? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] using mod_wsgi with mapserver
Hi all, I have configured and tested a simple application with mod_wsgi and found that its working properly. Now I am trying to use mod_wsgi with MapServer. I have configured my Apache virtual host for wsgi as: Alias / /home/public_html/wsgi/ Directory /home/public_html/wsgi Options ExecCGI Indexes DirectoryIndex index.html index.wsgi index.cgi AddHandler cgi-script .cgi AddHandler wsgi-script .wsgi #AllowOverride None Order allow,deny Allow from all /Directory I tried running similarly as python mapscript but could not get the result. I could not find any example that uses mod_wsgi with mapscript. Anyone have any idea how it can be used? Any working example? Thanks,___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users