From thomas.ellett at statkart.no Fri Nov 1 07:53:10 2013 From: thomas.ellett at statkart.no (tellett) Date: Fri, 1 Nov 2013 07:53:10 -0700 (PDT) Subject: [mapserver-users] Using a group layer as a mask layer Message-ID: <1383317590035-5086989.post@n6.nabble.com> Hi all, I was hoping someone could give me a yes or no answer to this question: Is it possible to use a 'GROUP' or 'WMS_LAYER_GROUP' layer as a mask for another layer. For example MAP LAYER Name 'Layer1' ... GROUP 'asmask' END LAYER Name 'Layer2' ... GROUP 'asmask' END LAYER Name 'Layer3' ... MASK 'asmask' END END Or: MAP LAYER Name 'Layer1' ... 'WMS_LAYER_GROUP' 'Layer1' END LAYER Name 'Layer2' ... 'WMS_LAYER_GROUP' 'Layer1' END LAYER Name 'Layer3' ... MASK 'Layer1' END END I'm just looking for a yes or no at the moment because I've been trying both of these methods and neither are working but I'm also getting absolutely no debug info. It looks as if 'Layer3' loads (3 or 4 second load time in the log) but nothing is showing in the map at all. So its looks as if mapserver fetches Layer3 but gets no data from the GROUP layer or WMS_GROUP_LAYER (and no I'm not trying them at the same time :)). Any offers? Thanks Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-a-group-layer-as-a-mask-layer-tp5086989.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfischer at houstoneng.com Fri Nov 1 11:41:20 2013 From: bfischer at houstoneng.com (Brian Fischer) Date: Fri, 1 Nov 2013 18:41:20 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code Message-ID: I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at maine.gov Fri Nov 1 12:26:01 2013 From: Michael.Smith at maine.gov (Smith, Michael) Date: Fri, 1 Nov 2013 19:26:01 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: Message-ID: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 Board Member, Maine GeoLibrary Education Chair, Maine GIS Users Group State Rep, National States Geographic Information Council [cid:image001.jpg at 01CED716.AB170CF0] State House Station 145 51 Commerce Drive Augusta, ME 04333-0145 69o 47' 58.9"W 44o 21' 54.8"N From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 9032 bytes Desc: image001.jpg URL: From pcreso at pcreso.com Fri Nov 1 12:30:00 2013 From: pcreso at pcreso.com (Brent Wood) Date: Fri, 1 Nov 2013 12:30:00 -0700 (PDT) Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: Message-ID: <1383334200.41467.YahooMailNeo@web122003.mail.ne1.yahoo.com> The client will also need to know the projection parameters for the map to be displayed. A local call to shpimage should be able to generate the image to test that mapserver can draw the image in that projection, as an image, but to have it used with other data (layers) both client & server need to "know" the projection used. Brent Wood ________________________________ From: Brian Fischer To: "mapserver-users at lists.osgeo.org" Sent: Saturday, November 2, 2013 7:41 AM Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message.? msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. ? Is this supported?? I have followed these steps. 1)????? Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2)????? In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3)????? Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4)????? Verified the mapfile works using the shp2img utility ? Has anyone else go this to work?? Thanks! Brian ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Nov 1 12:28:58 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 1 Nov 2013 19:28:58 -0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: Message-ID: <00a601ced738$9ccbb7a0$d66326e0$@dkerr.co.uk> Brian, My layers are in EPSG:27700 and I can successfully re-project to EPSG:900913. I have the following set up: In map file: CONFIG "PROJ_LIB" "d:/mapserver/proj4" PROJECTION "init=epsg:27700" END # PROJECTION WEB METADATA # WMS "wms_title" "WMS Title" "wms_onlineresource" "http://localhost/mapserver/mapserv.asp?" "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here "wms_enable_request" "*" "wms_abstract" "Abstract" "wms_extent" "0 0 670000 1230000" "wms_feature_info_mime_type" "text/plain" "wms_feature_info_mime_type" "text/html" "wms_feature_info_mime_type" "application/vnd.ogc.gml" # &info_format=application/vnd.ogc.gml END # METADATA END # WEB In the layer: METADATA # WMS "wms_title" "MyTitle" "wms_extent" "0 0 670000 1230000" "wms_srs" "epsg:27700" END # METADATA PROJECTION "init=epsg:27700" END # PROJECTION Hopefully you can pick through the above to make yours work. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 18:41 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Evans at hill.af.mil Fri Nov 1 12:42:12 2013 From: James.Evans at hill.af.mil (Evans, James R Civ USAF ACC 84 RADES/SCZE) Date: Fri, 1 Nov 2013 13:42:12 -0600 Subject: [mapserver-users] Questions about Mapcache and Openlayers Message-ID: <35C8F653C6AB9E44B3BC7E4D89634A6D0648B9E2@VFUTMLAO03.Enterprise.afmc.ds.af.mil> Hi, I've installed the latest MS4W-Dev package that comes with MapCache. I have it working somewhat, but the demo app doesn't work. I see the first page that lists the services, but when I click on any of them, I get an empty box on the screen and there is a browser error that says 'openlayers' is undefined. I have a couple of different wms clients on this box that can hit the mapcache and retrieve images, but the demo won't run. Any suggestions on how to fix that? Thanks, James From bfischer at houstoneng.com Fri Nov 1 14:19:44 2013 From: bfischer at houstoneng.com (Brian Fischer) Date: Fri, 1 Nov 2013 21:19:44 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> Message-ID: Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Nov 1 14:39:45 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 1 Nov 2013 21:39:45 -0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> Message-ID: <00cf01ced74a$e27bf7d0$a773e770$@dkerr.co.uk> What's the url you're using? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Nov 1 14:44:59 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 1 Nov 2013 21:44:59 -0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> Message-ID: <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> MAP WEB METADATA "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here List your map projection and the reprojection as above and try that. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at houstoneng.com Fri Nov 1 14:47:01 2013 From: bfischer at houstoneng.com (Brian Fischer) Date: Fri, 1 Nov 2013 21:47:01 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> Message-ID: I can get the re-projection to work just fine, but not with a ESPG code that is not already defined in the Proj espg file. For example I can go from my custom coordinate system to 3857, but I cannot serve it out using my custom code. I think what is different about your example and mine is that in your's case you have the EPSG code that already exists and in my case I am trying to use a new espg number that does not previously exists. Thanks, Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:45 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code MAP WEB METADATA "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here List your map projection and the reprojection as above and try that. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Nov 1 14:53:45 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 1 Nov 2013 21:53:45 -0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> Message-ID: <00eb01ced74c$d6e4ac80$84ae0580$@dkerr.co.uk> So adding it to the EPSG file does not work? If that's the case then the sting may be incorrect. Regards, Donald From: Brian Fischer [mailto:bfischer at houstoneng.com] Sent: 01 November 2013 21:47 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code I can get the re-projection to work just fine, but not with a ESPG code that is not already defined in the Proj espg file. For example I can go from my custom coordinate system to 3857, but I cannot serve it out using my custom code. I think what is different about your example and mine is that in your's case you have the EPSG code that already exists and in my case I am trying to use a new espg number that does not previously exists. Thanks, Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:45 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code MAP WEB METADATA "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here List your map projection and the reprojection as above and try that. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4158 / Virus Database: 3615/6797 - Release Date: 10/31/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Nov 1 14:56:30 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 1 Nov 2013 21:56:30 +0000 Subject: [mapserver-users] FW: WMS Server and Custom ESPG code References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> Message-ID: From: Basques, Bob (CI-StPaul) Sent: Friday, November 01, 2013 4:55 PM To: 'Brian Fischer' Subject: RE: WMS Server and Custom ESPG code We ran into the same problem with Ramsey County Coordinates. Are you getting and error from your MapServer call or Mapserver as WMS Client Call or your WMS call? We have quite a few layers that pass through WMS and reproject into Ramsey County. Bobb From: Brian Fischer [mailto:bfischer at houstoneng.com] Sent: Friday, November 01, 2013 4:50 PM To: Basques, Bob (CI-StPaul) Subject: RE: WMS Server and Custom ESPG code I've tried that but then the problem is you can not specify the ESPG code in the Web object to use with the WMS server which get's used by the SRS parameter in a WMS call. In previous versions of GeoMoose this was not an issue because we did not use WMS, but in the new versions we are using WMS as the call. I can get it to work just fine if I want to serve things out as 3857, but I'm trying to serve them out in the custom espg code. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Nov 1 15:42:13 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 1 Nov 2013 22:42:13 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63127D20B8@suutari.haapa.mmm.fi> Hi, I did the same as you with MS4W and a new code in my C:\ms4w\proj\nad\epsg file # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> Works for me. I used an old "states" demo mapfile and my test URL with a ridiculous BBOX but at least I get an image back with http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/apps/spatialite.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=459&HEIGHT=353&LAYERS=states_table&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=14.00485547821351,-125.96365349999999,60.32284452178648,-65.73714650000001&CRS=EPSG:97306&STYLES= -Jukka Rahkonen- ________________________________ Brian Fischer wrote: I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian From Michael.Smith at erdc.dren.mil Fri Nov 1 17:15:37 2013 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Sat, 2 Nov 2013 00:15:37 +0000 Subject: [mapserver-users] [EXTERNAL] Questions about Mapcache and Openlayers In-Reply-To: <35C8F653C6AB9E44B3BC7E4D89634A6D0648B9E2@VFUTMLAO03.Enterprise.afmc.ds.af.mil> Message-ID: James, The mapcache demo page makes an external call to the OpenLayers site to load the javascript library (http://www.openlayers.org/api/OpenLayers.js). Are you on a network that has external access? If not, that would be your problem. If you do, take a look in something like the Web Developer tools in Firebug and see if the call to Openlayers.org is going through. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 11/1/13, 3:42 PM, "Evans, James R Civ USAF ACC 84 RADES/SCZE" wrote: >Hi, >I've installed the latest MS4W-Dev package that comes with MapCache. I >have it working somewhat, but the demo app doesn't work. I see the >first page that lists the services, but when I click on any of them, I >get an empty box on the screen and there is a browser error that says >'openlayers' is undefined. I have a couple of different wms clients on >this box that can hit the mapcache and retrieve images, but the demo >won't run. Any suggestions on how to fix that? >Thanks, >James > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Evans at hill.af.mil Fri Nov 1 19:30:38 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Fri, 1 Nov 2013 19:30:38 -0700 (PDT) Subject: [mapserver-users] [EXTERNAL] Questions about Mapcache and Openlayers In-Reply-To: References: <35C8F653C6AB9E44B3BC7E4D89634A6D0648B9E2@VFUTMLAO03.Enterprise.afmc.ds.af.mil> Message-ID: <1383359438455-5087057.post@n6.nabble.com> Thanks for the reply. That explains it. That machine is on a closed LAN. Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Questions-about-Mapcache-and-Openlayers-tp5087034p5087057.html Sent from the Mapserver - User mailing list archive at Nabble.com. From James.Evans at hill.af.mil Fri Nov 1 19:58:33 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Fri, 1 Nov 2013 19:58:33 -0700 (PDT) Subject: [mapserver-users] MapCache and a transparent layer Message-ID: <1383361113247-5087059.post@n6.nabble.com> Hi, I'm trying to get mapchache working, and I have one layer that I can not figure out. I have a states boundaries layer, all vector data, and it works fine when reading from the WMS. I added it as a layer in my mapcache.xml, and I can not get it to be transparent. I've added true to the params in the source. If I look at the .png files that are stored in the cache, they appear to be transparent, but when my client tries to display the boundaries, they have a black background and obscure the other layers. If I look in the cache of my client, at the.dds files that it saves, they all have a black background. If I look at the.dds files the client saves when hitting the WMS directly, they appear to have a transparent background. Below are my source, and tileset from the mapcache.xml. Any help on this would be appreciated. Thanks! James http://127.0.0.1/cgi-bin/radeswms.exe image/png States true RADESWMS States disk PNG_FAST WGS84 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-and-a-transparent-layer-tp5087059.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Sat Nov 2 06:27:36 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Sat, 2 Nov 2013 13:27:36 +0000 Subject: [mapserver-users] MapCache and a transparent layer In-Reply-To: <1383361113247-5087059.post@n6.nabble.com> References: <1383361113247-5087059.post@n6.nabble.com> Message-ID: What do you see if you use the MapCache demo? E.g. http://myserver/mapcache/demo ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of James_in_Utah [James.Evans at hill.af.mil] Sent: Friday, November 01, 2013 9:58 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapCache and a transparent layer Hi, I'm trying to get mapchache working, and I have one layer that I can not figure out. I have a states boundaries layer, all vector data, and it works fine when reading from the WMS. I added it as a layer in my mapcache.xml, and I can not get it to be transparent. I've added true to the params in the source. If I look at the .png files that are stored in the cache, they appear to be transparent, but when my client tries to display the boundaries, they have a black background and obscure the other layers. If I look in the cache of my client, at the.dds files that it saves, they all have a black background. If I look at the.dds files the client saves when hitting the WMS directly, they appear to have a transparent background. Below are my source, and tileset from the mapcache.xml. Any help on this would be appreciated. Thanks! James http://127.0.0.1/cgi-bin/radeswms.exe image/png States true RADESWMS States disk PNG_FAST WGS84 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-and-a-transparent-layer-tp5087059.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Evans at hill.af.mil Sat Nov 2 08:01:08 2013 From: James.Evans at hill.af.mil (Evans, James R Civ USAF ACC 84 RADES/SCZE) Date: Sat, 2 Nov 2013 09:01:08 -0600 Subject: [mapserver-users] MapCache and a transparent layer References: <1383361113247-5087059.post@n6.nabble.com> Message-ID: <35C8F653C6AB9E44B3BC7E4D89634A6D02E3005D@VFUTMLAO03.Enterprise.afmc.ds.af.mil> Hi, If I select the "States" layer, I see the borders in blue, with red labals for the states, over a white background. I see the same thing if I remove the tag. I checked the xml file that is stored in my client cache, and it is virtually identical whether I'm hitting the mapcache or going to the WMS directly. -----Original Message----- From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Sat 11/2/2013 7:27 AM To: Evans, James R Civ USAF ACC 84 RADES/SCZE; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapCache and a transparent layer What do you see if you use the MapCache demo? E.g. http://myserver/mapcache/demo ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of James_in_Utah [James.Evans at hill.af.mil] Sent: Friday, November 01, 2013 9:58 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapCache and a transparent layer Hi, I'm trying to get mapchache working, and I have one layer that I can not figure out. I have a states boundaries layer, all vector data, and it works fine when reading from the WMS. I added it as a layer in my mapcache.xml, and I can not get it to be transparent. I've added true to the params in the source. If I look at the .png files that are stored in the cache, they appear to be transparent, but when my client tries to display the boundaries, they have a black background and obscure the other layers. If I look in the cache of my client, at the.dds files that it saves, they all have a black background. If I look at the.dds files the client saves when hitting the WMS directly, they appear to have a transparent background. Below are my source, and tileset from the mapcache.xml. Any help on this would be appreciated. Thanks! James http://127.0.0.1/cgi-bin/radeswms.exe image/png States true RADESWMS States disk PNG_FAST WGS84 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-and-a-transparent-layer-tp5087059.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Sun Nov 3 23:50:18 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 4 Nov 2013 08:50:18 +0100 Subject: [mapserver-users] MapCache and a transparent layer In-Reply-To: <1383361113247-5087059.post@n6.nabble.com> References: <1383361113247-5087059.post@n6.nabble.com> Message-ID: James, If you're accessing mapcache through untiled WMS calls (which is probably the case), then the format used by mapcache for returning images is defined in the wms service block (https://github.com/mapserver/mapcache/blob/branch-1-2/mapcache.xml.sample#L819 , https://github.com/mapserver/mapcache/blob/branch-1-2/mapcache.xml.sample#L855 ). You can set it to jpeg if you are serving data with no transparency, or png in your case. -- thomas On 2 November 2013 03:58, James_in_Utah wrote: > Hi, > I'm trying to get mapchache working, and I have one layer that I can not > figure out. I have a states boundaries layer, all vector data, and it works > fine when reading from the WMS. I added it as a layer in my mapcache.xml, > and I can not get it to be transparent. I've added > true to the params in the source. If I look at > the .png files that are stored in the cache, they appear to be transparent, > but when my client tries to display the boundaries, they have a black > background and obscure the other layers. If I look in the cache of my > client, at the.dds files that it saves, they all have a black background. > If I look at the.dds files the client saves when hitting the WMS directly, > they appear to have a transparent background. Below are my source, and > tileset from the mapcache.xml. Any help on this would be appreciated. > Thanks! > James > > > > http://127.0.0.1/cgi-bin/radeswms.exe > > > > image/png > States > true > > > > > > RADESWMS States > disk > PNG_FAST > WGS84 > > > > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-and-a-transparent-layer-tp5087059.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Sun Nov 3 23:53:39 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 4 Nov 2013 08:53:39 +0100 Subject: [mapserver-users] Using a group layer as a mask layer In-Reply-To: <1383317590035-5086989.post@n6.nabble.com> References: <1383317590035-5086989.post@n6.nabble.com> Message-ID: Tom, Mask layers can only reference layers by name, not by group. You might want to open an issue for this so this doesn't get forgotten, and/or contact me directly if this is a functionality you wanted to fund. cheers, thomas On 1 November 2013 15:53, tellett wrote: > Hi all, > > I was hoping someone could give me a yes or no answer to this question: > > Is it possible to use a 'GROUP' or 'WMS_LAYER_GROUP' layer as a mask for > another layer. > > For example > MAP > LAYER > Name 'Layer1' > ... > GROUP 'asmask' > END > > LAYER > Name 'Layer2' > ... > GROUP 'asmask' > END > > LAYER > Name 'Layer3' > ... > MASK 'asmask' > END > > END > > Or: > MAP > > LAYER > Name 'Layer1' > ... > 'WMS_LAYER_GROUP' 'Layer1' > END > > LAYER > Name 'Layer2' > ... > 'WMS_LAYER_GROUP' 'Layer1' > END > > LAYER > Name 'Layer3' > ... > MASK 'Layer1' > END > > END > > I'm just looking for a yes or no at the moment because I've been trying both > of these methods and neither are working but I'm also getting absolutely no > debug info. It looks as if 'Layer3' loads (3 or 4 second load time in the > log) but nothing is showing in the map at all. So its looks as if mapserver > fetches Layer3 but gets no data from the GROUP layer or WMS_GROUP_LAYER (and > no I'm not trying them at the same time :)). > > Any offers? > > Thanks > > Tom > > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-a-group-layer-as-a-mask-layer-tp5086989.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Evans at hill.af.mil Mon Nov 4 04:34:13 2013 From: James.Evans at hill.af.mil (Evans, James R Civ USAF ACC 84 RADES/SCZE) Date: Mon, 4 Nov 2013 05:34:13 -0700 Subject: [mapserver-users] MapCache and a transparent layer References: <1383361113247-5087059.post@n6.nabble.com> Message-ID: <35C8F653C6AB9E44B3BC7E4D89634A6D02E3005E@VFUTMLAO03.Enterprise.afmc.ds.af.mil> That was it. Thanks, James -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Mon 11/4/2013 12:50 AM To: Evans, James R Civ USAF ACC 84 RADES/SCZE Cc: MapserverList OSGEO Subject: Re: [mapserver-users] MapCache and a transparent layer James, If you're accessing mapcache through untiled WMS calls (which is probably the case), then the format used by mapcache for returning images is defined in the wms service block (https://github.com/mapserver/mapcache/blob/branch-1-2/mapcache.xml.sample#L819 , https://github.com/mapserver/mapcache/blob/branch-1-2/mapcache.xml.sample#L855 ). You can set it to jpeg if you are serving data with no transparency, or png in your case. -- thomas On 2 November 2013 03:58, James_in_Utah wrote: > Hi, > I'm trying to get mapchache working, and I have one layer that I can not > figure out. I have a states boundaries layer, all vector data, and it works > fine when reading from the WMS. I added it as a layer in my mapcache.xml, > and I can not get it to be transparent. I've added > true to the params in the source. If I look at > the .png files that are stored in the cache, they appear to be transparent, > but when my client tries to display the boundaries, they have a black > background and obscure the other layers. If I look in the cache of my > client, at the.dds files that it saves, they all have a black background. > If I look at the.dds files the client saves when hitting the WMS directly, > they appear to have a transparent background. Below are my source, and > tileset from the mapcache.xml. Any help on this would be appreciated. > Thanks! > James > > > > http://127.0.0.1/cgi-bin/radeswms.exe > > > > image/png > States > true > > > > > > RADESWMS States > disk > PNG_FAST > WGS84 > > > > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-and-a-transparent-layer-tp5087059.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From stephane.cyr at msp.gouv.qc.ca Mon Nov 4 05:22:40 2013 From: stephane.cyr at msp.gouv.qc.ca (stephane) Date: Mon, 04 Nov 2013 08:22:40 -0500 Subject: [mapserver-users] mapcache compression In-Reply-To: References: Message-ID: <52779FA0.4090902@msp.gouv.qc.ca> Hi all, is there a way to completely disable the compression at the generation of png files using the seeder? Thanks in advance. -- St?phane Cyr Conseiller en g?o-informatique Minist?re de la S?curit? publique | Service infrastructure r?seau + (418) 646-6777 30004 twitter : twitter.com/geomsp blogue : http://geoegl.msp.gouv.qc.ca/blogue From thomas.bonfort at gmail.com Mon Nov 4 05:41:35 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 4 Nov 2013 14:41:35 +0100 Subject: [mapserver-users] mapcache compression In-Reply-To: <52779FA0.4090902@msp.gouv.qc.ca> References: <52779FA0.4090902@msp.gouv.qc.ca> Message-ID: not sure if that's what you mean, but the example PNG_FAST (https://github.com/mapserver/mapcache/blob/branch-1-2/mapcache.xml.sample#L448) format will apply minimal zlib png compression. -- thomas On 4 November 2013 14:22, stephane wrote: > Hi all, > is there a way to completely disable the compression at the generation of > png files using the seeder? > > Thanks in advance. > > -- > St?phane Cyr > Conseiller en g?o-informatique > Minist?re de la S?curit? publique | Service infrastructure r?seau > + (418) 646-6777 30004 > twitter : twitter.com/geomsp > blogue : http://geoegl.msp.gouv.qc.ca/blogue > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Mon Nov 4 06:00:15 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 4 Nov 2013 15:00:15 +0100 Subject: [mapserver-users] mapcache compression In-Reply-To: References: <52779FA0.4090902@msp.gouv.qc.ca> Message-ID: if you want to disable compression *completely*, my hunch is you will get noticeably poorer performance than with fast zlib compression, unless you have very fast storage *and* a very slow cpu. I'd be interested in any benchmark results if you were to run any. -- thomas On 4 November 2013 14:41, thomas bonfort wrote: > not sure if that's what you mean, but the example PNG_FAST > (https://github.com/mapserver/mapcache/blob/branch-1-2/mapcache.xml.sample#L448) > format will apply minimal zlib png compression. > > -- > thomas > > On 4 November 2013 14:22, stephane wrote: >> Hi all, >> is there a way to completely disable the compression at the generation of >> png files using the seeder? >> >> Thanks in advance. >> >> -- >> St?phane Cyr >> Conseiller en g?o-informatique >> Minist?re de la S?curit? publique | Service infrastructure r?seau >> + (418) 646-6777 30004 >> twitter : twitter.com/geomsp >> blogue : http://geoegl.msp.gouv.qc.ca/blogue >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From Phil.Anzel at ftc.usda.gov Mon Nov 4 12:58:44 2013 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Mon, 4 Nov 2013 20:58:44 +0000 Subject: [mapserver-users] OpenLayers3 using MapServer 6.4 WFS? Message-ID: Hi, Has anyone succeeded in using MapServer 6.4 WFS as a data source for the Beta-1 version of Open Layers 3 (http://ol3js.org/)? I'm interested in any sample mapfile and related OL3 html/javascript that you might be able to provide. Thanks. - Phil Anzel USDA/NRCS contractor - Team Vistronix This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Nov 4 13:33:23 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 4 Nov 2013 21:33:23 +0000 Subject: [mapserver-users] Segfaults from MS 6.4 Message-ID: <84446DEF76453C439E9E97E438E13A63127D2F78@suutari.haapa.mmm.fi> Hi, Our server admin sent me some log data from our new Mapserver 6.4 installation. Here is a sample: messages-20131103:Oct 29 09:52:24 wms-testi kernel: mapserv[7973]: segfault at 21 ip 00007f7557116310 sp 00007fff30554cb0 error 4 in libc-2.12.so[7f75570e1000+18a000] messages-20131103:Oct 29 09:58:29 wms-testi kernel: mapserv[8052]: segfault at 700000002 ip 00007fdf8038a310 sp 00007fff214f91b0 error 4 in libc-2.12.so[7fdf80355000+18a000] messages-20131103:Oct 29 09:58:29 wms-testi kernel: mapserv[8054]: segfault at 700000002 ip 00007f17e71b6310 sp 00007fffce5b72f0 error 4 in libc-2.12.so[7f17e7181000+18a000] messages-20131103:Oct 29 09:58:29 wms-testi kernel: mapserv[8049]: segfault at ffffffff0000830e ip 00007f6463284310 sp 00007fff82b81370 error 4 in libc-2.12.so[7f646324f000+18a000] messages-20131103:Oct 29 10:45:33 wms-testi kernel: mapserv[8128]: segfault at 330033000000 ip 00007f2c1f2f6310 sp 00007fffaede88f0 error 4 in libc-2.12.so[7f2c1f2c1000+18a000] messages-20131103:Oct 29 11:26:34 wms-testi kernel: mapserv[8216]: segfault at ffffffff0000830e ip 00007f3256916310 sp 00007fffc0b53f30 error 4 in libc-2.12.so[7f32568e1000+18a000] Any suggestions what to do for finding out the reason for these errors? -Jukka Rahkonen- From MarkVolz at co.lyon.mn.us Mon Nov 4 13:43:02 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 4 Nov 2013 21:43:02 +0000 Subject: [mapserver-users] mapcache - Service Temporarily Unavailable Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA323100F@swmail01.r8nssis.local> Hello, I am trying to move mapserver and mapcache from one computer to another. Mapcache is reporting "Service Temporarily Unavailable" What could be causing that issue? I am using MS4W. Thanks Mark Volz, GISP GIS Specialist From Steve.Lime at state.mn.us Tue Nov 5 10:38:53 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 5 Nov 2013 18:38:53 +0000 Subject: [mapserver-users] Segfaults from MS 6.4 In-Reply-To: <84446DEF76453C439E9E97E438E13A63127D2F78@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63127D2F78@suutari.haapa.mmm.fi> Message-ID: I guess you need the combination of call parameters and configuration that produced it. Can you use the timestamps in combination with the webserver logs (access and error) to identify likely calls? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Monday, November 04, 2013 3:33 PM To: Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: [mapserver-users] Segfaults from MS 6.4 Hi, Our server admin sent me some log data from our new Mapserver 6.4 installation. Here is a sample: messages-20131103:Oct 29 09:52:24 wms-testi kernel: mapserv[7973]: segfault at 21 ip 00007f7557116310 sp 00007fff30554cb0 error 4 in libc-2.12.so[7f75570e1000+18a000] messages-20131103:Oct 29 09:58:29 wms-testi kernel: mapserv[8052]: segfault at 700000002 ip 00007fdf8038a310 sp 00007fff214f91b0 error 4 in libc-2.12.so[7fdf80355000+18a000] messages-20131103:Oct 29 09:58:29 wms-testi kernel: mapserv[8054]: segfault at 700000002 ip 00007f17e71b6310 sp 00007fffce5b72f0 error 4 in libc-2.12.so[7f17e7181000+18a000] messages-20131103:Oct 29 09:58:29 wms-testi kernel: mapserv[8049]: segfault at ffffffff0000830e ip 00007f6463284310 sp 00007fff82b81370 error 4 in libc-2.12.so[7f646324f000+18a000] messages-20131103:Oct 29 10:45:33 wms-testi kernel: mapserv[8128]: segfault at 330033000000 ip 00007f2c1f2f6310 sp 00007fffaede88f0 error 4 in libc-2.12.so[7f2c1f2c1000+18a000] messages-20131103:Oct 29 11:26:34 wms-testi kernel: mapserv[8216]: segfault at ffffffff0000830e ip 00007f3256916310 sp 00007fffc0b53f30 error 4 in libc-2.12.so[7f32568e1000+18a000] Any suggestions what to do for finding out the reason for these errors? -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From public at postholer.com Wed Nov 6 09:20:36 2013 From: public at postholer.com (Scott) Date: Wed, 06 Nov 2013 09:20:36 -0800 Subject: [mapserver-users] Lat/Lon variable? Vertical GRID labels? Message-ID: <527A7A64.1000007@postholer.com> Greetings! Newbie here. I've been working with the excellent map server program for about 2 weeks. It is awesome. 2 questions (for now): Are variables for lat/lon sent to a layer, ie, [lat] or [lon] so that they may be used in EXPRESSION? How do you make vertical lat, left edge, labels for the GRID. I just can't figure that out. Thanks! Scott www.postholer.com From lin at hvenegaard.dk Thu Nov 7 03:58:03 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Thu, 7 Nov 2013 12:58:03 +0100 Subject: [mapserver-users] Standalone compiled Mapserver EXE for Windows ? Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADE3A9@hvmex01> Hello list, I've been away from Mapserver development for a few years, and has returned to look for a standalone Mapserver for OGC map publishing on Windows. I.e. the "mapserv.exe" of old, which I've used many times previously. Much to my surprise, it isn't readily available anymore ? Am I missing something obvious here, or is Mapserver no longer being offered as a compiled EXE for download on mapserver.org ? I've browsed all the repositories references under the download/Windows section (MS4W et.al.), but I'm really only interested in the Mapserver part, not the full packages being offered (which often contains MapScript instead of Mapserver anyway). I have neither setup nor expertise into compiling Mapserver myself, although I do have Visual Studio (C++) at hand, if compiling no longer require Linux or Cygwin or something similar. Any help is appriciated. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From lin at hvenegaard.dk Thu Nov 7 04:12:25 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Thu, 7 Nov 2013 13:12:25 +0100 Subject: [mapserver-users] Standalone compiled Mapserver EXE for Windows ? Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADE3AF@hvmex01> Ah, found it :) It was buried deep within the bin/ms/apps folder of the "release-1600-x64-gdal-1-10-1-mapserver-6-4-0.zip" file. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk Fra: Lars I. Nielsen Sendt: 7. november 2013 12:58 Til: 'mapserver-users at lists.osgeo.org' Emne: Standalone compiled Mapserver EXE for Windows ? Hello list, I've been away from Mapserver development for a few years, and has returned to look for a standalone Mapserver for OGC map publishing on Windows. I.e. the "mapserv.exe" of old, which I've used many times previously. Much to my surprise, it isn't readily available anymore ? Am I missing something obvious here, or is Mapserver no longer being offered as a compiled EXE for download on mapserver.org ? I've browsed all the repositories references under the download/Windows section (MS4W et.al.), but I'm really only interested in the Mapserver part, not the full packages being offered (which often contains MapScript instead of Mapserver anyway). I have neither setup nor expertise into compiling Mapserver myself, although I do have Visual Studio (C++) at hand, if compiling no longer require Linux or Cygwin or something similar. Any help is appriciated. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Thu Nov 7 13:52:16 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 7 Nov 2013 21:52:16 +0000 Subject: [mapserver-users] mapserver is slow on production machine Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA323173D@swmail01.r8nssis.local> Hello, Could anyone offer me tips on why Mapserver (MS4W) is running significantly slower on a production machine as compared to the development machine. In particular Apache is taking up 50% of the processor. I am using mapcache. Thanks Lyon County, MN (507) 532-8218 From andy at squeakycode.net Thu Nov 7 18:37:16 2013 From: andy at squeakycode.net (Andy Colson) Date: Thu, 07 Nov 2013 20:37:16 -0600 Subject: [mapserver-users] mapserver is slow on production machine In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA323173D@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA323173D@swmail01.r8nssis.local> Message-ID: <527C4E5C.4050404@squeakycode.net> On 11/07/2013 03:52 PM, Mark Volz wrote: > Hello, > > Could anyone offer me tips on why Mapserver (MS4W) is running significantly slower on a production machine as compared to the development machine. In particular Apache is taking up 50% of the processor. I am using mapcache. > > Thanks > > Lyon County, MN > (507) 532-8218 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Are you hitting aerial imagery? I've noticed some of my imagery requires a lot of cpu time to decompress, reproject, whatever else it does, and ship off. If you can pin it down to a specific layer, you could turn on the debug logging which includes timing. -Andy From lin at hvenegaard.dk Fri Nov 8 05:44:38 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Fri, 8 Nov 2013 14:44:38 +0100 Subject: [mapserver-users] Using Mapserver as standalone WFS - GetFeature fails Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADE499@hvmex01> Hi again, I'm trying to access a handful of tables in an MS/SQL 2008 database, using a Mapserver as a standalone WFS server. I'm attempting to use the OGR method, as the mssql2008 plugin fails to load for some reason. I managed to get it to respond to GetCapabilities and DescribeTypeName request, but GetFeature requests fails completely. My request is as follows: http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=getfeature&typename=GO_Punkter&maxfeatures=10&bbox=711500,6183000,712500,6184000 The layer metadata is as follows: METADATA "ows_title" "GO_Punkter" "ows_srs" "EPSG:25832" "wfs_include_items" "all" "gml_featureid" "MI_PRINX" "wfs_enable_request" "*" "gml_types" "auto" "ows_extent" "700000 6170000 720000 6190000" END My layer is defined as follows: TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);" The error I get in the Mapserver error log is as follows: CGI Request 1 on process 6252 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `GO_Punkter'. File not found or unsupported format. msWFSGetFeature(): WFS server error. ms_error->code not found mapserv request processing time (msLoadMap not incl.): 0.018s msFreeMap(): freeing map at 01628CF8. I read that I could debug the connection using "ogrinfo.exe -al", but that works perfectly, and returns all features: C:\Mapserver.640>ogrinfo -al "MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);" INFO: Open of `MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);' using driver `MSSQLSpatial' successful. Layer name: D00001_POINTS Geometry: Unknown (any) Feature Count: 33541 Extent: (705463.862800, 6177660.915000) - (715176.650800, 6184543.444000) Layer SRS WKT: PROJCS["ETRS89 / UTM zone 32N", GEOGCS["ETRS89", DATUM["European_Terrestrial_Reference_System_1989", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6258"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4258"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AXIS["Easting",EAST], AXIS["Northing",NORTH], AUTHORITY["EPSG","25832"]] FID Column = MI_PRINX Geometry Column = feature valid_from: DateTime (23.0) valid_to: DateTime (23.0) sectioncode: String (50.0) element_code: String (10.0) element_subcode: String (50.0) carename: String (50.0) mi_style: String (250.0) symbology: String (8000.0) labeltext: String (250.0) OGRFeature(D00001_POINTS):1 valid_from (DateTime) = (null) valid_to (DateTime) = (null) sectioncode (String) = 03-001-001-009 element_code (String) = 7e element_subcode (String) = Legeudstyr carename (String) = (null) mi_style (String) = Symbol (36,12615935,8,"Map Symbols",0,0) symbology (String) = (null) labeltext (String) = (null) etc. etc. Can anyone point me towards a solution for this issue ? Am I missing something obvious here ? Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Nov 8 06:30:54 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 8 Nov 2013 14:30:54 +0000 Subject: [mapserver-users] Using Mapserver as standalone WFS - GetFeature fails Message-ID: <84446DEF76453C439E9E97E438E13A631F0882B2@suutari.haapa.mmm.fi> Hi, With WFS it is good to start from the basics http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=GetCapabilities http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=DescribeFeatureType&typename=xxxx http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=getfeature&typename=xxxx&maxfeatures=10 You said you have done all of this. Only simple thing that comes to my mind is to check if your typename really is "GO_Punkter". It may be if it takes the name from "ows_title" and you can check it from GetCapabilities. There is also "wfs_name" metadata item for setting the typename. -Jukka Rahkonen- Lars I. Nielsen wrote: Hi again, I'm trying to access a handful of tables in an MS/SQL 2008 database, using a Mapserver as a standalone WFS server. I'm attempting to use the OGR method, as the mssql2008 plugin fails to load for some reason. I managed to get it to respond to GetCapabilities and DescribeTypeName request, but GetFeature requests fails completely. My request is as follows: http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=getfeature&typename=GO_Punkter&maxfeatures=10&bbox=711500,6183000,712500,6184000 The layer metadata is as follows: METADATA "ows_title" "GO_Punkter" "ows_srs" "EPSG:25832" "wfs_include_items" "all" "gml_featureid" "MI_PRINX" "wfs_enable_request" "*" "gml_types" "auto" "ows_extent" "700000 6170000 720000 6190000" END My layer is defined as follows: TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);" The error I get in the Mapserver error log is as follows: CGI Request 1 on process 6252 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `GO_Punkter'. File not found or unsupported format. msWFSGetFeature(): WFS server error. ms_error->code not found mapserv request processing time (msLoadMap not incl.): 0.018s msFreeMap(): freeing map at 01628CF8. I read that I could debug the connection using "ogrinfo.exe -al", but that works perfectly, and returns all features: C:\Mapserver.640>ogrinfo -al "MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);" INFO: Open of `MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);' using driver `MSSQLSpatial' successful. Layer name: D00001_POINTS Geometry: Unknown (any) Feature Count: 33541 Extent: (705463.862800, 6177660.915000) - (715176.650800, 6184543.444000) Layer SRS WKT: PROJCS["ETRS89 / UTM zone 32N", GEOGCS["ETRS89", DATUM["European_Terrestrial_Reference_System_1989", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6258"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4258"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AXIS["Easting",EAST], AXIS["Northing",NORTH], AUTHORITY["EPSG","25832"]] FID Column = MI_PRINX Geometry Column = feature valid_from: DateTime (23.0) valid_to: DateTime (23.0) sectioncode: String (50.0) element_code: String (10.0) element_subcode: String (50.0) carename: String (50.0) mi_style: String (250.0) symbology: String (8000.0) labeltext: String (250.0) OGRFeature(D00001_POINTS):1 valid_from (DateTime) = (null) valid_to (DateTime) = (null) sectioncode (String) = 03-001-001-009 element_code (String) = 7e element_subcode (String) = Legeudstyr carename (String) = (null) mi_style (String) = Symbol (36,12615935,8,"Map Symbols",0,0) symbology (String) = (null) labeltext (String) = (null) etc. etc. Can anyone point me towards a solution for this issue ? Am I missing something obvious here ? Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlapointe at mapgears.com Fri Nov 8 12:41:15 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Fri, 8 Nov 2013 15:41:15 -0500 Subject: [mapserver-users] New ScribeUI 0.5 Release and launch of ScribeUI.org Message-ID: Hi list, With the end of the Google Summer of Code, ScribeUI development was slowed down, but it has not stopped! First of all, we have a new website: scribeui.org You can download the latest version of ScribeUI, view the installation instructions, learn how to use the scribe syntax and more! ScribeUI 0.5 doesn't bring any new features, but it solves a lot of annoying bugs you probably encounter often if you already use ScribeUI. It now runs much more smoothly than before. What's new? - Workspaces with passwords are now deletable - The add POI function works great with Scribe maps too. - The variable button was put in the same dropdown as map, scales, projections, etc. - No more multiple set extent buttons. - The setextent function was polished a bit. - Editors' history no longer overlap, you can now ctrl-z without fear. - You can now resize your window freely without breaking the layout. - It is now possible to delete files from the browse tab. - Useless scrollbars in chrome are gone. - Resizing the log panel now works in chrome. These changes solve a lot of annoying quirks ScribeUI used to have. If there is still things you would like to see changed, feel free to open a ticket . We are very open to feature and enhancement suggestions, as well a bug reports. Get ScribeUI Everything you need to get started with ScribeUI is on scribeui.org, the new project's webpage. If you wish to report a bug, feel free to do so on the project's github: https://github.com/mapgears/scribeui/issues -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at gmail.com Fri Nov 8 21:39:50 2013 From: jayzee.smith at gmail.com (John Smith) Date: Sat, 9 Nov 2013 00:39:50 -0500 Subject: [mapserver-users] mapserver 6.4.0 can't create geom with postgis 2.1.0?! Message-ID: guys, looks like mapserver 6.4.0 can't create geom with postgis 2.1.0. can someone confirm that before i rollback to ms 6.2.1 or before :( is there any other solution? just trying to connect ms 6.4.0 with pg 2.1.0 but getting the following error: WARNING: ST_Force_2d signature was deprecated in 2.1.0. Please use ST_Force2D CONTEXT: SQL function "st_force_2d" during startup both functions exist under public > functions but ST_Force_2d creates this error while ST_Force2D is unused. see http://stackoverflow.com/questions/19000753/mapserver-6-2-and-deprecated-st-force-2d> https://github.com/mapserver/mapserver/pull/4803 (mappostgis.c, mappostgis.h) and http://postgis.net/docs/ST_Force_2D.html. thks, jzs -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Nov 8 23:28:59 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 9 Nov 2013 07:28:59 +0000 Subject: [mapserver-users] mapserver 6.4.0 can't create geom with postgis 2.1.0?! In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A631F088826@suutari.haapa.mmm.fi> Hi, It is a warning. It should mean that everything still works. Or do you mean that you have run the "psql -d [yourdatabase] -f legacy.sql" command in your database and that you can do from psql SELECT ST_Force_2d with a good result but you can't get maps out of Mapserver because of this error? If that is the situation, perhaps you have not installed legacy functions into your production database. It is a per database thing, it is not enough that you find the function from the disk. -Jukka Rahkonen- ________________________________ John Smith wrote: > guys, > looks like mapserver 6.4.0 can't create geom with postgis 2.1.0. can someone confirm that before i rollback to ms 6.2.1 or before :( is there any other solution? > just trying to connect ms 6.4.0 with pg 2.1.0 but getting the following error: > WARNING: ST_Force_2d signature was deprecated in 2.1.0. Please use ST_Force2D > CONTEXT: SQL function "st_force_2d" during startup > both functions exist under public > functions but ST_Force_2d creates this error while ST_Force2D is unused. see http://stackoverflow.com/questions/19000753/mapserver-6-2-and-deprecated-st-force-2d > https://github.com/mapserver/mapserver/pull/4803 (mappostgis.c, mappostgis.h) and http://postgis.net/docs/ST_Force_2D.html. thks, jzs From bob.basques at ci.stpaul.mn.us Fri Nov 1 14:52:48 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 1 Nov 2013 21:52:48 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> Message-ID: Well, in order to rule out the reading of the proj file you could put the whole projection block right into the Mapfile, similar to . . . PROJECTION "proj=utm" "ellps=GRS80" "datum=NAD83" "zone=15" "units=m" "north" "no_defs" END Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 4:47 PM To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code I can get the re-projection to work just fine, but not with a ESPG code that is not already defined in the Proj espg file. For example I can go from my custom coordinate system to 3857, but I cannot serve it out using my custom code. I think what is different about your example and mine is that in your's case you have the EPSG code that already exists and in my case I am trying to use a new espg number that does not previously exists. Thanks, Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:45 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code MAP WEB METADATA "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here List your map projection and the reprojection as above and try that. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at houstoneng.com Fri Nov 1 15:12:35 2013 From: bfischer at houstoneng.com (Brian Fischer) Date: Fri, 1 Nov 2013 22:12:35 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: <00eb01ced74c$d6e4ac80$84ae0580$@dkerr.co.uk> References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> <00eb01ced74c$d6e4ac80$84ae0580$@dkerr.co.uk> Message-ID: Yes, that is correct. I've double check the string and it all looks right, but maybe I did something wrong. Even if I had the projection definition wrong, I would still think it would work just the data would not show up in the right location on the map. I still go back to that proj file and whether Mapserver is reading it? According to the documentation for the MS4W distribution of MapServer it should be. I'm not a programmer so don't have the skills to look at the code and see in what cases it would give the "Invalid SRS" error from the WMS server? Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:54 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code So adding it to the EPSG file does not work? If that's the case then the sting may be incorrect. Regards, Donald From: Brian Fischer [mailto:bfischer at houstoneng.com] Sent: 01 November 2013 21:47 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code I can get the re-projection to work just fine, but not with a ESPG code that is not already defined in the Proj espg file. For example I can go from my custom coordinate system to 3857, but I cannot serve it out using my custom code. I think what is different about your example and mine is that in your's case you have the EPSG code that already exists and in my case I am trying to use a new espg number that does not previously exists. Thanks, Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:45 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code MAP WEB METADATA "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here List your map projection and the reprojection as above and try that. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here's the espg definition and here's my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I'm just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here's the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4158 / Virus Database: 3615/6797 - Release Date: 10/31/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Sat Nov 9 14:50:10 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 9 Nov 2013 22:50:10 +0000 Subject: [mapserver-users] WMS Server and Custom ESPG code In-Reply-To: References: <8927DBC1C0E7CB4A9823B7478829091D198B0FEB@OIT-TEAQEXMBX01.som.w2k.state.me.us> <00dd01ced74b$9d642c70$d82c8550$@dkerr.co.uk> <00eb01ced74c$d6e4ac80$84ae0580$@dkerr.co.uk>, Message-ID: <84446DEF76453C439E9E97E438E13A631F088A10@suutari.haapa.mmm.fi> Hi, To test if the "epsg" file of MS4W is used just make some client to read a map in any supported projection (reprojected from the native) and then delete the definitions from the file. You can do it on-a-fly. Did you already make a test with the dataset and mapfile which I pointed for you, if I remember right? They work for me here in Finland with those EPSG:97036 settings and with MS4W and I do not see any fundamental reason why they could not be made to work also for you. -Jukka- ________________________________ Brian Fischer wrote: > Yes, that is correct. I?ve double check the string and it all looks right, but maybe I did something wrong. Even if I had the projection definition wrong, I would still think it would work just the data would not show up in the right location on the map. > I still go back to that proj file and whether Mapserver is reading it? According to the documentation for the MS4W distribution of MapServer it should be. I?m not a programmer so don?t have the skills to look at the code and see in what cases it would give the ?Invalid SRS? error from the WMS server? Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:54 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code So adding it to the EPSG file does not work? If that?s the case then the sting may be incorrect. Regards, Donald From: Brian Fischer [mailto:bfischer at houstoneng.com] Sent: 01 November 2013 21:47 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code I can get the re-projection to work just fine, but not with a ESPG code that is not already defined in the Proj espg file. For example I can go from my custom coordinate system to 3857, but I cannot serve it out using my custom code. I think what is different about your example and mine is that in your?s case you have the EPSG code that already exists and in my case I am trying to use a new espg number that does not previously exists. Thanks, Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, November 01, 2013 4:45 PM To: Brian Fischer; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS Server and Custom ESPG code MAP WEB METADATA "wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here List your map projection and the reprojection as above and try that. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: 01 November 2013 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here?s the espg definition and here?s my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I?m just trying to display the output image in a web browser to validate it is working. # Chippewa County Coordinates EPSG:97036 <97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <> MAP NAME 'Basemap' SIZE 800 650 STATUS ON EXTENT 68036 80345 326435 279563 #Extent is needed for feature report UNITS FEET CONFIG "PROJ_LIB" "E:/ms4w/proj/nad" INCLUDE "geomoose_globals.map" WEB METADATA 'wms_title' 'Basemap' 'wms_srs' 'epsg:97306' 'wms_enable_request' '*' END END PROJECTION 'init=epsg:97306' END LAYER # County Boundary NAME 'County_Boundary' DATA 'data/county' STATUS ON TYPE POLYGON PROJECTION 'init=epsg:97306' END METADATA 'wms_srs' 'epsg:97306' END CLASS NAME 'County Boundary' STYLE WIDTH 5 COLOR -1 -1 -1 OUTLINECOLOR 100 100 100 END END END # County Boundary END Here?s the error I get: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Brian Fischer Principal | GIS Project Manager Houston Engineering, Inc. O 763.493.4522 | D 763.493.6664 | F 763.493.5572 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael Sent: Friday, November 01, 2013 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Server and Custom ESPG code Hi Brian, I have successfully done this as you outline below. I checked my WMS and they reference c:\ms4w\proj\nad. In that folder I edited the epsg file I added the following line to the end of the file: # ESRI Web Mercator <102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs Now I can serve my WMS out as Web Mercator for ArcGIS Online. =============================== Michael Smith MS GISP State GIS Manager, Maine Office of GIS State of Maine, Office of Information Technology michael.smith _at_ maine.gov 207-215-5530 From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer Sent: Friday, November 01, 2013 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Server and Custom ESPG code I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Is this supported? I have followed these steps. 1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg 2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad") 3) Defined the new espg in the Web, Projection, Layer objects of the mapfile. 4) Verified the mapfile works using the shp2img utility Has anyone else go this to work? Thanks! Brian No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4158 / Virus Database: 3615/6797 - Release Date: 10/31/13 From icadedt at yahoo.fr Mon Nov 11 09:02:48 2013 From: icadedt at yahoo.fr (Icadedt) Date: Mon, 11 Nov 2013 17:02:48 +0000 (GMT) Subject: [mapserver-users] interpolation maps Message-ID: <1384189368.37364.YahooMailNeo@web172805.mail.ir2.yahoo.com> hi, can mapserver create interpolation maps ? Thanx in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Nov 11 09:31:28 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Nov 2013 12:31:28 -0500 Subject: [mapserver-users] interpolation maps In-Reply-To: <1384189368.37364.YahooMailNeo@web172805.mail.ir2.yahoo.com> References: <1384189368.37364.YahooMailNeo@web172805.mail.ir2.yahoo.com> Message-ID: <52811470.4080008@swoodbridge.com> On 11/11/2013 12:02 PM, Icadedt wrote: > hi, > can mapserver create interpolation maps ? I'm not familiar with these, can you provide a little more detail and what these are? Thanks, -Steve W From Steve.Lime at state.mn.us Mon Nov 11 21:57:08 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 12 Nov 2013 05:57:08 +0000 Subject: [mapserver-users] interpolation maps In-Reply-To: <52811470.4080008@swoodbridge.com> References: <1384189368.37364.YahooMailNeo@web172805.mail.ir2.yahoo.com>, <52811470.4080008@swoodbridge.com> Message-ID: Maybe something like a heat map? ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Stephen Woodbridge [woodbri at swoodbridge.com] Sent: Monday, November 11, 2013 11:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] interpolation maps On 11/11/2013 12:02 PM, Icadedt wrote: > hi, > can mapserver create interpolation maps ? I'm not familiar with these, can you provide a little more detail and what these are? Thanks, -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From brfr at metrico.lu Mon Nov 11 23:35:26 2013 From: brfr at metrico.lu (Frank Broniewski) Date: Tue, 12 Nov 2013 08:35:26 +0100 Subject: [mapserver-users] interpolation maps In-Reply-To: References: <1384189368.37364.YahooMailNeo@web172805.mail.ir2.yahoo.com>, <52811470.4080008@swoodbridge.com> Message-ID: <5281DA3E.9040705@metrico.lu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I guess he means surface creation from point data, like the r.surf.* functions from GRASS - and no, that is afaik not possible with mapserver. But you could generate your map and save it as a tiff image and display that with mapserver. It could be possible to make something up with Python, mapscript and the GRASS Gis bindings - but that's probably too much hassle for what it's worth :D Frank Am 2013-11-12 06:57, schrieb Lime, Steve D (MNIT): > Maybe something like a heat map? > > ________________________________________ From: > mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] on behalf of Stephen > Woodbridge [woodbri at swoodbridge.com] Sent: Monday, November 11, > 2013 11:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: > [mapserver-users] interpolation maps > > On 11/11/2013 12:02 PM, Icadedt wrote: >> hi, can mapserver create interpolation maps ? > > I'm not familiar with these, can you provide a little more detail > and what these are? > > Thanks, -Steve W > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > - -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSgdozAAoJEHopqW0d1cQVH7EIAIPbin+MddIuXw4UNcC4tLWt 28EUgJkkGWsTs6yv+17EjhI7HB/KkK3jPAxNFt2V8jhQmdCKi0F3S/7TrIt2rzhy O/zyGc/2rHoxucKv50dHTmmK3ccAeD16kd22sTg0bU19+4YYt8gQm5O8718yMZvd 0y2vsZFmAQQWGcmaCp6umzuyaVMxOIgy4XkdCkfmo6SJxaxSgqTdIarE12Il4jkS ayF6QfRHsFWO7m606jeBFif0uw07CaxZcy7LO1OApZFFWe/M7IK6Ydld5rRkrAgR 0WJulyyr+rdfYONM1xh0pmWMt26EcidGqXnPEovh+YcyHnjkcYb+rMUyDz1IR5k= =NjrU -----END PGP SIGNATURE----- From raffaele.morelli at gmail.com Tue Nov 12 02:02:47 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Tue, 12 Nov 2013 11:02:47 +0100 Subject: [mapserver-users] [OT] Problem loading php5-mapscript Message-ID: Hi, I am wonder if any of you using debian (testing) with php5.5.5 installed is having problems in loading php_mapscript.so No matter how I tried php error log always reports PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/php_mapscript.so' System info: debian wheezy/testing php5 5.5.5+dfsg-1 libapache2-mod-php5 5.5.5+dfsg-1 mapserver 6.4.0-2 apache2 2.4.6-3 Regards /r -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at lsces.co.uk Tue Nov 12 02:37:11 2013 From: lester at lsces.co.uk (Lester Caine) Date: Tue, 12 Nov 2013 10:37:11 +0000 Subject: [mapserver-users] [OT] Problem loading php5-mapscript In-Reply-To: References: Message-ID: <528204D7.4020305@lsces.co.uk> Raffaele Morelli wrote: > I am wonder if any of you using debian (testing) with php5.5.5 installed is > having problems in loading php_mapscript.so > > No matter how I tried php error log always reports > PHP Startup: Unable to load dynamic library > '/usr/lib/php5/20121212/php_mapscript.so' It would be nice if PHP actually responded with more helpful failure messages. Starting point is ... has the php_mapscript.so file been rebuilt using 5.5.5? Brain is not as good as it used to be, but last time I had a problem here it was something to do with the dependencies that mapscript was looking for. I've just moved over to using nginx and it's working fine but I know I added a couple of other packages previously http://maptools.org/ms4w/ content list is probably worth a scan. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From raffaele.morelli at gmail.com Tue Nov 12 03:55:11 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Tue, 12 Nov 2013 12:55:11 +0100 Subject: [mapserver-users] [OT] Problem loading php5-mapscript In-Reply-To: <528204D7.4020305@lsces.co.uk> References: <528204D7.4020305@lsces.co.uk> Message-ID: 2013/11/12 Lester Caine > Raffaele Morelli wrote: > >> I am wonder if any of you using debian (testing) with php5.5.5 installed >> is >> having problems in loading php_mapscript.so >> >> No matter how I tried php error log always reports >> PHP Startup: Unable to load dynamic library >> '/usr/lib/php5/20121212/php_mapscript.so' >> > > It would be nice if PHP actually responded with more helpful failure > messages. > Starting point is ... has the php_mapscript.so file been rebuilt using > 5.5.5? > Brain is not as good as it used to be, but last time I had a problem here > it was something to do with the dependencies that mapscript was looking for. > My local setup in quite the same, everything works fine and mapscript dependencies are honoured, really can't figure out what's going on > I've just moved over to using nginx and it's working fine but I know I > added a couple of other packages previously http://maptools.org/ms4w/ content list is probably worth a scan. that's windows stuff, linux here :-) /r -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at lsces.co.uk Tue Nov 12 04:49:17 2013 From: lester at lsces.co.uk (Lester Caine) Date: Tue, 12 Nov 2013 12:49:17 +0000 Subject: [mapserver-users] [OT] Problem loading php5-mapscript In-Reply-To: References: <528204D7.4020305@lsces.co.uk> Message-ID: <528223CD.2000704@lsces.co.uk> Raffaele Morelli wrote: > I've just moved over to using nginx and it's working fine but I know I added > a couple of other packages previously > > http://maptools.org/ms4w/ content list is probably worth a scan. > > that's windows stuff, linux here :-) Ditto ... but the list of bits needed is the same ;) proj was missing on one of my machines ... no complaints on installing but difficult to spot when things didn't work. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From lucadeluge at gmail.com Tue Nov 12 04:59:52 2013 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 12 Nov 2013 13:59:52 +0100 Subject: [mapserver-users] error with SQL query Message-ID: Hi all, I'm trying to use a "complex" SQL query on my layer but it return an error. My definition on the mapfile is grid_5x5.geom, grid_5x5.gid, count(occurrence.specie) AS count FROM (occurrence JOIN grid_5x5 ON (st_intersects(occurrence.wkb_geometry, grid_5x5.geom))) WHERE specie='ursarc' GROUP BY grid_5x5.gid as subquery USING UNIQUE grid_5x5.gid USING UNIQUE 25832 and it works well on postgis. The error returned is msDrawMap(): Image handling error. Failed to draw layer named 'orsobruno'. msPostGISLayerWhichShapes(): Query error. Failed to build query SQL. msPostGISBuildSQL(): General error message. Failed to build SQL 'where'. Someone can help me? thanks -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From jukka.rahkonen at mmmtike.fi Tue Nov 12 05:10:23 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Nov 2013 13:10:23 +0000 Subject: [mapserver-users] error with SQL query Message-ID: <84446DEF76453C439E9E97E438E13A631F089DC4@suutari.haapa.mmm.fi> Hi, I am sure you will solve it by making a "simple" SQL query which works for you with your data and after that adding one piece at a time for making it more complex. At least you can then send youR next mail as "I had in my DATA 'this' and it worked but once I changed it to 'that' it stopped working. Why?" Good luck, -Jukka Rahkonen- Luca Delucchi wrote: > Hi all, > > I'm trying to use a "complex" SQL query on my layer but it return an error. > My definition on the mapfile is > > grid_5x5.geom, grid_5x5.gid, count(occurrence.specie) AS count FROM > (occurrence JOIN grid_5x5 ON (st_intersects(occurrence.wkb_geometry, > grid_5x5.geom))) WHERE specie='ursarc' GROUP BY grid_5x5.gid as subquery > USING UNIQUE grid_5x5.gid USING UNIQUE 25832 > > and it works well on postgis. > The error returned is > > msDrawMap(): Image handling error. Failed to draw layer named 'orsobruno'. > msPostGISLayerWhichShapes(): Query error. Failed to build query SQL. > msPostGISBuildSQL(): General error message. Failed to build SQL 'where'. > > Someone can help me? > > thanks > > -- > ciao > Luca > > http://gis.cri.fmach.it/delucchi/ > www.lucadelu.org > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From humberto at pastoraldacrianca.org.br Tue Nov 12 08:31:59 2013 From: humberto at pastoraldacrianca.org.br (Humberto Cereser Ibanez) Date: Tue, 12 Nov 2013 14:31:59 -0200 Subject: [mapserver-users] error with SQL query In-Reply-To: References: Message-ID: <1384273919.2570.31.camel@p210> Hi Luca, Em Ter, 2013-11-12 ?s 13:59 +0100, Luca Delucchi escreveu: > Hi all, > > I'm trying to use a "complex" SQL query on my layer but it return an > error. > My definition on the mapfile is > > grid_5x5.geom, grid_5x5.gid, count(occurrence.specie) AS count FROM > (occurrence JOIN grid_5x5 ON (st_intersects(occurrence.wkb_geometry, > grid_5x5.geom))) WHERE specie='ursarc' GROUP BY grid_5x5.gid as > subquery USING UNIQUE grid_5x5.gid USING UNIQUE 25832 > My guess is for rewrite your definition: ... FROM occurrence JOIN grid_5x5 ON st_intersects(occurrence.wkb_geometry, grid_5x5.geom) and specie='ursarc' ... Also, if you have spatial index for wkb_geometry and geom, the && operator will decrease resource consumption. Your query would be something like that: ON st_intersects(occurrence.wkb_geometry, grid_5x5.geom) and (occurrence.wkb_geometry && grid_5x5.geom) and specie='ursarc' > and it works well on postgis. > The error returned is > > msDrawMap(): Image handling error. Failed to draw layer named > 'orsobruno'. msPostGISLayerWhichShapes(): Query error. Failed to build > query SQL. msPostGISBuildSQL(): General error message. Failed to build > SQL 'where'. > > Someone can help me? > > thanks > > -- > ciao > Luca > > Arrivederci, Humberto Cereser Ibanez From samuelmesa at gmail.com Tue Nov 12 09:35:12 2013 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Tue, 12 Nov 2013 12:35:12 -0500 Subject: [mapserver-users] Mapcache error proxy curl with external WMS Message-ID: Hello, I get errors when trying to connect to a WMS through a proxy server. I get the following error: curl failed to request url http://vmap0.tiles.osgeo.org/wms/vmap0?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-187.031250,-97.031250,187.031250,97.031250&WIDTH=532&HEIGHT=276&FORMAT=image/png&SRS=EPSG:4326&LAYERS=basic: Failed connect to vmap0.tiles.osgeo.org:80; Operation now in progress In Archlinux I have configured the global environment variables http_proxy and have not obtained the expected results. Thanks for any help. Regards, Samuel Mesa -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Nov 12 10:07:45 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Nov 2013 19:07:45 +0100 Subject: [mapserver-users] Mapcache error proxy curl with external WMS In-Reply-To: References: Message-ID: The osgeo vmap wms service seems to be down for the time being, so with or without a proxy you won't be able to get anything other than an error. cheers, thomas On 12 November 2013 18:35, samuelmesa at gmail.com wrote: > Hello, I get errors when trying to connect to a WMS through a proxy server. > > I get the following error: > > curl failed to request url > http://vmap0.tiles.osgeo.org/wms/vmap0?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-187.031250,-97.031250,187.031250,97.031250&WIDTH=532&HEIGHT=276&FORMAT=image/png&SRS=EPSG:4326&LAYERS=basic > : Failed connect to vmap0.tiles.osgeo.org:80; Operation now in progress > > In Archlinux I have configured the global environment variables http_proxy > and have not obtained the expected results. > > Thanks for any help. > > Regards, > > Samuel Mesa > > -- > --- > .~. > / v \ > // \\ > /( )\ > ^`~'^ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From zhaops at hotmail.com Tue Nov 12 13:06:27 2013 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 12 Nov 2013 21:06:27 +0000 Subject: [mapserver-users] SLD and GetLegendGraphic for raster data Message-ID: We are using SLD to render raster data. The SLD looks like: ... It means: class 1: [pixel] >= -1 AND [pixel] < 0 with color ffffff class 2: [pixel] >= 0 AND [pixel] < 0.1 with color ffffe5 class 3: [pixel] >= 0.1 AND [pixel] < 0.2 with color fff8c3 We can use the request, "GetLegendGraphic", to get a legend (color bar) which has the lower value being on top of the legend image, and the bigger value is on bottom of the legend image. Generally, the scientific guys hope the large number being on top of the legend image. Is there a way to invert the legend? Thanks a lot. -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Wed Nov 13 03:15:48 2013 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 13 Nov 2013 12:15:48 +0100 Subject: [mapserver-users] GeoJSON as WFS output format without template Message-ID: <52835F64.1040306@r3-gis.com> Hi list! I wanted to have GeoJSON as an output format. Now, if I got the documentation right ( http://mapserver.org/it/development/rfc/ms-rfc-62.html, http://mapserver.org/it/development/rfc/ms-rfc-36.html), I should prepare a template for each layer I'd like to serve as GeoJSON. Is this right or is there a way that MapServer guesses a reasonable format directly from the data, as it does for GML? Indeed, http://mapserver.org/it/output/template_output.html says "There are other, simpler, ways to output some of these formats using MapServer". Does this simpler way exist for GeoJSON, too? Regards, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed Nov 13 03:49:15 2013 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 13 Nov 2013 11:49:15 +0000 Subject: [mapserver-users] [EXTERNAL] GeoJSON as WFS output format without template In-Reply-To: <52835F64.1040306@r3-gis.com> Message-ID: Peter, You can use OGR outputformats. Add something like this to your mapfile OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" END Add to your LAYER or MAP METADATA, "wfs_getfeature_formatlist? "geojson" And then in your WFS call add &outputformat=geojson. This will return geojson directly in the browser, if you need it to download, you can change the FORMATOPTION to FORM=ZIP See http://mapserver.org/output/ogr_output.html for more detail. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Peter Hopfgartner > Date: Wednesday, November 13, 2013 at 6:15 AM To: users mapserver > Subject: [EXTERNAL] [mapserver-users] GeoJSON as WFS output format without template Resent-From: Michael Smith > Hi list! I wanted to have GeoJSON as an output format. Now, if I got the documentation right ( http://mapserver.org/it/development/rfc/ms-rfc-62.html, http://mapserver.org/it/development/rfc/ms-rfc-36.html), I should prepare a template for each layer I'd like to serve as GeoJSON. Is this right or is there a way that MapServer guesses a reasonable format directly from the data, as it does for GML? Indeed, http://mapserver.org/it/output/template_output.html says "There are other, simpler, ways to output some of these formats using MapServer". Does this simpler way exist for GeoJSON, too? Regards, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Wed Nov 13 05:26:52 2013 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 13 Nov 2013 14:26:52 +0100 Subject: [mapserver-users] [EXTERNAL] GeoJSON as WFS output format without template In-Reply-To: References: Message-ID: <52837E1C.7010405@r3-gis.com> On 11/13/2013 12:49 PM, Smith, Michael ERDC-RDE-CRREL-NH wrote: > Peter, > Hi Michael, > You can use OGR outputformats. Add something like this to your mapfile > > OUTPUTFORMAT > NAME "geojson" > DRIVER "OGR/GEOJSON" > MIMETYPE "application/json; subtype=geojson" > FORMATOPTION "STORAGE=stream" > FORMATOPTION "FORM=SIMPLE" > END > > Add to your LAYER or MAP METADATA, "wfs_getfeature_formatlist? "geojson" > > And then in your WFS call add &outputformat=geojson. > > This will return geojson directly in the browser, if you need it to > download, you can change the FORMATOPTION to FORM=ZIP > > See http://mapserver.org/output/ogr_output.html for more detail. > Thanks, this works! > Mike > > -- > Michael Smith > US Army Corps > Remote Sensing GIS/Center Peter R3 GIS http://www.r3-gis.com > > From: Peter Hopfgartner > > Date: Wednesday, November 13, 2013 at 6:15 AM > To: users mapserver > > Subject: [EXTERNAL] [mapserver-users] GeoJSON as WFS output format > without template > Resent-From: Michael Smith > > > Hi list! > > I wanted to have GeoJSON as an output format. Now, if I got the > documentation right ( > http://mapserver.org/it/development/rfc/ms-rfc-62.html, > http://mapserver.org/it/development/rfc/ms-rfc-36.html), I should > prepare a template for each layer I'd like to serve as GeoJSON. > Is this right or is there a way that MapServer guesses a reasonable > format directly from the data, as it does for GML? > Indeed, http://mapserver.org/it/output/template_output.html says > "There are other, simpler, ways to output some of these formats using > MapServer". > Does this simpler way exist for GeoJSON, too? > > Regards, > > Peter > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Nov 13 08:17:14 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 13 Nov 2013 11:17:14 -0500 Subject: [mapserver-users] php mapscript with draw() calling a php wrapper Message-ID: I have a web service that use a php wrapper as described here, http://mapserver.org/fr/ogc/mapscript.html#php-example except that there is no mapscript, just php code that makes some query to a database in order to add some parametes to the wms request This wrapper ends with readfile ($url); It works fine for all wms request. My problem is when calling this wrapper from another php mapscript page, I can't get the image back More details... I have a php mapscript who prepare a mapobject to print the map In this php mapscript I use $oMap->draw(); to get the image But the layer in $oMap doesn'T have a standard url like /cgi-bin/mapserv?map=..... The url is something like http://.../php/ows.php?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=...... ows.php build the correct url /cgi-bin/mapserv?map=.....and does the getmap request using readfile($url) But it seems that $oMap->draw() can't deal with what readfile returns, I got this error Error in msDrawMap(): Failed to draw WMS layer named 'RSS'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. I'm sorry It's difficult to explain, I hope I explained well enough... Thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at gmail.com Wed Nov 13 13:31:29 2013 From: jayzee.smith at gmail.com (John Smith) Date: Wed, 13 Nov 2013 16:31:29 -0500 Subject: [mapserver-users] [OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers Message-ID: i am calling, like so: (from http://stackoverflow.com/questions/10368726/how-to-read-external-geojson-file-from-openlayers ) geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: "/cgi-bin/app?map=...&ouputformat=geojson", format: new OpenLayers.Format.GeoJSON() }) }); this may be unrelated but the url above creates a valid geojson however both http://www.jsoneditoronline.org/ and http://geojson.io/ throw the following error: Parse error [ "coordinates": [[ ]] ] Expecting 'EOF', '}', ',', ']', got ':' (i guess i can always edit my tmpl ( http://osgeo-org.1560.x6.nabble.com/mapserver-5-6-CGI-output-GeoJSON-format-td4890884.html) but it seems unrelated.) thks, jzs -------------- next part -------------- An HTML attachment was scrubbed... URL: From erik.guldberg at kartverket.no Thu Nov 14 03:38:09 2013 From: erik.guldberg at kartverket.no (Erick) Date: Thu, 14 Nov 2013 03:38:09 -0800 (PST) Subject: [mapserver-users] Mapcache: Multiple WMS url's in source Message-ID: <1384429089887-5089117.post@n6.nabble.com> Hi all, In Geowebcache it's possible to proxy requests for a layer to multiple WMS servers like this: http://serv:8082/geoserver/wms http://serv:8083/geoserver/wms http://serv:8084/geoserver/wms http://serv:8085/geoserver/wms Is the same possible with mapcache? If so, how? If I use more than one url-element, it?s always the first one which is being used. Regards, Erik -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-Multiple-WMS-url-s-in-source-tp5089117.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Thu Nov 14 03:48:36 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 14 Nov 2013 12:48:36 +0100 Subject: [mapserver-users] Mapcache: Multiple WMS url's in source In-Reply-To: <1384429089887-5089117.post@n6.nabble.com> References: <1384429089887-5089117.post@n6.nabble.com> Message-ID: Hi Erick, This isn't implemented for mapcache. If you need this, you have two options: - put a load balancer in front of your wms instances, and point mapcache to the load balancer - implement and submit, or contract/contact me to implement, that functionality in mapcache cheers, thomas On 14 November 2013 12:38, Erick wrote: > Hi all, > > In Geowebcache it's possible to proxy requests for a layer to multiple WMS > servers like this: > http://serv:8082/geoserver/wms > http://serv:8083/geoserver/wms > http://serv:8084/geoserver/wms > http://serv:8085/geoserver/wms > > Is the same possible with mapcache? If so, how? If I use more than one > url-element, it?s always the first one which is being used. > > > Regards, > Erik > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-Multiple-WMS-url-s-in-source-tp5089117.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jekih at gst.dk Thu Nov 14 06:52:10 2013 From: jekih at gst.dk (Kihlberg, Jesper) Date: Thu, 14 Nov 2013 15:52:10 +0100 Subject: [mapserver-users] How to build MapCache with MemCache support? Message-ID: <762E35C3DEFE79438C2EAE35C73B4D4302794038@MIM-EXCDB002.res.adroot.dk> Hi list. We are trying to build MapCache on RHEL 6.3 but we keep getting Memcache: disabled. What do we need to enable MemCache? I have installed apr_utils 1.5.2, as it seems there are some dependencies there, but that doesn?t seem to enable MemCache support. Hope someone can shed some light. Regards, Jesper Kihlberg Danish Geodata Agency -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Nov 14 07:03:45 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 14 Nov 2013 16:03:45 +0100 Subject: [mapserver-users] How to build MapCache with MemCache support? In-Reply-To: <762E35C3DEFE79438C2EAE35C73B4D4302794038@MIM-EXCDB002.res.adroot.dk> References: <762E35C3DEFE79438C2EAE35C73B4D4302794038@MIM-EXCDB002.res.adroot.dk> Message-ID: Jesper, You need an apr-util library compiled with memcache support. I'm not sure rhel has that by default, it seems to be packaged by third parties though: http://www.t2-project.org/packages/apr_memcache.html -- thomas On 14 November 2013 15:52, Kihlberg, Jesper wrote: > Hi list. > > > > We are trying to build MapCache on RHEL 6.3 but we keep getting Memcache: > disabled. What do we need to enable MemCache? I have installed apr_utils > 1.5.2, as it seems there are some dependencies there, but that doesn?t seem > to enable MemCache support. > > > > Hope someone can shed some light. > > > > Regards, Jesper Kihlberg > > Danish Geodata Agency > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From samuelmesa at gmail.com Thu Nov 14 08:20:41 2013 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Thu, 14 Nov 2013 11:20:41 -0500 Subject: [mapserver-users] Mapcache error proxy curl with external WMS In-Reply-To: References: Message-ID: Thanks for your answer Thomas. However I have requested the map directly from OSGeo WMS and I have no problems, and likewise from the command mapcache_seed. However from the Web demo MapCache can not display images, or you can not generate the tiles due to the reported error with Curl and Web proxy . The truth know, but it is possible that I can configure the Web Proxy in MapCache XML file? Regards, Samuel Mesa 2013/11/12 thomas bonfort > The osgeo vmap wms service seems to be down for the time being, so > with or without a proxy you won't be able to get anything other than > an error. > > cheers, > thomas > > On 12 November 2013 18:35, samuelmesa at gmail.com > wrote: > > Hello, I get errors when trying to connect to a WMS through a proxy > server. > > > > I get the following error: > > > > curl failed to request url > > > http://vmap0.tiles.osgeo.org/wms/vmap0?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-187.031250,-97.031250,187.031250,97.031250&WIDTH=532&HEIGHT=276&FORMAT=image/png&SRS=EPSG:4326&LAYERS=basic > > : Failed connect to vmap0.tiles.osgeo.org:80; Operation now in progress > > > > In Archlinux I have configured the global environment variables > http_proxy > > and have not obtained the expected results. > > > > Thanks for any help. > > > > Regards, > > > > Samuel Mesa > > > > -- > > --- > > .~. > > / v \ > > // \\ > > /( )\ > > ^`~'^ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Nov 14 08:34:42 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 14 Nov 2013 17:34:42 +0100 Subject: [mapserver-users] Mapcache error proxy curl with external WMS In-Reply-To: References: Message-ID: it's not settable in the mapcache.xml file, however you should be able to do it through your apache configuration file: http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv -- thomas On 14 November 2013 17:20, samuelmesa at gmail.com wrote: > Thanks for your answer Thomas. However I have requested the map directly > from OSGeo WMS and I have no problems, and likewise from the command > mapcache_seed. However from the Web demo MapCache can not display images, or > you can not generate the tiles due to the reported error with Curl and Web > proxy. > > The truth know, but it is possible that I can configure the Web Proxy in > MapCache XML file? > > Regards, > > Samuel Mesa > > > 2013/11/12 thomas bonfort >> >> The osgeo vmap wms service seems to be down for the time being, so >> with or without a proxy you won't be able to get anything other than >> an error. >> >> cheers, >> thomas >> >> On 12 November 2013 18:35, samuelmesa at gmail.com >> wrote: >> > Hello, I get errors when trying to connect to a WMS through a proxy >> > server. >> > >> > I get the following error: >> > >> > curl failed to request url >> > >> > http://vmap0.tiles.osgeo.org/wms/vmap0?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-187.031250,-97.031250,187.031250,97.031250&WIDTH=532&HEIGHT=276&FORMAT=image/png&SRS=EPSG:4326&LAYERS=basic >> > : Failed connect to vmap0.tiles.osgeo.org:80; Operation now in progress >> > >> > In Archlinux I have configured the global environment variables >> > http_proxy >> > and have not obtained the expected results. >> > >> > Thanks for any help. >> > >> > Regards, >> > >> > Samuel Mesa >> > >> > -- >> > --- >> > .~. >> > / v \ >> > // \\ >> > /( )\ >> > ^`~'^ >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > --- > .~. > / v \ > // \\ > /( )\ > ^`~'^ From samuelmesa at gmail.com Thu Nov 14 09:18:47 2013 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Thu, 14 Nov 2013 12:18:47 -0500 Subject: [mapserver-users] Mapcache error proxy curl with external WMS In-Reply-To: References: Message-ID: Thank you very much Thomas, is what I needed to set the MapCache demo. Thank you for your prompt response, Regards, Samuel Mesa. 2013/11/14 thomas bonfort > it's not settable in the mapcache.xml file, however you should be able > to do it through your apache configuration file: > http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv > > -- > thomas > > On 14 November 2013 17:20, samuelmesa at gmail.com > wrote: > > Thanks for your answer Thomas. However I have requested the map directly > > from OSGeo WMS and I have no problems, and likewise from the command > > mapcache_seed. However from the Web demo MapCache can not display > images, or > > you can not generate the tiles due to the reported error with Curl and > Web > > proxy. > > > > The truth know, but it is possible that I can configure the Web Proxy in > > MapCache XML file? > > > > Regards, > > > > Samuel Mesa > > > > > > 2013/11/12 thomas bonfort > >> > >> The osgeo vmap wms service seems to be down for the time being, so > >> with or without a proxy you won't be able to get anything other than > >> an error. > >> > >> cheers, > >> thomas > >> > >> On 12 November 2013 18:35, samuelmesa at gmail.com > >> wrote: > >> > Hello, I get errors when trying to connect to a WMS through a proxy > >> > server. > >> > > >> > I get the following error: > >> > > >> > curl failed to request url > >> > > >> > > http://vmap0.tiles.osgeo.org/wms/vmap0?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-187.031250,-97.031250,187.031250,97.031250&WIDTH=532&HEIGHT=276&FORMAT=image/png&SRS=EPSG:4326&LAYERS=basic > >> > : Failed connect to vmap0.tiles.osgeo.org:80; Operation now in > progress > >> > > >> > In Archlinux I have configured the global environment variables > >> > http_proxy > >> > and have not obtained the expected results. > >> > > >> > Thanks for any help. > >> > > >> > Regards, > >> > > >> > Samuel Mesa > >> > > >> > -- > >> > --- > >> > .~. > >> > / v \ > >> > // \\ > >> > /( )\ > >> > ^`~'^ > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > --- > > .~. > > / v \ > > // \\ > > /( )\ > > ^`~'^ > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at gmail.com Thu Nov 14 13:35:04 2013 From: jayzee.smith at gmail.com (John Smith) Date: Thu, 14 Nov 2013 16:35:04 -0500 Subject: [mapserver-users] [OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers In-Reply-To: References: Message-ID: using openlayers 2.7 and mapserver 6.4. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stiramdasu at lp360.com Thu Nov 14 14:06:21 2013 From: stiramdasu at lp360.com (Sowmya Tiramdasu) Date: Thu, 14 Nov 2013 22:06:21 +0000 Subject: [mapserver-users] GetCapabilities always returning version 1.3.0 Message-ID: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> Hi, I have mapserver configured on my IIS server. I configured a project on it . My mapfile looks like this : MAP IMAGETYPE PNG EXTENT -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. SIZE 1000 800 SHAPEPATH "C:\data" SYMBOLSET "../symbols/symbols35.sym" TRANSPARENT ON CONFIG "PROJ_LIB" "../proj/nad" IMAGECOLOR 0 0 0 FONTSET "../fonts/fonts.list" PROJECTION "init=epsg:4326" END WEB IMAGEPATH "C:/inetpub/wwwroot/Images/" IMAGEURL "http://localhost/Images/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map&" "wms_srs" "epsg:4326" END END CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" LAYER NAME "MadisonBoundariesDefault" TYPE RASTER STATUS ON CONNECTION "http://localhost/Sheridan/Default.aspx?PROJECT=Madison" CONNECTIONTYPE WMS #OPACITY 50 METADATA "wms_srs" "EPSG:4326 EPSG:26916 " "wms_name" "Boundaries" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "Default" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_latlonboundingbox" "-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302" "wms_extent" "5110296.9 557718.4 5122127.3 562697.3 " "wms_width" "1024" "wms_height" "1024" END ...... DEBUG 5 END END. Now, when I do a get capabilities call on this, This is what I get: http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&SERVICE=WMS&REQUEST=GetCapabilities WMS ]> I am confused what is my actual WMS version. Any help would be greatly appreciated. PS: when I do a getMap request in 1.1.1 version specifications , it works fine. But when I try to do a call in 1.3.0 specification I get the following error : "msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." Thanks, _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Thu Nov 14 15:23:23 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 14 Nov 2013 23:23:23 +0000 Subject: [mapserver-users] GetCapabilities always returning version 1.3.0 In-Reply-To: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> Message-ID: <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> WMS standard says about version number negotiation "A WMS client may negotiate with a server to determine a mutually agreeable protocol version. Negotiation isperformed using the GetCapabilities operation (described in 7.2) according to the following rules. All service metadata shall include a protocol version number and shall comply with the XML DTD or Schema defined for that version. In response to a GetCapabilities request (for which the VERSION parameter is optional)that does not specify a version number, the server shall respond with the highest version it supports. In responseto a GetCapabilities request containing a version number that the server implements, the server shall send that version. If the server does not support the requested version, the server shall respond with output that conforms to a version it does support, as determined by the following rules: - If a version unknown to the server and higher than the lowest supported version is requested, the server shallsend the highest version it supports that is less than the requested version. - If a version lower than any of those known to the server is requested, then the server shall send the lowest version it supports. - If the client does not support the version sent by theserver, it may either cease communicating with the server or send a new request with a different version number that the client does support Thus, you ask GetCapabilities without version and you get the highest supported (1.3) and so far everything is all right. But I wonder why people want to drop version out of the request because it really tends to make more trouble thatn good. Next thing is that you have misunderstood the meaning of "wmw_server_version". It is used when Mapserver reads data from another WMS server (cascading WMS). There is another metadata item for controlling the version that Mapserver writes into the GetCapabilities and it is "wms_getcapabilities_version" as you can read from http://mapserver.org/ogc/wms_server.html But I do not understand one thing: why doesn't your GetMap in WMS 1.3.0 work. It should, and it does work for me with MS 6.2.1 even I added that faulty metadata item "wms_server_version" "1.1.1" just like you. -Jukka Rahkonen- ________________________________ Sowmya Tiramdasu wrote: Hi, I have mapserver configured on my IIS server. I configured a project on it . My mapfile looks like this : MAP IMAGETYPE PNG EXTENT -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. SIZE 1000 800 SHAPEPATH "C:\data" SYMBOLSET "../symbols/symbols35.sym" TRANSPARENT ON CONFIG "PROJ_LIB" "../proj/nad" IMAGECOLOR 0 0 0 FONTSET "../fonts/fonts.list" PROJECTION "init=epsg:4326" END WEB IMAGEPATH "C:/inetpub/wwwroot/Images/" IMAGEURL "http://localhost/Images/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map&" "wms_srs" "epsg:4326" END END CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" LAYER NAME "MadisonBoundariesDefault" TYPE RASTER STATUS ON CONNECTION "http://localhost/Sheridan/Default.aspx?PROJECT=Madison" CONNECTIONTYPE WMS #OPACITY 50 METADATA "wms_srs" "EPSG:4326 EPSG:26916 " "wms_name" "Boundaries" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "Default" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_latlonboundingbox" "-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302" "wms_extent" "5110296.9 557718.4 5122127.3 562697.3 " "wms_width" "1024" "wms_height" "1024" END ?? DEBUG 5 END END. Now, when I do a get capabilities call on this, This is what I get: http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&SERVICE=WMS&REQUEST=GetCapabilities WMS ]> I am confused what is my actual WMS version. Any help would be greatly appreciated. PS: when I do a getMap request in 1.1.1 version specifications , it works fine. But when I try to do a call in 1.3.0 specification I get the following error : ?msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string).? Thanks, _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From lin at hvenegaard.dk Fri Nov 15 04:48:16 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Fri, 15 Nov 2013 13:48:16 +0100 Subject: [mapserver-users] Using Mapserver as standalone WFS - GetFeature fails In-Reply-To: <84446DEF76453C439E9E97E438E13A631F0882B2@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A631F0882B2@suutari.haapa.mmm.fi> Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADE8B2@hvmex01> Thanks Jukka, I've had multiple problems to deal with in this setup, but I finally got it right :) I had to define a 64 bit DSN, introduce an OVL file, and in it add "feature.STAsBinary() as wkb_geom" to the selection (and set that as my WKB geometry feature), before it worked. The result is public here: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities One thing puzzles me though: If I run request=describefeaturetype on any of the three typename in my setup, it returns its list of attributes as it should. But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? Cheers. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Rahkonen Jukka Sendt: 8. november 2013 15:31 Til: 'mapserver-users at lists.osgeo.org' Emne: Re: [mapserver-users] Using Mapserver as standalone WFS - GetFeature fails Hi, With WFS it is good to start from the basics http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=GetCapabilities http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=DescribeFeatureType&typename=xxxx http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=getfeature&typename=xxxx&maxfeatures=10 You said you have done all of this. Only simple thing that comes to my mind is to check if your typename really is "GO_Punkter". It may be if it takes the name from "ows_title" and you can check it from GetCapabilities. There is also "wfs_name" metadata item for setting the typename. -Jukka Rahkonen- Lars I. Nielsen wrote: Hi again, I'm trying to access a handful of tables in an MS/SQL 2008 database, using a Mapserver as a standalone WFS server. I'm attempting to use the OGR method, as the mssql2008 plugin fails to load for some reason. I managed to get it to respond to GetCapabilities and DescribeTypeName request, but GetFeature requests fails completely. My request is as follows: http://localhost/mswfs/mapserv.exe?map=WFS.map&service=WFS&version=1.0.0&request=getfeature&typename=GO_Punkter&maxfeatures=10&bbox=711500,6183000,712500,6184000 The layer metadata is as follows: METADATA "ows_title" "GO_Punkter" "ows_srs" "EPSG:25832" "wfs_include_items" "all" "gml_featureid" "MI_PRINX" "wfs_enable_request" "*" "gml_types" "auto" "ows_extent" "700000 6170000 720000 6190000" END My layer is defined as follows: TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);" The error I get in the Mapserver error log is as follows: CGI Request 1 on process 6252 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `GO_Punkter'. File not found or unsupported format. msWFSGetFeature(): WFS server error. ms_error->code not found mapserv request processing time (msLoadMap not incl.): 0.018s msFreeMap(): freeing map at 01628CF8. I read that I could debug the connection using "ogrinfo.exe -al", but that works perfectly, and returns all features: C:\Mapserver.640>ogrinfo -al "MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);" INFO: Open of `MSSQL:Server=xxxxxxxxxxxxxxxxxxxxx,1433;Database=xxxxxxxxxxxxxxxxxxxxxx;UID=xxxxxxxxx;PWD=xxxxxxx;Trusted_Connection=No;Tables=D00001_POINTS(feature);' using driver `MSSQLSpatial' successful. Layer name: D00001_POINTS Geometry: Unknown (any) Feature Count: 33541 Extent: (705463.862800, 6177660.915000) - (715176.650800, 6184543.444000) Layer SRS WKT: PROJCS["ETRS89 / UTM zone 32N", GEOGCS["ETRS89", DATUM["European_Terrestrial_Reference_System_1989", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6258"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4258"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AXIS["Easting",EAST], AXIS["Northing",NORTH], AUTHORITY["EPSG","25832"]] FID Column = MI_PRINX Geometry Column = feature valid_from: DateTime (23.0) valid_to: DateTime (23.0) sectioncode: String (50.0) element_code: String (10.0) element_subcode: String (50.0) carename: String (50.0) mi_style: String (250.0) symbology: String (8000.0) labeltext: String (250.0) OGRFeature(D00001_POINTS):1 valid_from (DateTime) = (null) valid_to (DateTime) = (null) sectioncode (String) = 03-001-001-009 element_code (String) = 7e element_subcode (String) = Legeudstyr carename (String) = (null) mi_style (String) = Symbol (36,12615935,8,"Map Symbols",0,0) symbology (String) = (null) labeltext (String) = (null) etc. etc. Can anyone point me towards a solution for this issue ? Am I missing something obvious here ? Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Evans at hill.af.mil Fri Nov 15 05:18:06 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Fri, 15 Nov 2013 05:18:06 -0800 (PST) Subject: [mapserver-users] Beeldblad client and MapCache Message-ID: <1384521486176-5089355.post@n6.nabble.com> Hi, I'm trying to get MapCache working, and one of the clients I'm hitting it with is the Beeldblad.swf shockwave sample. Apparently beeldblad doesn't like the GetCapabilities that comes back from MapCache because it never displays the list of available layers. Has anyone worked through configuring the MapCache.xml to return something that will satisfy Beeldblad? Any help would be appreciated. Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Beeldblad-client-and-MapCache-tp5089355.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stiramdasu at lp360.com Fri Nov 15 06:31:07 2013 From: stiramdasu at lp360.com (Sowmya Tiramdasu) Date: Fri, 15 Nov 2013 14:31:07 +0000 Subject: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 In-Reply-To: <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> Message-ID: <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> Hi Rahkonen, Thank you very much for your explanation. I know understand how it is working. But, I am still confused about why it is not working when I make a call with 1.3.0 specifications. I am getting this error : "msBuildWMSLayerURL(): WMS connection error. Map Server supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." But the GetCapabilities returns the default supported version as 1.3.0. Any more suggestions on ideas on why this is happening will be greatly appreciated. Thanks, Sowmya. -----Original Message----- From: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sent: Thursday, November 14, 2013 5:23 PM To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org Subject: VS: GetCapabilities always returning version 1.3.0 WMS standard says about version number negotiation "A WMS client may negotiate with a server to determine a mutually agreeable protocol version. Negotiation isperformed using the GetCapabilities operation (described in 7.2) according to the following rules. All service metadata shall include a protocol version number and shall comply with the XML DTD or Schema defined for that version. In response to a GetCapabilities request (for which the VERSION parameter is optional)that does not specify a version number, the server shall respond with the highest version it supports. In responseto a GetCapabilities request containing a version number that the server implements, the server shall send that version. If the server does not support the requested version, the server shall respond with output that conforms to a version it does support, as determined by the following rules: - If a version unknown to the server and higher than the lowest supported version is requested, the server shallsend the highest version it supports that is less than the requested version. - If a version lower than any of those known to the server is requested, then the server shall send the lowest version it supports. - If the client does not support the version sent by theserver, it may either cease communicating with the server or send a new request with a different version number that the client does support Thus, you ask GetCapabilities without version and you get the highest supported (1.3) and so far everything is all right. But I wonder why people want to drop version out of the request because it really tends to make more trouble thatn good. Next thing is that you have misunderstood the meaning of "wmw_server_version". It is used when Mapserver reads data from another WMS server (cascading WMS). There is another metadata item for controlling the version that Mapserver writes into the GetCapabilities and it is "wms_getcapabilities_version" as you can read from http://mapserver.org/ogc/wms_server.html But I do not understand one thing: why doesn't your GetMap in WMS 1.3.0 work. It should, and it does work for me with MS 6.2.1 even I added that faulty metadata item "wms_server_version" "1.1.1" just like you. -Jukka Rahkonen- ________________________________ Sowmya Tiramdasu wrote: Hi, I have mapserver configured on my IIS server. I configured a project on it . My mapfile looks like this : MAP IMAGETYPE PNG EXTENT -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. SIZE 1000 800 SHAPEPATH "C:\data" SYMBOLSET "../symbols/symbols35.sym" TRANSPARENT ON CONFIG "PROJ_LIB" "../proj/nad" IMAGECOLOR 0 0 0 FONTSET "../fonts/fonts.list" PROJECTION "init=epsg:4326" END WEB IMAGEPATH "C:/inetpub/wwwroot/Images/" IMAGEURL "http://localhost/Images/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map&" "wms_srs" "epsg:4326" END END CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" LAYER NAME "MadisonBoundariesDefault" TYPE RASTER STATUS ON CONNECTION "http://localhost/Sheridan/Default.aspx?PROJECT=Madison" CONNECTIONTYPE WMS #OPACITY 50 METADATA "wms_srs" "EPSG:4326 EPSG:26916 " "wms_name" "Boundaries" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "Default" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_latlonboundingbox" "-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302" "wms_extent" "5110296.9 557718.4 5122127.3 562697.3 " "wms_width" "1024" "wms_height" "1024" END ...... DEBUG 5 END END. Now, when I do a get capabilities call on this, This is what I get: http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&SERVICE=WMS&REQUEST=GetCapabilities WMS ]> I am confused what is my actual WMS version. Any help would be greatly appreciated. PS: when I do a getMap request in 1.1.1 version specifications , it works fine. But when I try to do a call in 1.3.0 specification I get the following error : "msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." Thanks, _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From dmorissette at mapgears.com Fri Nov 15 06:41:38 2013 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 15 Nov 2013 09:41:38 -0500 Subject: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 In-Reply-To: <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> Message-ID: <528632A2.8020500@mapgears.com> On 13-11-15 9:31 AM, Sowmya Tiramdasu wrote: > Hi Rahkonen, > > Thank you very much for your explanation. I know understand how it is working. But, I am still confused about why it is not working when I make a call with 1.3.0 specifications. > > I am getting this error : "msBuildWMSLayerURL(): WMS connection error. Map Server supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." > > But the GetCapabilities returns the default supported version as 1.3.0. Any more suggestions on ideas on why this is happening will be greatly appreciated. > > Thanks, > Sowmya. You seem to be mixing two things: 1- The error above is returned by the CONNECTIONTYPE WMS code (i.e. using MapServer as a WMS client) which is indeed supported only for WMS 1.0 or 1.1. This error message could definitely be improved to make it more obvious that it applies only to CONNECTIONTYPE WMS. 2- The GetCapabilities is MapServer acting as a *server* for other remote clients, and in this case 1.3.0 is supported. I am not sure what you are trying to achieve (I missed the beginning of the thread), but you should probably take a few minutes to re-read Jukka's explanation in light of the two points above. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From stiramdasu at lp360.com Fri Nov 15 11:18:37 2013 From: stiramdasu at lp360.com (Sowmya Tiramdasu) Date: Fri, 15 Nov 2013 19:18:37 +0000 Subject: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 In-Reply-To: <528632A2.8020500@mapgears.com> References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> <528632A2.8020500@mapgears.com> Message-ID: Hi Daniel, Thanks for your reply. Now , I understand the difference. I kept the version number as 1.1.1 for the WMS layers ( i.e Mapserver is acting like a client here and it is making a 1.1.1 version WMS call) - Now , I am making a WMS call to my mapserver which is acting like a server with 1.3.0 specification : It does not throw any error , but I also do not see any output. If I go in to the log file and look, I see that it has not made any WMS call to retrieve the WMS layer I was requesting for. http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&layers=MadisonTINAllElevation&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&FORMAT=image/png&BBOX=-88.12389834102549,33.87450079156257,-84.72000992109749,35.62513193645572 LOGFILE : [Fri Nov 15 13:19:25 2013].513000 CGI Request 3 on process 13972 [Fri Nov 15 13:19:25 2013].513000 msWMSLoadGetMapParams(): enabling non-square pixels. [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): kicking into non-square pixel preserving mode. [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): Layer 1 (MadisonTinAllElevation), 0.000s [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): Drawing Label Cache, 0.000s [Fri Nov 15 13:19:25 2013].516000 msDrawMap() total time: 0.003s [Fri Nov 15 13:19:25 2013].578000 msSaveImage(stdout) total time: 0.062s [Fri Nov 15 13:19:25 2013].578000 mapserv request processing time (msLoadMap not incl.): 0.065s -But if I do the same call with 1.1.1 specification, I get the result back. http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&layers=MadisonTINAllElevation&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&FORMAT=image/png&BBOX=-88.12389834102549,33.87450079156257,-84.72000992109749,35.62513193645572 LOGFILE : [Fri Nov 15 13:16:36 2013].276000 CGI Request 1 on process 13972 [Fri Nov 15 13:16:36 2013].276000 msWMSLoadGetMapParams(): enabling non-square pixels. [Fri Nov 15 13:16:36 2013].278000 msDrawMap(): kicking into non-square pixel preserving mode. [Fri Nov 15 13:16:36 2013].279000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri Nov 15 13:16:36 2013].281000 HTTP: Starting to prepare HTTP requests. [Fri Nov 15 13:16:36 2013].281000 HTTP request: id=1, http://localhost/Sheridan/Default.aspx?PROJECT=Madison&LAYERS=TIN&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&STYLES=AllElevation&HEIGHT=1024&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=1024&BBOX=-88.125560395918,33.8736459911988,-84.7183478662049,35.6259867368194&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml [Fri Nov 15 13:16:36 2013].281000 HTTP: Before download loop [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16177 bytes) [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16384 bytes) [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16384 bytes) [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16384 bytes) [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 10273 bytes) [Fri Nov 15 13:16:39 2013].454000 HTTP: After download loop [Fri Nov 15 13:16:39 2013].454000 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) [Fri Nov 15 13:16:39 2013].454000 Layer 1: 0.016 + 3.167 + 0.016 = 3.199s [Fri Nov 15 13:16:39 2013].454000 msDrawMap(): WMS/WFS set-up and query, 3.175s [Fri Nov 15 13:16:39 2013].456000 msDrawRasterLayerLow(MadisonTinAllElevation): entering. [Fri Nov 15 13:16:39 2013].456000 msResampleGDALToMap(): LOAD_WHOLE_IMAGE set, loading whole image. [Fri Nov 15 13:16:39 2013].456000 msResampleGDALToMap in effect: cellsize = 0.003331 [Fri Nov 15 13:16:39 2013].458000 msDrawGDAL(MadisonTinAllElevation): using RAW_WINDOW=0 0 1024 1024, dst=0,0,1024,1024 [Fri Nov 15 13:16:39 2013].458000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,4 [Fri Nov 15 13:16:39 2013].506000 msDrawMap(): Layer 1 (MadisonTinAllElevation), 0.052s [Fri Nov 15 13:16:39 2013].506000 msDrawMap(): Drawing Label Cache, 0.000s [Fri Nov 15 13:16:39 2013].506000 msDrawMap() total time: 3.230s [Fri Nov 15 13:16:39 2013].577000 msSaveImage(stdout) total time: 0.071s [Fri Nov 15 13:16:39 2013].577000 mapserv request processing time (msLoadMap not incl.): 3.301s [Fri Nov 15 13:16:39 2013].577000 msFreeMap(): freeing map at 0000000000422060. [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 000000000042BB20. [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 000000000042CD30. ........... Note : For both these requests , there is only change in the specification (i.e the URL ) but no change in the map file . The map file used in both cases is : MAP IMAGETYPE PNG EXTENT -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. SIZE 1000 800 SHAPEPATH "C:\data" SYMBOLSET "../symbols/symbols35.sym" TRANSPARENT ON CONFIG "PROJ_LIB" "../proj/nad" IMAGECOLOR 0 0 0 FONTSET "../fonts/fonts.list" PROJECTION "init=epsg:4326" END WEB IMAGEPATH "C:/inetpub/wwwroot/Images/" IMAGEURL "http://localhost/Images/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map&" "wms_srs" "epsg:4326" END END CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" LAYER NAME "MadisonTinAllElevation" TYPE RASTER STATUS ON CONNECTION "http://localhost/Sheridan/Default.aspx?PROJECT=Madison" CONNECTIONTYPE WMS #OPACITY 50 METADATA "wms_srs" "EPSG:4326 EPSG:26916 " "wms_name" "TIN" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "AllElevation" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_latlonboundingbox" "-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302" "wms_extent" "5110296.9 557718.4 5122127.3 562697.3 " "wms_width" "1024" "wms_height" "1024" END PROJECTION "init=epsg:26916" END DEBUG 5 END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Friday, November 15, 2013 8:42 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 On 13-11-15 9:31 AM, Sowmya Tiramdasu wrote: > Hi Rahkonen, > > Thank you very much for your explanation. I know understand how it is working. But, I am still confused about why it is not working when I make a call with 1.3.0 specifications. > > I am getting this error : "msBuildWMSLayerURL(): WMS connection error. Map Server supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." > > But the GetCapabilities returns the default supported version as 1.3.0. Any more suggestions on ideas on why this is happening will be greatly appreciated. > > Thanks, > Sowmya. You seem to be mixing two things: 1- The error above is returned by the CONNECTIONTYPE WMS code (i.e. using MapServer as a WMS client) which is indeed supported only for WMS 1.0 or 1.1. This error message could definitely be improved to make it more obvious that it applies only to CONNECTIONTYPE WMS. 2- The GetCapabilities is MapServer acting as a *server* for other remote clients, and in this case 1.3.0 is supported. I am not sure what you are trying to achieve (I missed the beginning of the thread), but you should probably take a few minutes to re-read Jukka's explanation in light of the two points above. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Fri Nov 15 13:03:21 2013 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 15 Nov 2013 16:03:21 -0500 Subject: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 In-Reply-To: References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> <528632A2.8020500@mapgears.com> Message-ID: <52868C19.3050002@mapgears.com> Hi Sowmya, You're almost there. The last issue you're having (i.e. WMS 1.3.0 returning an empty map) is probably related to the coordinate order in the BBOX param of your WMS 1.3.0 request. You're not the first to be hit by this "feature" of WMS 1.3.0. Welcome to the club! :-) A more complete explanation is available here: http://dmorissette.blogspot.ca/2012/12/dont-upgrade-to-wms-130-unless-you.html Daniel On 13-11-15 2:18 PM, Sowmya Tiramdasu wrote: > Hi Daniel, > > Thanks for your reply. Now , I understand the difference. > > I kept the version number as 1.1.1 for the WMS layers ( i.e Mapserver is acting like a client here and it is making a 1.1.1 version WMS call) > > - Now , I am making a WMS call to my mapserver which is acting like a server with 1.3.0 specification : It does not throw any error , but I also do not see any output. If I go in to the log file and look, I see that it has not made any WMS call to retrieve the WMS layer I was requesting for. > http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&layers=MadisonTINAllElevation&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&FORMAT=image/png&BBOX=-88.12389834102549,33.87450079156257,-84.72000992109749,35.62513193645572 > LOGFILE : > [Fri Nov 15 13:19:25 2013].513000 CGI Request 3 on process 13972 > [Fri Nov 15 13:19:25 2013].513000 msWMSLoadGetMapParams(): enabling non-square pixels. > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): kicking into non-square pixel preserving mode. > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): rendering using outputformat named png (AGG/PNG). > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): WMS/WFS set-up and query, 0.000s > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): Layer 1 (MadisonTinAllElevation), 0.000s > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): Drawing Label Cache, 0.000s > [Fri Nov 15 13:19:25 2013].516000 msDrawMap() total time: 0.003s > [Fri Nov 15 13:19:25 2013].578000 msSaveImage(stdout) total time: 0.062s > [Fri Nov 15 13:19:25 2013].578000 mapserv request processing time (msLoadMap not incl.): 0.065s > > > -But if I do the same call with 1.1.1 specification, I get the result back. > http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&layers=MadisonTINAllElevation&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&FORMAT=image/png&BBOX=-88.12389834102549,33.87450079156257,-84.72000992109749,35.62513193645572 > > LOGFILE : > [Fri Nov 15 13:16:36 2013].276000 CGI Request 1 on process 13972 > [Fri Nov 15 13:16:36 2013].276000 msWMSLoadGetMapParams(): enabling non-square pixels. > [Fri Nov 15 13:16:36 2013].278000 msDrawMap(): kicking into non-square pixel preserving mode. > [Fri Nov 15 13:16:36 2013].279000 msDrawMap(): rendering using outputformat named png (AGG/PNG). > [Fri Nov 15 13:16:36 2013].281000 HTTP: Starting to prepare HTTP requests. > [Fri Nov 15 13:16:36 2013].281000 HTTP request: id=1, http://localhost/Sheridan/Default.aspx?PROJECT=Madison&LAYERS=TIN&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&STYLES=AllElevation&HEIGHT=1024&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=1024&BBOX=-88.125560395918,33.8736459911988,-84.7183478662049,35.6259867368194&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml > [Fri Nov 15 13:16:36 2013].281000 HTTP: Before download loop > [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16177 bytes) > [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16384 bytes) > [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16384 bytes) > [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 16384 bytes) > [Fri Nov 15 13:16:39 2013].454000 msHTTPWriteFct(id=1, 10273 bytes) > [Fri Nov 15 13:16:39 2013].454000 HTTP: After download loop > [Fri Nov 15 13:16:39 2013].454000 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) > [Fri Nov 15 13:16:39 2013].454000 Layer 1: 0.016 + 3.167 + 0.016 = 3.199s > [Fri Nov 15 13:16:39 2013].454000 msDrawMap(): WMS/WFS set-up and query, 3.175s > [Fri Nov 15 13:16:39 2013].456000 msDrawRasterLayerLow(MadisonTinAllElevation): entering. > [Fri Nov 15 13:16:39 2013].456000 msResampleGDALToMap(): LOAD_WHOLE_IMAGE set, loading whole image. > [Fri Nov 15 13:16:39 2013].456000 msResampleGDALToMap in effect: cellsize = 0.003331 > [Fri Nov 15 13:16:39 2013].458000 msDrawGDAL(MadisonTinAllElevation): using RAW_WINDOW=0 0 1024 1024, dst=0,0,1024,1024 > [Fri Nov 15 13:16:39 2013].458000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,4 > [Fri Nov 15 13:16:39 2013].506000 msDrawMap(): Layer 1 (MadisonTinAllElevation), 0.052s > [Fri Nov 15 13:16:39 2013].506000 msDrawMap(): Drawing Label Cache, 0.000s > [Fri Nov 15 13:16:39 2013].506000 msDrawMap() total time: 3.230s > [Fri Nov 15 13:16:39 2013].577000 msSaveImage(stdout) total time: 0.071s > [Fri Nov 15 13:16:39 2013].577000 mapserv request processing time (msLoadMap not incl.): 3.301s > [Fri Nov 15 13:16:39 2013].577000 msFreeMap(): freeing map at 0000000000422060. > [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 000000000042BB20. > [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 000000000042CD30. > ........... > > Note : For both these requests , there is only change in the specification (i.e the URL ) but no change in the map file . > > The map file used in both cases is : > MAP > IMAGETYPE PNG > EXTENT -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. > SIZE 1000 800 > SHAPEPATH "C:\data" > SYMBOLSET "../symbols/symbols35.sym" > TRANSPARENT ON > CONFIG "PROJ_LIB" "../proj/nad" > IMAGECOLOR 0 0 0 > FONTSET "../fonts/fonts.list" > PROJECTION > "init=epsg:4326" > END > WEB > IMAGEPATH "C:/inetpub/wwwroot/Images/" > IMAGEURL "http://localhost/Images/" > METADATA > "wms_enable_request" "*" > "wms_title" "WMS Lidar Server" > "wms_onlineresource" "http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map&" > "wms_srs" "epsg:4326" > END > END > > CONFIG "CPL_DEBUG" "ON" > CONFIG "PROJ_DEBUG" "ON" > > LAYER > NAME "MadisonTinAllElevation" > TYPE RASTER > STATUS ON > CONNECTION "http://localhost/Sheridan/Default.aspx?PROJECT=Madison" > CONNECTIONTYPE WMS > #OPACITY 50 > METADATA > "wms_srs" "EPSG:4326 EPSG:26916 " > "wms_name" "TIN" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_style" "AllElevation" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > "wms_latlonboundingbox" "-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302" > "wms_extent" "5110296.9 557718.4 5122127.3 562697.3 " > "wms_width" "1024" > "wms_height" "1024" > END > > PROJECTION > "init=epsg:26916" > END > DEBUG 5 > END > END > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette > Sent: Friday, November 15, 2013 8:42 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 > > On 13-11-15 9:31 AM, Sowmya Tiramdasu wrote: >> Hi Rahkonen, >> >> Thank you very much for your explanation. I know understand how it is working. But, I am still confused about why it is not working when I make a call with 1.3.0 specifications. >> >> I am getting this error : "msBuildWMSLayerURL(): WMS connection error. Map Server supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." >> >> But the GetCapabilities returns the default supported version as 1.3.0. Any more suggestions on ideas on why this is happening will be greatly appreciated. >> >> Thanks, >> Sowmya. > > > > You seem to be mixing two things: > > 1- The error above is returned by the CONNECTIONTYPE WMS code (i.e. > using MapServer as a WMS client) which is indeed supported only for WMS > 1.0 or 1.1. This error message could definitely be improved to make it more obvious that it applies only to CONNECTIONTYPE WMS. > > 2- The GetCapabilities is MapServer acting as a *server* for other remote clients, and in this case 1.3.0 is supported. > > I am not sure what you are trying to achieve (I missed the beginning of the thread), but you should probably take a few minutes to re-read Jukka's explanation in light of the two points above. > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From stiramdasu at lp360.com Fri Nov 15 13:50:36 2013 From: stiramdasu at lp360.com (Sowmya Tiramdasu) Date: Fri, 15 Nov 2013 21:50:36 +0000 Subject: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 In-Reply-To: <52868C19.3050002@mapgears.com> References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> <528632A2.8020500@mapgears.com> <52868C19.3050002@mapgears.com> Message-ID: <15f9200f18b34ac9825940ae826806bb@BLUPR01MB082.prod.exchangelabs.com> Hi Daniel, Thank you very much. You are a life saver. I was breaking my head all day not understanding what's happening. I just changed the axis order and it worked!! Thanks again, appreciate all the help. Sowmya. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Friday, November 15, 2013 3:03 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 Hi Sowmya, You're almost there. The last issue you're having (i.e. WMS 1.3.0 returning an empty map) is probably related to the coordinate order in the BBOX param of your WMS 1.3.0 request. You're not the first to be hit by this "feature" of WMS 1.3.0. Welcome to the club! :-) A more complete explanation is available here: http://dmorissette.blogspot.ca/2012/12/dont-upgrade-to-wms-130-unless-you.html Daniel On 13-11-15 2:18 PM, Sowmya Tiramdasu wrote: > Hi Daniel, > > Thanks for your reply. Now , I understand the difference. > > I kept the version number as 1.1.1 for the WMS layers ( i.e Mapserver > is acting like a client here and it is making a 1.1.1 version WMS > call) > > - Now , I am making a WMS call to my mapserver which is acting like a server with 1.3.0 specification : It does not throw any error , but I also do not see any output. If I go in to the log file and look, I see that it has not made any WMS call to retrieve the WMS layer I was requesting for. > http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&layers=Madi > sonTINAllElevation&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4 > 326&WIDTH=1024&HEIGHT=1024&FORMAT=image/png&BBOX=-88.12389834102549,33 > .87450079156257,-84.72000992109749,35.62513193645572 > LOGFILE : > [Fri Nov 15 13:19:25 2013].513000 CGI Request 3 on process 13972 [Fri > Nov 15 13:19:25 2013].513000 msWMSLoadGetMapParams(): enabling non-square pixels. > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): kicking into non-square pixel preserving mode. > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): rendering using outputformat named png (AGG/PNG). > [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): WMS/WFS set-up and > query, 0.000s [Fri Nov 15 13:19:25 2013].516000 msDrawMap(): Layer 1 > (MadisonTinAllElevation), 0.000s [Fri Nov 15 13:19:25 2013].516000 > msDrawMap(): Drawing Label Cache, 0.000s [Fri Nov 15 13:19:25 > 2013].516000 msDrawMap() total time: 0.003s [Fri Nov 15 13:19:25 > 2013].578000 msSaveImage(stdout) total time: 0.062s [Fri Nov 15 > 13:19:25 2013].578000 mapserv request processing time (msLoadMap not > incl.): 0.065s > > > -But if I do the same call with 1.1.1 specification, I get the result back. > http://localhost/Mapserver/mapserv.exe?map=Map/Madison.map&layers=Madi > sonTINAllElevation&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4 > 326&WIDTH=1024&HEIGHT=1024&FORMAT=image/png&BBOX=-88.12389834102549,33 > .87450079156257,-84.72000992109749,35.62513193645572 > > LOGFILE : > [Fri Nov 15 13:16:36 2013].276000 CGI Request 1 on process 13972 [Fri > Nov 15 13:16:36 2013].276000 msWMSLoadGetMapParams(): enabling non-square pixels. > [Fri Nov 15 13:16:36 2013].278000 msDrawMap(): kicking into non-square pixel preserving mode. > [Fri Nov 15 13:16:36 2013].279000 msDrawMap(): rendering using outputformat named png (AGG/PNG). > [Fri Nov 15 13:16:36 2013].281000 HTTP: Starting to prepare HTTP requests. > [Fri Nov 15 13:16:36 2013].281000 HTTP request: id=1, > http://localhost/Sheridan/Default.aspx?PROJECT=Madison&LAYERS=TIN&REQU > EST=GetMap&SERVICE=WMS&FORMAT=image/png&STYLES=AllElevation&HEIGHT=102 > 4&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=1024&BBOX=-88.125560395918,33.8736 > 459911988,-84.7183478662049,35.6259867368194&TRANSPARENT=TRUE&EXCEPTIO > NS=application/vnd.ogc.se_xml [Fri Nov 15 13:16:36 2013].281000 HTTP: > Before download loop [Fri Nov 15 13:16:39 2013].454000 > msHTTPWriteFct(id=1, 16177 bytes) [Fri Nov 15 13:16:39 2013].454000 > msHTTPWriteFct(id=1, 16384 bytes) [Fri Nov 15 13:16:39 2013].454000 > msHTTPWriteFct(id=1, 16384 bytes) [Fri Nov 15 13:16:39 2013].454000 > msHTTPWriteFct(id=1, 16384 bytes) [Fri Nov 15 13:16:39 2013].454000 > msHTTPWriteFct(id=1, 10273 bytes) [Fri Nov 15 13:16:39 2013].454000 > HTTP: After download loop [Fri Nov 15 13:16:39 2013].454000 > msHTTPExecuteRequests() timing summary per layer (connect_time + > time_to_first_packet + download_time = total_time in seconds) [Fri Nov > 15 13:16:39 2013].454000 Layer 1: 0.016 + 3.167 + 0.016 = 3.199s [Fri > Nov 15 13:16:39 2013].454000 msDrawMap(): WMS/WFS set-up and query, 3.175s [Fri Nov 15 13:16:39 2013].456000 msDrawRasterLayerLow(MadisonTinAllElevation): entering. > [Fri Nov 15 13:16:39 2013].456000 msResampleGDALToMap(): LOAD_WHOLE_IMAGE set, loading whole image. > [Fri Nov 15 13:16:39 2013].456000 msResampleGDALToMap in effect: > cellsize = 0.003331 [Fri Nov 15 13:16:39 2013].458000 > msDrawGDAL(MadisonTinAllElevation): using RAW_WINDOW=0 0 1024 1024, > dst=0,0,1024,1024 [Fri Nov 15 13:16:39 2013].458000 > msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,4 [Fri Nov > 15 13:16:39 2013].506000 msDrawMap(): Layer 1 > (MadisonTinAllElevation), 0.052s [Fri Nov 15 13:16:39 2013].506000 > msDrawMap(): Drawing Label Cache, 0.000s [Fri Nov 15 13:16:39 > 2013].506000 msDrawMap() total time: 3.230s [Fri Nov 15 13:16:39 2013].577000 msSaveImage(stdout) total time: 0.071s [Fri Nov 15 13:16:39 2013].577000 mapserv request processing time (msLoadMap not incl.): 3.301s [Fri Nov 15 13:16:39 2013].577000 msFreeMap(): freeing map at 0000000000422060. > [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 000000000042BB20. > [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 000000000042CD30. > ........... > > Note : For both these requests , there is only change in the specification (i.e the URL ) but no change in the map file . > > The map file used in both cases is : > MAP > IMAGETYPE PNG > EXTENT -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. > SIZE 1000 800 > SHAPEPATH "C:\data" > SYMBOLSET "../symbols/symbols35.sym" > TRANSPARENT ON > CONFIG "PROJ_LIB" "../proj/nad" > IMAGECOLOR 0 0 0 > FONTSET "../fonts/fonts.list" > PROJECTION > "init=epsg:4326" > END > WEB > IMAGEPATH "C:/inetpub/wwwroot/Images/" > IMAGEURL "http://localhost/Images/" > METADATA > "wms_enable_request" "*" > "wms_title" "WMS Lidar Server" > "wms_onlineresource" "http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map&" > "wms_srs" "epsg:4326" > END > END > > CONFIG "CPL_DEBUG" "ON" > CONFIG "PROJ_DEBUG" "ON" > > LAYER > NAME "MadisonTinAllElevation" > TYPE RASTER > STATUS ON > CONNECTION "http://localhost/Sheridan/Default.aspx?PROJECT=Madison" > CONNECTIONTYPE WMS > #OPACITY 50 > METADATA > "wms_srs" "EPSG:4326 EPSG:26916 " > "wms_name" "TIN" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_style" "AllElevation" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > "wms_latlonboundingbox" "-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302" > "wms_extent" "5110296.9 557718.4 5122127.3 562697.3 " > "wms_width" "1024" > "wms_height" "1024" > END > > PROJECTION > "init=epsg:26916" > END > DEBUG 5 > END > END > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel > Morissette > Sent: Friday, November 15, 2013 8:42 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] FW: GetCapabilities always returning > version 1.3.0 > > On 13-11-15 9:31 AM, Sowmya Tiramdasu wrote: >> Hi Rahkonen, >> >> Thank you very much for your explanation. I know understand how it is working. But, I am still confused about why it is not working when I make a call with 1.3.0 specifications. >> >> I am getting this error : "msBuildWMSLayerURL(): WMS connection error. Map Server supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)." >> >> But the GetCapabilities returns the default supported version as 1.3.0. Any more suggestions on ideas on why this is happening will be greatly appreciated. >> >> Thanks, >> Sowmya. > > > > You seem to be mixing two things: > > 1- The error above is returned by the CONNECTIONTYPE WMS code (i.e. > using MapServer as a WMS client) which is indeed supported only for > WMS > 1.0 or 1.1. This error message could definitely be improved to make it more obvious that it applies only to CONNECTIONTYPE WMS. > > 2- The GetCapabilities is MapServer acting as a *server* for other remote clients, and in this case 1.3.0 is supported. > > I am not sure what you are trying to achieve (I missed the beginning of the thread), but you should probably take a few minutes to re-read Jukka's explanation in light of the two points above. > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Evans at hill.af.mil Fri Nov 15 21:01:58 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Fri, 15 Nov 2013 21:01:58 -0800 (PST) Subject: [mapserver-users] Beeldblad client and MapCache In-Reply-To: <1384521486176-5089355.post@n6.nabble.com> References: <1384521486176-5089355.post@n6.nabble.com> Message-ID: <1384578118743-5089459.post@n6.nabble.com> I was able to get the list of available layers to show up in the Beeldblad client, by adding "title" to the metadata in the tileset in the mapchache.xml. Now the problem is the getmap request will not work. Regardless of what I do, the request from the beeldblad.swf does not include the "SERVICE=WMS" parameter. This doesn't seem to bother mapserver (V6.1 -dev from MS4W 3.0.4-dev), but mapcache refuses to return an image if this parameter is not included. Does anyone know if this can be spoofed somehow? Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Beeldblad-client-and-MapCache-tp5089355p5089459.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ken at sandnarrows.com Sat Nov 16 20:18:05 2013 From: ken at sandnarrows.com (K) Date: Sun, 17 Nov 2013 00:18:05 -0400 Subject: [mapserver-users] Need help speeding up my image processing In-Reply-To: <52883DF0.2090807@sandnarrows.com> References: <1c9912ad3bf247f4aacc01e7d449d0bf@BLUPR01MB082.prod.exchangelabs.com> <84446DEF76453C439E9E97E438E13A631F08AFB9@suutari.haapa.mmm.fi> <9e04798e29624412b9d400d6ce174a0e@BLUPR01MB082.prod.exchangelabs.com> <528632A2.8020500@mapgears.com> <52868C19.3050002@mapgears.com> <52883DF0.2090807@sandnarrows.com> Message-ID: <5288437D.2050400@sandnarrows.com> I am using openlayers as my front end, mapserver to process my files to load as WMS layers. I have a bunch of imagery I have divided up into different zoom levels. Two are just single images, both under 100kb in size. Three are loaded via image catalog/index shape file, the top level has images of about 150kb in size, with about 8 images in view. Next level is around 2m in size, about 6 images in view. Lastly is about 3m in size, 4ish images in view. Everything looks good, works well, it is just slow and there does not seem to be much difference in how long it takes to load the imagery at each scale, they are all similarly slow. I am thinking that means it is a process issue and I am probably doing something inefficient that is causing the slowness. Here is my output setup from my map file: OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END Here is an example of my Layer: LAYER NAME "Imagery" STATUS ON TILEINDEX "1m3px/1m3px_imgcat.shp" TILEITEM "location" TYPE RASTER MAXSCALEDENOM 5000 MINSCALEDENOM 2000 END How does this look? Any other info I can provide that would provide more clarity? Thanks, Ken From wal3 at mindspring.com Mon Nov 18 09:08:22 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 18 Nov 2013 12:08:22 -0500 Subject: [mapserver-users] FW: problem with legend images Message-ID: <010210A9867E44E18E5AEF7AC19E4781@worthlaptop> Hi all, I am having a problem generating my legend. I have roads which look gook on my map but the legend images generated are not what I expected. Attached is a picture of a portion of my map and the legend. Each piece of the legend is retrieved with a "getLegendGraphic" call. Has any one else run into this problem with "exploded" legends? Here is one of my classes: CLASS NAME "Interstate Highways" #MAXSCALEDENOM 3000010 MINSCALEDENOM 999 EXPRESSION "I" # Interstates STYLE COLOR 121 0 255 WIDTH 35 MINWIDTH 2 MAXWIDTH 35 END STYLE COLOR 181 51 51 WIDTH 33 MINWIDTH 0 MAXWIDTH 31 END END I get what I was looking for on map but have not figured out how to get the legend to work. My entire layer definition is show below: LAYER NAME "NCDOT-roads" GROUP "NCDOT_transportation_group" STATUS off METADATA wms_title "NCDOT-Roads" wms_srs "EPSG:2264" END TYPE line UNITS pixels DATA NCDOT/shapefiles/LRS_ARCS PROJECTION "init=epsg:2264" # NAD 83 North Carolina (ftUS) END #MAXSCALEDENOM 3000010 MINSCALEDENOM 999 SYMBOLSCALEDENOM 1000 TEMPLATE void CLASSITEM "rte_1_clss" CLASS NAME "Interstate Highways" #MAXSCALEDENOM 3000010 MINSCALEDENOM 999 EXPRESSION "I" # Interstates STYLE COLOR 121 0 255 WIDTH 35 MINWIDTH 2 MAXWIDTH 35 END STYLE COLOR 181 51 51 WIDTH 33 MINWIDTH 0 MAXWIDTH 31 END END CLASS NAME "US Highways" EXPRESSION "US" # US Highways MAXSCALEDENOM 3000010 MINSCALEDENOM 999 STYLE COLOR 121 121 0 WIDTH 35 MINWIDTH 2 MAXWIDTH 35 END STYLE COLOR 181 181 0 WIDTH 31 MINWIDTH 0 MAXWIDTH 31 END END CLASS NAME "NC Highways" EXPRESSION "NC" # NC Highways MAXSCALEDENOM 800001 MINSCALEDENOM 999 STYLE COLOR 181 181 0 WIDTH 22 MINWIDTH 2 MAXWIDTH 22 END END CLASS NAME "State Roads" EXPRESSION "SR" # State Roads MAXSCALEDENOM 70001 MINSCALEDENOM 985 STYLE COLOR 181 181 0 WIDTH 22 MINWIDTH 1 MAXWIDTH 22 END END CLASS NAME "highway ramps" MAXSCALEDENOM 30001 EXPRESSION "RMP" # HWY ramps STYLE COLOR 121 121 0 WIDTH 30 MINWIDTH 1 MAXWIDTH 24 END STYLE COLOR 181 181 0 WIDTH 28 MINWIDTH 0 MAXWIDTH 20 END END END # NCDOT-roads -------------- next part -------------- A non-text attachment was scrubbed... Name: legend_problem_2.JPG Type: image/jpeg Size: 22137 bytes Desc: not available URL: From james.evans.4 at us.af.mil Mon Nov 18 15:31:30 2013 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Mon, 18 Nov 2013 23:31:30 +0000 Subject: [mapserver-users] MapCache GetMap request requires "SERVICE=WMS" Message-ID: <20EA793B1BC710448656BDC9BD25C4A199F15C@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> It seems that MapCache requires "SERVICE=WMS" for a GetMap request. MapServer does not seem to have this same requirement. Should this be considered a bug? I've tried adding "service=wms" to my OnlineResource string in my mapfile with no success. From f.arts at gisarts.nl Tue Nov 19 05:19:05 2013 From: f.arts at gisarts.nl (Fons Arts) Date: Tue, 19 Nov 2013 14:19:05 +0100 Subject: [mapserver-users] pixmap legend Message-ID: <528B6549.6040001@gisarts.nl> Hi list, I trying to overrule a hardcoded legendicon Az (annotation) with a pixmap in the class section. map file LEGEND STATUS on KEYSIZE 26 13 END LAYER CONNECTIONTYPE postgis NAME "bag_adres" GROUP "bag_adres" CONNECTION ************************************************************* DATA "geom from public.bag_adres USING UNIQUE oid" TYPE ANNOTATION TOLERANCE 10 MAXSCALE 3500 MINSCALE 0 STATUS ON LABELITEM "huisnummers" TEMPLATE "blank.html" CLASS NAME 'Huisnummers' * KEYIMAGE "/pixmap/adres.png"* LABEL COLOR 0 0 0 SHADOWCOLOR 255 255 255 TYPE truetype FONT arialvet SIZE 8 POSITION CC PARTIALS FALSE ANTIALIAS TRUE OFFSET 0 0 END END END The result is a white image. thanks in advance. gr Fons -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-51.png Type: image/png Size: 585 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-52.png Type: image/png Size: 522 bytes Desc: not available URL: From adams at terrestris.de Tue Nov 19 05:37:54 2013 From: adams at terrestris.de (Till Adams) Date: Tue, 19 Nov 2013 14:37:54 +0100 Subject: [mapserver-users] pixmap legend In-Reply-To: <528B6549.6040001@gisarts.nl> References: <528B6549.6040001@gisarts.nl> Message-ID: <528B69B2.8020005@terrestris.de> Hi Fons, it looks like mapserver does not find your pixmap-file. You know that the path "/pixmap/..." means, that mapserver looks for this file in the servers root directory? If the pixmap is stored relative to the mapfile, remove the leading "/" in your path: "pixmap/...." Till Am 19.11.2013 14:19, schrieb Fons Arts: > Hi list, > > I trying to overrule a hardcoded legendicon Az (annotation) with a > pixmap in the class section. > > > > map file > LEGEND > STATUS on > KEYSIZE 26 13 > END > > LAYER > CONNECTIONTYPE postgis > NAME "bag_adres" > GROUP "bag_adres" > CONNECTION > ************************************************************* > DATA "geom from public.bag_adres USING UNIQUE oid" > TYPE ANNOTATION > TOLERANCE 10 > MAXSCALE 3500 > MINSCALE 0 > STATUS ON > LABELITEM "huisnummers" > TEMPLATE "blank.html" > CLASS > NAME 'Huisnummers' > * KEYIMAGE "/pixmap/adres.png"* > LABEL > COLOR 0 0 0 > SHADOWCOLOR 255 255 255 > TYPE truetype > FONT arialvet > SIZE 8 > POSITION CC > PARTIALS FALSE > ANTIALIAS TRUE > OFFSET 0 0 > END > END > END > > The result is a white image. > > > > thanks in advance. > gr Fons > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- NEWS: -> map-it.ulm.de! Das Mitmachportal f?r Ulm -> GO Mobile - jetzt WebGIS auch auf Smartphones -> Jetzt OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen ------------------------------------------------ terrestris GmbH & Co. KG Puetzchens Chaussee 56 53227 Bonn Germany Till Adams Geschaeftsfuehrung Tel: +49 (0)228 / 962 899-52 Mobile: +49 (0)151 / 25394429 Fax: +49 (0)228 / 962 899-57 Skype: tilladams adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 ------------------------------------------------ Komplementaerin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From lin at hvenegaard.dk Tue Nov 19 06:16:26 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Tue, 19 Nov 2013 15:16:26 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADEA67@hvmex01> Hi, I got the standalone Mapserver 6.4 x64 up and running, but there are still some issues: If I run "request=describefeaturetype" on any of the three typenames in my setup, it returns its list of attributes as it should. But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? The server is online on this address if anyone wants to have a look: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities DescribeFeatureType that works: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader DescribeFeatureType that doesn't work: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Tue Nov 19 06:58:33 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Nov 2013 14:58:33 +0000 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses In-Reply-To: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADEA67@hvmex01> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADEA67@hvmex01> Message-ID: <84446DEF76453C439E9E97E438E13A631F09C47E@suutari.haapa.mmm.fi> Hi, I can only show how my MS 6.2.1 server reacts http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.0.0&request=DescribeFeatureType -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Lars I. Nielsen [lin at hvenegaard.dk] puolesta L?hetetty: 19. marraskuuta 2013 16:16 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi, I got the standalone Mapserver 6.4 x64 up and running, but there are still some issues: If I run "request=describefeaturetype" on any of the three typenames in my setup, it returns its list of attributes as it should. But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? The server is online on this address if anyone wants to have a look: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities DescribeFeatureType that works: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader DescribeFeatureType that doesn't work: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk From even.rouault at mines-paris.org Tue Nov 19 10:48:58 2013 From: even.rouault at mines-paris.org (Even Rouault) Date: Tue, 19 Nov 2013 19:48:58 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses In-Reply-To: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADEA67@hvmex01> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD66ADEA67@hvmex01> Message-ID: <201311191948.58520.even.rouault@mines-paris.org> Le mardi 19 novembre 2013 15:16:26, Lars I. Nielsen a ?crit : > Hi, > > I got the standalone Mapserver 6.4 x64 up and running, but there are still > some issues: > > > If I run "request=describefeaturetype" on any of the three typenames in my > setup, it returns its list of attributes as it should. > > But if I omit the typename, wanting Mapserver to return a description of > all three typenames (which is a valid request), it only returns the > attributes for the first !?? > > Is this WAD, or is Mapserver forgetting to return attributes for the latter > two typenames (as I suspect) ? What is interestersting is that if you query the 2 other typenames with http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader and http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Linier, the same set of attributes is returned as the first layer. I suspect there's something odd or wrong in your mapfile. I cannot imagine what it is, but if you don't find by yourself, posting it could perhaps give us some inspiration > > > The server is online on this address if anyone wants to have a look: > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&vers > ion=1.0.0&request=getcapabilities > > DescribeFeatureType that works: > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&ver > sion=1.0.0&request=describefeaturetype&typename=GO_Flader > > DescribeFeatureType that doesn't work: > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&ver > sion=1.0.0&request=describefeaturetype > > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent > Hvenegaard og Jens Bo Landinspekt?rer A/S > Rugaardsvej 55, DK-5000 Odense C > Denmark > Tel. +45 6313 5050 > http://www.hvenegaard.dk -- Geospatial professional services http://even.rouault.free.fr/services.html From f.arts at gisarts.nl Tue Nov 19 11:40:55 2013 From: f.arts at gisarts.nl (Fons Arts) Date: Tue, 19 Nov 2013 20:40:55 +0100 Subject: [mapserver-users] pixmap legend In-Reply-To: <528B6549.6040001@gisarts.nl> References: <528B6549.6040001@gisarts.nl> Message-ID: <528BBEC7.8080507@gisarts.nl> Hi Till, Thanks for your quick response. The path is not the problem. I've tried several variations without any success. I debugged in the layer section but that doesn't give any result. "REQUEST=GetLegendGraphic&mode=legendicon&icon=bag_adres" gives a lovely with rectangle. Another idea? thanks gr Fons ------------------------------------------------------------------------ Hi Fons, it looks like mapserver does not find your pixmap-file. You know that the path "/pixmap/..." means, that mapserver looks for this file in the servers root directory? If the pixmap is stored relative to the mapfile, remove the leading "/" in your path: "pixmap/...." Till On 19-11-2013 14:19, Fons Arts wrote: > Hi list, > > I trying to overrule a hardcoded legendicon Az (annotation) with a > pixmap in the class section. > > > > map file > LEGEND > STATUS on > KEYSIZE 26 13 > END > > LAYER > CONNECTIONTYPE postgis > NAME "bag_adres" > GROUP "bag_adres" > CONNECTION > ************************************************************* > DATA "geom from public.bag_adres USING UNIQUE oid" > TYPE ANNOTATION > TOLERANCE 10 > MAXSCALE 3500 > MINSCALE 0 > STATUS ON > LABELITEM "huisnummers" > TEMPLATE "blank.html" > CLASS > NAME 'Huisnummers' > * KEYIMAGE "/pixmap/adres.png"* > LABEL > COLOR 0 0 0 > SHADOWCOLOR 255 255 255 > TYPE truetype > FONT arialvet > SIZE 8 > POSITION CC > PARTIALS FALSE > ANTIALIAS TRUE > OFFSET 0 0 > END > END > END > > The result is a white image. > > > > thanks in advance. > gr Fons -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 585 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 522 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.jpg Type: image/jpeg Size: 19036 bytes Desc: not available URL: From brownd at usgs.gov Tue Nov 19 16:03:00 2013 From: brownd at usgs.gov (Brown, Donald) Date: Tue, 19 Nov 2013 17:03:00 -0700 Subject: [mapserver-users] White background in MapCache Message-ID: I am having trouble getting rid of the white background (I'd like it to be transparent) where there is supposed to be 'no data' for the following service: http://mrdata.usgs.gov/mapcache/kml/prgeol at WGS84.kml I tried modifying my mapcache.xml file to say 'mixed' for the format, then built the tiles using the command: mapcache_seed -c /mnt/mrt/mapcache/mapcache.xml -t prgeol -g WGS84 -M 8,8 However, this did not seem to work. Any help would be greatly appreciated. Here is a snippet of my mapcache.xml file: MRData mapcache service Contains various services for MRData maps /mnt/mrt/mapcache fast 256 75 RGB jpeg PNGQ_FAST image/png png geol,fault,faultn /mnt/mrt/map-files/pr.map http://mrdata.usgs.gov/cgi-bin/mapserv prgeol disk WGS84 g GoogleMapsCompatible mixed 5 5 86400 Thanks! -- Don Brown GIS Specialist Cherokee Services Group, LLC (CSG) Contractor to the U.S. Geological Survey Fort Collins Science Center 2150 Centre Ave. Bldg. C Fort Collins, CO 80526 (970) 226-9155 *brownd at usgs.gov* -------------- next part -------------- An HTML attachment was scrubbed... URL: From pasithee at gmail.com Tue Nov 19 23:03:58 2013 From: pasithee at gmail.com (Pasithee Jupiter) Date: Wed, 20 Nov 2013 08:03:58 +0100 Subject: [mapserver-users] NULLVALUE for mapscript.MS_IMAGEMODE_RGB and PostGIS 2.1 Message-ID: Hi all I'm using Postgresql 9.3 and PostGIS 2.1. I have uploaded all my files using raster2pgsql as follow: /usr/lib/postgresql/9.3/bin/raster2pgsql -a -f {column!s} -s {srs:d} -N {nodata:f} -q -F -M {file!s} public.{table!s} | psql -h {host!s} -p {port:d} -d {database!s} -U {username!s} When I try to use MapServer to generate a WMS layer all my NULL values are interpreted as 0 which is not the nodata value I have set using the -N flag in the raster2pgsql script. Checking it in the database using ST_DumpValues(rast, 1, true) it will replace all NULL values with the correct nodata value. Also setting the NODATA= in the map file is not working. When I use AAGRID instead and configuring a output format it works (see here http://mapserver.org/mapfile/outputformat.html): OUTPUTFORMAT NAME "mytest" DRIVER "GDAL/AAIGRID" IMAGEMODE INT16 TRANSPARENT FALSE FORMATOPTION "NULLVALUE=65535" END # OUTPUTFORMAT Is that a bug in MapServer when using image mode RGB or RGBA? Does someone has a solution how to fix it? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 20 02:01:32 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Nov 2013 11:01:32 +0100 Subject: [mapserver-users] MapCache GetMap request requires "SERVICE=WMS" In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A199F15C@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A199F15C@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: James, Please open an issue for this one. SERVICE=WMS is not mandatory for WMS 1.0.0, and mapcache does not obey that rule. A possible workaround for the time-being for you would be to switch your client to use WMS 1.1.0. regards, thomas On 19 November 2013 00:31, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > It seems that MapCache requires "SERVICE=WMS" for a GetMap request. MapServer does not seem to have this same requirement. Should this be considered a bug? I've tried adding "service=wms" to my OnlineResource string in my mapfile with no success. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Wed Nov 20 02:04:25 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Nov 2013 11:04:25 +0100 Subject: [mapserver-users] White background in MapCache In-Reply-To: References: Message-ID: Donald, You should add true to your source getmap params, so that mapserver returns transparent images. Note that you'll have to purge your existing mapcache caches so the tiles get regenerated with transparency. regards, thomas On 20 November 2013 01:03, Brown, Donald wrote: > I am having trouble getting rid of the white background (I'd like it to be > transparent) where there is supposed to be 'no data' for the following > service: > http://mrdata.usgs.gov/mapcache/kml/prgeol at WGS84.kml > > I tried modifying my mapcache.xml file to say 'mixed' for the format, then > built the tiles using the command: > mapcache_seed -c /mnt/mrt/mapcache/mapcache.xml -t prgeol -g WGS84 -M 8,8 > > However, this did not seem to work. Any help would be greatly appreciated. > Here is a snippet of my mapcache.xml file: > > > > > MRData mapcache service > Contains various services for MRData maps > > > > /mnt/mrt/mapcache > > > > > fast > 256 > > > > 75 > RGB > > > > jpeg > PNGQ_FAST > > > > > > image/png > png > geol,fault,faultn > /mnt/mrt/map-files/pr.map > > > > http://mrdata.usgs.gov/cgi-bin/mapserv > > > > prgeol > disk > WGS84 > g > GoogleMapsCompatible > mixed > 5 5 > 86400 > > > > Thanks! > > > -- > Don Brown > GIS Specialist > Cherokee Services Group, LLC (CSG) > Contractor to the U.S. Geological Survey > Fort Collins Science Center > 2150 Centre Ave. Bldg. C > Fort Collins, CO 80526 > (970) 226-9155 > brownd at usgs.gov > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Wed Nov 20 02:06:58 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Nov 2013 11:06:58 +0100 Subject: [mapserver-users] pixmap legend In-Reply-To: <528B6549.6040001@gisarts.nl> References: <528B6549.6040001@gisarts.nl> Message-ID: Fons, https://github.com/mapserver/mapserver/issues/4808 may be related and is on my todo list for 6.4.1 regards, thomas On 19 November 2013 14:19, Fons Arts wrote: > Hi list, > > I trying to overrule a hardcoded legendicon Az (annotation) with a pixmap > in the class section. > > > > map file > LEGEND > STATUS on > KEYSIZE 26 13 > END > > LAYER > CONNECTIONTYPE postgis > NAME "bag_adres" > GROUP "bag_adres" > CONNECTION > ************************************************************* > DATA "geom from public.bag_adres USING UNIQUE oid" > TYPE ANNOTATION > TOLERANCE 10 > MAXSCALE 3500 > MINSCALE 0 > STATUS ON > LABELITEM "huisnummers" > TEMPLATE "blank.html" > CLASS > NAME 'Huisnummers' > * KEYIMAGE "/pixmap/adres.png"* > LABEL > COLOR 0 0 0 > SHADOWCOLOR 255 255 255 > TYPE truetype > FONT arialvet > SIZE 8 > POSITION CC > PARTIALS FALSE > ANTIALIAS TRUE > OFFSET 0 0 > END > END > END > > The result is a white image. > > > > thanks in advance. > gr Fons > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-51.png Type: image/png Size: 585 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-52.png Type: image/png Size: 522 bytes Desc: not available URL: From thomas.bonfort at gmail.com Wed Nov 20 02:15:41 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Nov 2013 11:15:41 +0100 Subject: [mapserver-users] FW: problem with legend images In-Reply-To: <010210A9867E44E18E5AEF7AC19E4781@worthlaptop> References: <010210A9867E44E18E5AEF7AC19E4781@worthlaptop> Message-ID: Worth, this is happening because you are using scale-dependant rendering, but the legend requests are scale independant. You should be able to overcome this by adding your wanted scale to a SCALE=xxx url parameter, or you can rewrite your mapfile by playing with your layer's SYMBOLSCALEDENOM and setting your style widths to something more pleasing for your legend output, e.g. SYMBOLSCALEDENOM 1000 ... WIDTH 10 is equivalent in map outputs to SYMBOLSCALEDENOM 10000 ... WIDTH 1 whereas the first will produce 10 pixel wide lines in the legend by defaut vs. 1 pixel wide lines for the second. regards, thomas On 18 November 2013 18:08, Worth Lutz wrote: > Hi all, > > I am having a problem generating my legend. I have roads which look gook on > my map but the legend images generated are not what I expected. > > Attached is a picture of a portion of my map and the legend. > > Each piece of the legend is retrieved with a "getLegendGraphic" call. > > Has any one else run into this problem with "exploded" legends? > > Here is one of my classes: > CLASS > NAME "Interstate Highways" > #MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > EXPRESSION "I" # Interstates > STYLE > COLOR 121 0 255 > WIDTH 35 > MINWIDTH 2 > MAXWIDTH 35 > END > STYLE > COLOR 181 51 51 > WIDTH 33 > MINWIDTH 0 > MAXWIDTH 31 > END > END > > I get what I was looking for on map but have not figured out how to get the > legend to work. > > My entire layer definition is show below: > > LAYER > NAME "NCDOT-roads" > GROUP "NCDOT_transportation_group" > STATUS off > METADATA > wms_title "NCDOT-Roads" > wms_srs "EPSG:2264" > END > TYPE line > UNITS pixels > DATA NCDOT/shapefiles/LRS_ARCS > PROJECTION > "init=epsg:2264" # NAD 83 North Carolina (ftUS) > END > #MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > SYMBOLSCALEDENOM 1000 > TEMPLATE void > CLASSITEM "rte_1_clss" > CLASS > NAME "Interstate Highways" > #MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > EXPRESSION "I" # Interstates > STYLE > COLOR 121 0 255 > WIDTH 35 > MINWIDTH 2 > MAXWIDTH 35 > END > STYLE > COLOR 181 51 51 > WIDTH 33 > MINWIDTH 0 > MAXWIDTH 31 > END > END > CLASS > NAME "US Highways" > EXPRESSION "US" # US Highways > MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > STYLE > COLOR 121 121 0 > WIDTH 35 > MINWIDTH 2 > MAXWIDTH 35 > END > STYLE > COLOR 181 181 0 > WIDTH 31 > MINWIDTH 0 > MAXWIDTH 31 > END > END > CLASS > NAME "NC Highways" > EXPRESSION "NC" # NC Highways > MAXSCALEDENOM 800001 > MINSCALEDENOM 999 > STYLE > COLOR 181 181 0 > WIDTH 22 > MINWIDTH 2 > MAXWIDTH 22 > END > END > CLASS > NAME "State Roads" > EXPRESSION "SR" # State Roads > MAXSCALEDENOM 70001 > MINSCALEDENOM 985 > STYLE > COLOR 181 181 0 > WIDTH 22 > MINWIDTH 1 > MAXWIDTH 22 > END > END > CLASS > NAME "highway ramps" > MAXSCALEDENOM 30001 > EXPRESSION "RMP" # HWY ramps > STYLE > COLOR 121 121 0 > WIDTH 30 > MINWIDTH 1 > MAXWIDTH 24 > END > STYLE > COLOR 181 181 0 > WIDTH 28 > MINWIDTH 0 > MAXWIDTH 20 > END > END > END # NCDOT-roads > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From wal3 at mindspring.com Wed Nov 20 07:10:01 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Wed, 20 Nov 2013 10:10:01 -0500 Subject: [mapserver-users] FW: problem with legend images In-Reply-To: References: <010210A9867E44E18E5AEF7AC19E4781@worthlaptop> Message-ID: <4337A6F35B474703A05069F8966397B9@worthlaptop> Thomas, Thanks for this information. I think the "SCALE=xxx" is what I was looking for. In the second part of your explanation, I understand this to mean that the legend image is draw at the SYMBOLSCALEDENOM. This would explain what I'm seeing. I have SYMBOLSCALEDENOM set to a small number. I'll play with this also. Worth -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Wednesday, November 20, 2013 5:16 AM To: Worth Lutz Cc: MapserverList OSGEO Subject: Re: [mapserver-users] FW: problem with legend images Worth, this is happening because you are using scale-dependant rendering, but the legend requests are scale independant. You should be able to overcome this by adding your wanted scale to a SCALE=xxx url parameter, or you can rewrite your mapfile by playing with your layer's SYMBOLSCALEDENOM and setting your style widths to something more pleasing for your legend output, e.g. SYMBOLSCALEDENOM 1000 ... WIDTH 10 is equivalent in map outputs to SYMBOLSCALEDENOM 10000 ... WIDTH 1 whereas the first will produce 10 pixel wide lines in the legend by defaut vs. 1 pixel wide lines for the second. regards, thomas On 18 November 2013 18:08, Worth Lutz wrote: > Hi all, > > I am having a problem generating my legend. I have roads which look gook on > my map but the legend images generated are not what I expected. > > Attached is a picture of a portion of my map and the legend. > > Each piece of the legend is retrieved with a "getLegendGraphic" call. > > Has any one else run into this problem with "exploded" legends? > > Here is one of my classes: > CLASS > NAME "Interstate Highways" > #MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > EXPRESSION "I" # Interstates > STYLE > COLOR 121 0 255 > WIDTH 35 > MINWIDTH 2 > MAXWIDTH 35 > END > STYLE > COLOR 181 51 51 > WIDTH 33 > MINWIDTH 0 > MAXWIDTH 31 > END > END > > I get what I was looking for on map but have not figured out how to get the > legend to work. > > My entire layer definition is show below: > > LAYER > NAME "NCDOT-roads" > GROUP "NCDOT_transportation_group" > STATUS off > METADATA > wms_title "NCDOT-Roads" > wms_srs "EPSG:2264" > END > TYPE line > UNITS pixels > DATA NCDOT/shapefiles/LRS_ARCS > PROJECTION > "init=epsg:2264" # NAD 83 North Carolina (ftUS) > END > #MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > SYMBOLSCALEDENOM 1000 > TEMPLATE void > CLASSITEM "rte_1_clss" > CLASS > NAME "Interstate Highways" > #MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > EXPRESSION "I" # Interstates > STYLE > COLOR 121 0 255 > WIDTH 35 > MINWIDTH 2 > MAXWIDTH 35 > END > STYLE > COLOR 181 51 51 > WIDTH 33 > MINWIDTH 0 > MAXWIDTH 31 > END > END > CLASS > NAME "US Highways" > EXPRESSION "US" # US Highways > MAXSCALEDENOM 3000010 > MINSCALEDENOM 999 > STYLE > COLOR 121 121 0 > WIDTH 35 > MINWIDTH 2 > MAXWIDTH 35 > END > STYLE > COLOR 181 181 0 > WIDTH 31 > MINWIDTH 0 > MAXWIDTH 31 > END > END > CLASS > NAME "NC Highways" > EXPRESSION "NC" # NC Highways > MAXSCALEDENOM 800001 > MINSCALEDENOM 999 > STYLE > COLOR 181 181 0 > WIDTH 22 > MINWIDTH 2 > MAXWIDTH 22 > END > END > CLASS > NAME "State Roads" > EXPRESSION "SR" # State Roads > MAXSCALEDENOM 70001 > MINSCALEDENOM 985 > STYLE > COLOR 181 181 0 > WIDTH 22 > MINWIDTH 1 > MAXWIDTH 22 > END > END > CLASS > NAME "highway ramps" > MAXSCALEDENOM 30001 > EXPRESSION "RMP" # HWY ramps > STYLE > COLOR 121 121 0 > WIDTH 30 > MINWIDTH 1 > MAXWIDTH 24 > END > STYLE > COLOR 181 181 0 > WIDTH 28 > MINWIDTH 0 > MAXWIDTH 20 > END > END > END # NCDOT-roads > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4158 / Virus Database: 3629/6851 - Release Date: 11/20/13 From thomas.bonfort at gmail.com Wed Nov 20 07:21:15 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Nov 2013 16:21:15 +0100 Subject: [mapserver-users] pixmap legend In-Reply-To: References: <528B6549.6040001@gisarts.nl> Message-ID: Fons, could you check wether the fix for #4808 I have just added to the 6.4 branch corrects your issue? -- thomas On 20 November 2013 11:06, thomas bonfort wrote: > Fons, > https://github.com/mapserver/mapserver/issues/4808 may be related and is > on my todo list for 6.4.1 > > regards, > thomas > > > On 19 November 2013 14:19, Fons Arts wrote: > >> Hi list, >> >> I trying to overrule a hardcoded legendicon Az (annotation) with a >> pixmap in the class section. >> >> >> >> map file >> LEGEND >> STATUS on >> KEYSIZE 26 13 >> END >> >> LAYER >> CONNECTIONTYPE postgis >> NAME "bag_adres" >> GROUP "bag_adres" >> CONNECTION >> ************************************************************* >> DATA "geom from public.bag_adres USING UNIQUE oid" >> TYPE ANNOTATION >> TOLERANCE 10 >> MAXSCALE 3500 >> MINSCALE 0 >> STATUS ON >> LABELITEM "huisnummers" >> TEMPLATE "blank.html" >> CLASS >> NAME 'Huisnummers' >> * KEYIMAGE "/pixmap/adres.png"* >> LABEL >> COLOR 0 0 0 >> SHADOWCOLOR 255 255 255 >> TYPE truetype >> FONT arialvet >> SIZE 8 >> POSITION CC >> PARTIALS FALSE >> ANTIALIAS TRUE >> OFFSET 0 0 >> END >> END >> END >> >> The result is a white image. >> >> >> >> thanks in advance. >> gr Fons >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-52.png Type: image/png Size: 522 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-51.png Type: image/png Size: 585 bytes Desc: not available URL: From jpatokal at iki.fi Sat Nov 23 03:06:13 2013 From: jpatokal at iki.fi (Jani Patokallio) Date: Sat, 23 Nov 2013 22:06:13 +1100 Subject: [mapserver-users] Map server at http://vmap0.tiles.osgeo.org/wms/ down Message-ID: This is probably the wrong place to post this, but I'm not sure what the right one is... if anybody knows, please pass the message along. So the public OSGeo tileserver seems to be broken, with all tile requests returning a 200 OK containing errors instead of a tile. Example: http://vmap0.tiles.osgeo.org/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-45,0,0,45&WIDTH=256&HEIGHT=256-> loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured. Cheers, -jani -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at cape.com Sat Nov 23 03:21:42 2013 From: nhv at cape.com (Norman Vine) Date: Sat, 23 Nov 2013 06:21:42 -0500 Subject: [mapserver-users] Map server at http://vmap0.tiles.osgeo.org/wms/ down In-Reply-To: References: Message-ID: <738C9EFE-DA05-433E-A55E-BA6BAF54F88F@cape.com> That machine is down temporarily for an unscheduled overhaul It should be back shortly On Nov 23, 2013, at 6:06 AM, Jani Patokallio wrote: > This is probably the wrong place to post this, but I'm not sure what the right one is... if anybody knows, please pass the message along. > > So the public OSGeo tileserver seems to be broken, with all tile requests returning a 200 OK containing errors instead of a tile. Example: > > http://vmap0.tiles.osgeo.org/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-45,0,0,45&WIDTH=256&HEIGHT=256 -> > > loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured. > > Cheers, > -jani > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Evans at hill.af.mil Sun Nov 24 07:57:52 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Sun, 24 Nov 2013 07:57:52 -0800 (PST) Subject: [mapserver-users] MapCahe question -- Caching the first couple of zoom levels Message-ID: <1385308672249-5090882.post@n6.nabble.com> Hi, I'm trying to configure mapcache (from latest dev version of MS4W) and would like to cache the first couple of zoom levels of a very large set of USDA NAIP imagery. I've tried using the minzoom and maxzoom tags in the tileset, like this: WGS84 but once I zoom below the maxzoom value I get no imagery. I would like it to send the request to the source if it is beyond the maxzoom value. Is there a way to do this? Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCahe-question-Caching-the-first-couple-of-zoom-levels-tp5090882.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Sun Nov 24 08:23:01 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 24 Nov 2013 11:23:01 -0500 Subject: [mapserver-users] MapCahe question -- Caching the first couple of zoom levels In-Reply-To: <1385308672249-5090882.post@n6.nabble.com> References: <1385308672249-5090882.post@n6.nabble.com> Message-ID: <529227E5.6010204@swoodbridge.com> On 11/24/2013 10:57 AM, James_in_Utah wrote: > Hi, > I'm trying to configure mapcache (from latest dev version of MS4W) and would > like to cache the first couple of zoom levels of a very large set of USDA > NAIP imagery. I've tried using the minzoom and maxzoom tags in the tileset, > like this: > maxzoom="6">WGS84 > but once I zoom below the maxzoom value I get no imagery. I would like it > to send the request to the source if it is beyond the maxzoom value. Is > there a way to do this? > Thanks, > James James, If I understand you question correctly: You want mapcache to cache only zoom levels 1-6 and then handoff all requests for zoom levels 7+ to the WMS to draw on demand. Is this correct? If so, I'm not sure that mapcache can to that, you may have to do that in your client software where it has two layers: one for the mapcache zoom levels and then another for the WMS requests. The minzoom and maxzoom parameters control whether or not mapcache will serve responses with data. -Steve W From jukka.rahkonen at mmmtike.fi Sun Nov 24 09:33:16 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 24 Nov 2013 17:33:16 +0000 Subject: [mapserver-users] MapCahe question -- Caching the first couple of zoom levels In-Reply-To: <529227E5.6010204@swoodbridge.com> References: <1385308672249-5090882.post@n6.nabble.com>, <529227E5.6010204@swoodbridge.com> Message-ID: <84446DEF76453C439E9E97E438E13A631F09E498@suutari.haapa.mmm.fi> Hi, GeoWebCache supports this as "Selective zoom level caching" http://geowebcache.org/docs/current/configuration/layers/selectivezoom.html MapProxy seems to be able to do the same with directives "use_direct_from_level" and "use_direct_from_res" http://mapproxy.org/docs/1.6.0/configuration.html I guess that Mapcache will also support this practical feature sooner or later. -Jukka Rahkonen- ________________________________________ Stephen Woodbridge wrote: > On 11/24/2013 10:57 AM, James_in_Utah wrote: >> Hi, >> I'm trying to configure mapcache (from latest dev version of MS4W) and would >> like to cache the first couple of zoom levels of a very large set of USDA >> NAIP imagery. I've tried using the minzoom and maxzoom tags in the tileset, >> like this: >> > maxzoom="6">WGS84 >> but once I zoom below the maxzoom value I get no imagery. I would like it >> to send the request to the source if it is beyond the maxzoom value. Is >> there a way to do this? >> Thanks, >> James > James, > If I understand you question correctly: > You want mapcache to cache only zoom levels 1-6 and then handoff all > requests for zoom levels 7+ to the WMS to draw on demand. > Is this correct? > If so, I'm not sure that mapcache can to that, you may have to do that > in your client software where it has two layers: one for the mapcache > zoom levels and then another for the WMS requests. > The minzoom and maxzoom parameters control whether or not mapcache will > serve responses with data. > -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Evans at hill.af.mil Sun Nov 24 11:49:00 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Sun, 24 Nov 2013 11:49:00 -0800 (PST) Subject: [mapserver-users] MapCahe question -- Caching the first couple of zoom levels In-Reply-To: <84446DEF76453C439E9E97E438E13A631F09E498@suutari.haapa.mmm.fi> References: <1385308672249-5090882.post@n6.nabble.com> <529227E5.6010204@swoodbridge.com> <84446DEF76453C439E9E97E438E13A631F09E498@suutari.haapa.mmm.fi> Message-ID: <1385322540633-5090906.post@n6.nabble.com> That's kind of what we are looking for. I would like for the first couple of layers of the NAIP to be very responsive, especially the frequently viewed areas, but we don't have disk space to cache the whole set, or even very much of the whole set. From the client side, you don't get an error if you zoom too far. You actually get back some sort of blank 256x256 transparent tile. I don't control the clients that will be hitting this, so I'm not sure how advertise NAIP levels this deep should use the cache, while NAIP levels a little deeper should use the WMS. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCahe-question-Caching-the-first-couple-of-zoom-levels-tp5090882p5090906.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon Nov 25 02:42:08 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 25 Nov 2013 11:42:08 +0100 Subject: [mapserver-users] MapCahe question -- Caching the first couple ofzoom levels References: <1385308672249-5090882.post@n6.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> Hi James, > like to cache the first couple of zoom levels of a very large set of USDA > NAIP imagery. I've tried using the minzoom and maxzoom tags in the > tileset, > like this: > maxzoom="6">WGS84 > but once I zoom below the maxzoom value I get no imagery. This isn't what minzoom/maxzoom are for. These switches are used in cases where your data doesn't cover the whole grid or has a resolution that makes it useless in high zoom levels. With them you can prevent your cache from being filled with useless tiles. > I would like it > to send the request to the source if it is beyond the maxzoom value. Is > there a way to do this? Surely not. I think you misunderstood what a cache is and how it works. You should use mapcache_seed in delete mode to throttle the cache size. Of course it would be great if mapcache would itself gather statistics and control the cache but that would introduce overhead and serious problems with some cache types (especially the popular "disk" type). From James.Evans at hill.af.mil Mon Nov 25 05:36:10 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Mon, 25 Nov 2013 05:36:10 -0800 (PST) Subject: [mapserver-users] MapCahe question -- Caching the first couple ofzoom levels In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> References: <1385308672249-5090882.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> Message-ID: <1385386570857-5091012.post@n6.nabble.com> By "delete mode" do you mean reseeding? The docs don't mention that this will delete anything outside of the zoom levels that I reseed, but maybe it does. I'll give it a try. Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCahe-question-Caching-the-first-couple-of-zoom-levels-tp5090882p5091012.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon Nov 25 06:05:00 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 25 Nov 2013 15:05:00 +0100 Subject: [mapserver-users] MapCahe question -- Caching the first coupleofzoom levels References: <1385308672249-5090882.post@n6.nabble.com><56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> <1385386570857-5091012.post@n6.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D18E10D30@KS-EVS1.smi.sachsen.de> > By "delete mode" do you mean reseeding? The docs don't mention that > this > will delete anything outside of the zoom levels that I reseed, but maybe it > does. I'll give it a try. Nope. By "delete mode" I mean something like mapcache_seed -m delete -c /etc/mapcache.xml -t testlayer -v -z 7,10 which would delete all tiles in the "testlayer" tileset from zoom levels 7, 8, 9 and 10 and should probably be combined with something like -o "2011/01/31 20:45" to only delete files created before the specified date. On caches of type "disk" you can also delete those files by appropriate tools scheduled on a regular basis. From James.Evans at hill.af.mil Mon Nov 25 06:31:37 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Mon, 25 Nov 2013 06:31:37 -0800 (PST) Subject: [mapserver-users] MapCahe question -- Caching the first coupleofzoom levels In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D18E10D30@KS-EVS1.smi.sachsen.de> References: <1385308672249-5090882.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> <1385386570857-5091012.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D18E10D30@KS-EVS1.smi.sachsen.de> Message-ID: <1385389897860-5091028.post@n6.nabble.com> That's very helpful. Somehow that option was left out of: http://www.mapserver.org/trunk/mapcache/seed.html Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCahe-question-Caching-the-first-couple-of-zoom-levels-tp5090882p5091028.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Mon Nov 25 10:17:14 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 25 Nov 2013 18:17:14 +0000 Subject: [mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities Message-ID: <84446DEF76453C439E9E97E438E13A631F09FAAA@suutari.haapa.mmm.fi> Hi, The SAX parser in OpenJUMP reports an error when trying to read the GetCapabilities from Mapserver 6.5-dev based WMS service of Toscana. The URL to use is http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr&service=WMS&version=1.1.1&request=GetCapabilities The error from the parser is: IOException: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:type" associated with an element type "inspire_common:MandatoryKeyword" is not bound. WMS 1.1.0 works OK (probably because GetCapabilities come without Inspire stuff) as well as WMS 1.3.0. -Jukka Rahkonen- From jukka.rahkonen at mmmtike.fi Mon Nov 25 13:39:11 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 25 Nov 2013 21:39:11 +0000 Subject: [mapserver-users] MapCahe question -- Caching the first couple ofzoom levels In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> References: <1385308672249-5090882.post@n6.nabble.com>, <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> Message-ID: <84446DEF76453C439E9E97E438E13A631F09FB8B@suutari.haapa.mmm.fi> Eichner, Andreas wrote: > Hi James, >> to send the request to the source if it is beyond the maxzoom value. >> Is >> there a way to do this? > Surely not. I think you misunderstood what a cache is and how it works. > You should use mapcache_seed in delete mode to throttle the cache size. > Of course it would be great if mapcache would itself gather statistics > and control the cache but that would introduce overhead and serious > problems with some cache types (especially the popular "disk" type). I wouldn't be so strict. Caching only at small scale and passing requests at large scales directly towards the backend WMS is a reasonable scenario. At least we are happy with doing that with GeoWebCache and we would do the same with MapCache if it was possible. We have some frequently updated, heavy-to-render vector layers and instead of playing a game with building optimized, simplified, scale dependent group layers it is sometimes relaxing to cache the small scale tiles and let queries at large scale go directly to WMS without caching the tiles at all. Details do not show at small scales so it is not so important to refresh the cache very often. At large scales we can trust that data comes always fresh from the WMS. I am not here for advertizing GWC but sometimes it is useful to make comparisons. GWC has also implemented disk quota system -- the only supported cache type for GWC, unfortunately (one of the reasons why I use also MapCache) http://geowebcache.org/docs/current/configuration/diskquotas.html -Jukka Rahkonen- From woodbri at swoodbridge.com Mon Nov 25 13:53:57 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 25 Nov 2013 16:53:57 -0500 Subject: [mapserver-users] MapCahe question -- Caching the first couple ofzoom levels In-Reply-To: <84446DEF76453C439E9E97E438E13A631F09FB8B@suutari.haapa.mmm.fi> References: <1385308672249-5090882.post@n6.nabble.com>, <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> <84446DEF76453C439E9E97E438E13A631F09FB8B@suutari.haapa.mmm.fi> Message-ID: <5293C6F5.5050901@swoodbridge.com> On 11/25/2013 4:39 PM, Rahkonen Jukka wrote: > > Eichner, Andreas wrote: > >> Hi James, > >>> to send the request to the source if it is beyond the maxzoom value. >>> Is >>> there a way to do this? > >> Surely not. I think you misunderstood what a cache is and how it works. >> You should use mapcache_seed in delete mode to throttle the cache size. >> Of course it would be great if mapcache would itself gather statistics >> and control the cache but that would introduce overhead and serious >> problems with some cache types (especially the popular "disk" type). > > I wouldn't be so strict. Caching only at small scale and passing requests at large scales directly towards the backend WMS is a reasonable scenario. At least we are happy with doing that with GeoWebCache and we would do the same with MapCache if it was possible. We have some frequently updated, heavy-to-render vector layers and instead of playing a game with building optimized, simplified, scale dependent group layers it is sometimes relaxing to cache the small scale tiles and let queries at large scale go directly to WMS without caching the tiles at all. Details do not show at small scales so it is not so important to refresh the cache very often. At large scales we can trust that data comes always fresh from the WMS. > > I am not here for advertizing GWC but sometimes it is useful to make comparisons. GWC has also implemented disk quota system -- the only supported cache type for GWC, unfortunately (one of the reasons why I use also MapCache) http://geowebcache.org/docs/current/configuration/diskquotas.html > > -Jukka Rahkonen- Jukka's correct this would be a nice enhancement to mapcache. Can someone create an enhancement request for these features so they do not get lost. Thanks, -Steve W From armin.burger at gmx.net Mon Nov 25 14:20:55 2013 From: armin.burger at gmx.net (Armin Burger) Date: Mon, 25 Nov 2013 23:20:55 +0100 Subject: [mapserver-users] MapCahe question -- Caching the first coupleofzoom levels In-Reply-To: <1385389897860-5091028.post@n6.nabble.com> References: <1385308672249-5090882.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D18E10CD9@KS-EVS1.smi.sachsen.de> <1385386570857-5091012.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D18E10D30@KS-EVS1.smi.sachsen.de> <1385389897860-5091028.post@n6.nabble.com> Message-ID: <5293CD47.5030509@gmx.net> on Unix systems I would use as workaround for this a cron job, e.g. running a script every 5 minutes and having something like find /path/to/zoom/level -name "*.png" -mmin +5 -exec rm {} \; which deletes all PNG files older than 5 minutes armin On 11/25/2013 03:31 PM, James_in_Utah wrote: > That's very helpful. Somehow that option was left out of: > http://www.mapserver.org/trunk/mapcache/seed.html > > > Thanks, > James > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCahe-question-Caching-the-first-couple-of-zoom-levels-tp5090882p5091028.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lin at hvenegaard.dk Tue Nov 26 01:34:49 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Tue, 26 Nov 2013 10:34:49 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFEDC@hvmex01> Hi Jukka, It turns out that it was my adding - PROCESSING "CLOSE_CONNECTION=DEFER" - statements to my layer definitions that blocked fetching attributes from other layers than the first. Apparently the OGR VRT frameworks needs to open separate connections, and keeping the first connection open blocked subsequent connections. This part now works :-) Still working on other issues though ... Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -----Oprindelig meddelelse----- Fra: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sendt: 19. november 2013 15:59 Til: Lars?I. Nielsen; mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi, I can only show how my MS 6.2.1 server reacts http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.0.0&request=DescribeFeatureType -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Lars I. Nielsen [lin at hvenegaard.dk] puolesta L?hetetty: 19. marraskuuta 2013 16:16 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi, I got the standalone Mapserver 6.4 x64 up and running, but there are still some issues: If I run "request=describefeaturetype" on any of the three typenames in my setup, it returns its list of attributes as it should. But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? The server is online on this address if anyone wants to have a look: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities DescribeFeatureType that works: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader DescribeFeatureType that doesn't work: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk From lin at hvenegaard.dk Tue Nov 26 03:26:27 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Tue, 26 Nov 2013 12:26:27 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses In-Reply-To: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFEDC@hvmex01> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFEDC@hvmex01> Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFF08@hvmex01> Hi, I'm still having problems with my setup of a WFS server using Mapserver 6.4.0 :-( My GetCapabilities requests take forever (or more precisely 5 minutes) to finish. Mapserver finishes in a split second, and returns a full document, but the connection - regardless of it being an url in a browser, or running ogrinfo.exe or some other program - stays open for circa 5 minutes before it finishes/times out. How can I get Mapserver/something-else to force closing the connection ? Mapserver runs as a standalone exe under IIS v6 on Windows 2003, but there's nothing in the IIS setup that I can find that prompts this behaviour. http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities Any advise will be helpful :-) Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -----Oprindelig meddelelse----- Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Lars?I. Nielsen Sendt: 26. november 2013 10:35 Til: Rahkonen Jukka; mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi Jukka, It turns out that it was my adding - PROCESSING "CLOSE_CONNECTION=DEFER" - statements to my layer definitions that blocked fetching attributes from other layers than the first. Apparently the OGR VRT frameworks needs to open separate connections, and keeping the first connection open blocked subsequent connections. This part now works :-) Still working on other issues though ... Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -----Oprindelig meddelelse----- Fra: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sendt: 19. november 2013 15:59 Til: Lars?I. Nielsen; mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi, I can only show how my MS 6.2.1 server reacts http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.0.0&request=DescribeFeatureType -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Lars I. Nielsen [lin at hvenegaard.dk] puolesta L?hetetty: 19. marraskuuta 2013 16:16 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi, I got the standalone Mapserver 6.4 x64 up and running, but there are still some issues: If I run "request=describefeaturetype" on any of the three typenames in my setup, it returns its list of attributes as it should. But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? The server is online on this address if anyone wants to have a look: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities DescribeFeatureType that works: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader DescribeFeatureType that doesn't work: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From no-reply at neogeo-online.net Wed Nov 27 06:43:28 2013 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Wed, 27 Nov 2013 15:43:28 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses In-Reply-To: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFF08@hvmex01> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFEDC@hvmex01> <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFF08@hvmex01> Message-ID: <52960510.3040805@neogeo-online.net> Hi, Did you properly set for each layer a "wfs_extent" ? Than can help. Best regards Guillaume Le 26/11/13 12:26, Lars I. Nielsen a ?crit : > Hi, > > I'm still having problems with my setup of a WFS server using Mapserver 6.4.0 :-( > > My GetCapabilities requests take forever (or more precisely 5 minutes) to finish. Mapserver finishes in a split second, and returns a full document, but the connection - regardless of it being an url in a browser, or running ogrinfo.exe or some other program - stays open for circa 5 minutes before it finishes/times out. > > How can I get Mapserver/something-else to force closing the connection ? > > Mapserver runs as a standalone exe under IIS v6 on Windows 2003, but there's nothing in the IIS setup that I can find that prompts this behaviour. > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities > > Any advise will be helpful :-) > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent > Hvenegaard og Jens Bo Landinspekt?rer A/S > Rugaardsvej 55, DK-5000 Odense C > Denmark > Tel. +45 6313 5050 > http://www.hvenegaard.dk > > > -----Oprindelig meddelelse----- > Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Lars I. Nielsen > Sendt: 26. november 2013 10:35 > Til: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses > > Hi Jukka, > > It turns out that it was my adding - PROCESSING "CLOSE_CONNECTION=DEFER" - statements to my layer definitions that blocked fetching attributes from other layers than the first. > > Apparently the OGR VRT frameworks needs to open separate connections, and keeping the first connection open blocked subsequent connections. > > This part now works :-) > > Still working on other issues though ... > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk > > > -----Oprindelig meddelelse----- > Fra: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] > Sendt: 19. november 2013 15:59 > Til: Lars I. Nielsen; mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses > > Hi, > > I can only show how my MS 6.2.1 server reacts > > http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.0.0&request=DescribeFeatureType > > -Jukka Rahkonen- > > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Lars I. Nielsen [lin at hvenegaard.dk] puolesta > L?hetetty: 19. marraskuuta 2013 16:16 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses > > Hi, > > I got the standalone Mapserver 6.4 x64 up and running, but there are still some issues: > > > If I run "request=describefeaturetype" on any of the three typenames in my setup, it returns its list of attributes as it should. > > But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? > > Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? > > > The server is online on this address if anyone wants to have a look: > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities > > DescribeFeatureType that works: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader > > DescribeFeatureType that doesn't work: http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype > > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lin at hvenegaard.dk Thu Nov 28 03:34:43 2013 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Thu, 28 Nov 2013 12:34:43 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses In-Reply-To: <52960510.3040805@neogeo-online.net> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFEDC@hvmex01> <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFF08@hvmex01> <52960510.3040805@neogeo-online.net> Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BE00BA@hvmex01> Hi Guillaume, list, My "error" was trying to run a standalone 64 bit version on a 64 bit Windows, apparently. After I replaced all DLLs and the EXE with the similar 32 bit counter parts, the requests exits as expected after processing. I found that the 64 bit version of mapserv.exe was hanging on for 5 minutes after performing a capabilities request before exiting, even though returning the response document took less than a second. -- So it seems there's a bug in the 64 bit version of mapserv.exe, specific to a "getcapabilities" request. Incidently, now (in the 32 bit version) the generic "describefeaturetype" (i.e. without a typename) hangs in a similar manner, so this version is buggy as well. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -----Oprindelig meddelelse----- Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Guillaume Sueur Sendt: 27. november 2013 15:43 Til: mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses Hi, Did you properly set for each layer a "wfs_extent" ? Than can help. Best regards Guillaume Le 26/11/13 12:26, Lars I. Nielsen a ?crit : > Hi, > > I'm still having problems with my setup of a WFS server using > Mapserver 6.4.0 :-( > > My GetCapabilities requests take forever (or more precisely 5 minutes) to finish. Mapserver finishes in a split second, and returns a full document, but the connection - regardless of it being an url in a browser, or running ogrinfo.exe or some other program - stays open for circa 5 minutes before it finishes/times out. > > How can I get Mapserver/something-else to force closing the connection ? > > Mapserver runs as a standalone exe under IIS v6 on Windows 2003, but there's nothing in the IIS setup that I can find that prompts this behaviour. > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS > &version=1.0.0&request=getcapabilities > > Any advise will be helpful :-) > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens > Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. > +45 6313 5050 http://www.hvenegaard.dk > > > -----Oprindelig meddelelse----- > Fra: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Lars I. > Nielsen > Sendt: 26. november 2013 10:35 > Til: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - > issues with responses > > Hi Jukka, > > It turns out that it was my adding - PROCESSING "CLOSE_CONNECTION=DEFER" - statements to my layer definitions that blocked fetching attributes from other layers than the first. > > Apparently the OGR VRT frameworks needs to open separate connections, and keeping the first connection open blocked subsequent connections. > > This part now works :-) > > Still working on other issues though ... > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens > Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. > +45 6313 5050 http://www.hvenegaard.dk > > > -----Oprindelig meddelelse----- > Fra: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] > Sendt: 19. november 2013 15:59 > Til: Lars I. Nielsen; mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - > issues with responses > > Hi, > > I can only show how my MS 6.2.1 server reacts > > http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1. > 0.0&request=DescribeFeatureType erver_wfs?service=wfs&version=1.1.0&request=DescribeFeatureType> > > -Jukka Rahkonen- > > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Lars I. Nielsen > [lin at hvenegaard.dk] puolesta > L?hetetty: 19. marraskuuta 2013 16:16 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Standalone Mapserver 6.4 as WFS server - > issues with responses > > Hi, > > I got the standalone Mapserver 6.4 x64 up and running, but there are still some issues: > > > If I run "request=describefeaturetype" on any of the three typenames in my setup, it returns its list of attributes as it should. > > But if I omit the typename, wanting Mapserver to return a description of all three typenames (which is a valid request), it only returns the attributes for the first !?? > > Is this WAD, or is Mapserver forgetting to return attributes for the latter two typenames (as I suspect) ? > > > The server is online on this address if anyone wants to have a look: > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS > &version=1.0.0&request=getcapabilities > > DescribeFeatureType that works: > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS > &version=1.0.0&request=describefeaturetype&typename=GO_Flader > > DescribeFeatureType that doesn't work: > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS > &version=1.0.0&request=describefeaturetype > > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens > Bo Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. > +45 6313 5050 http://www.hvenegaard.dk > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From martin.kofahl at gmail.com Thu Nov 28 11:25:32 2013 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Thu, 28 Nov 2013 20:25:32 +0100 Subject: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues with responses In-Reply-To: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFF08@hvmex01> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFEDC@hvmex01> <808B91E58C3D454F8FE97DD4C5142C0C01AD66BDFF08@hvmex01> Message-ID: Lars, can you try to run the request from command line in order to rule out a connection between iis and mapserser. See http://mapserver.org/de/optimization/debugging.html#using-mapserv-cgi for an how-to. From command prompt you should be able to run somethin like X:\yz\mapserv64.exe -nh "QUERY_STRING=map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities" You'll have to chdir the Location of BallerupGO_WFS.map before. Are there differences between wfs Version 1.0.0 and 1.1.0? Kind regards, Martin 2013/11/26 Lars I. Nielsen > Hi, > > I'm still having problems with my setup of a WFS server using Mapserver > 6.4.0 :-( > > My GetCapabilities requests take forever (or more precisely 5 minutes) to > finish. Mapserver finishes in a split second, and returns a full document, > but the connection - regardless of it being an url in a browser, or running > ogrinfo.exe or some other program - stays open for circa 5 minutes before > it finishes/times out. > > How can I get Mapserver/something-else to force closing the connection ? > > Mapserver runs as a standalone exe under IIS v6 on Windows 2003, but > there's nothing in the IIS setup that I can find that prompts this > behaviour. > > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities > > Any advise will be helpful :-) > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent > Hvenegaard og Jens Bo Landinspekt?rer A/S > Rugaardsvej 55, DK-5000 Odense C > Denmark > Tel. +45 6313 5050 > http://www.hvenegaard.dk > > > -----Oprindelig meddelelse----- > Fra: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] P? vegne af Lars I. Nielsen > Sendt: 26. november 2013 10:35 > Til: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - > issues with responses > > Hi Jukka, > > It turns out that it was my adding - PROCESSING "CLOSE_CONNECTION=DEFER" > - statements to my layer definitions that blocked fetching attributes from > other layers than the first. > > Apparently the OGR VRT frameworks needs to open separate connections, and > keeping the first connection open blocked subsequent connections. > > This part now works :-) > > Still working on other issues though ... > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo > Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 > 6313 5050 http://www.hvenegaard.dk > > > -----Oprindelig meddelelse----- > Fra: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] > Sendt: 19. november 2013 15:59 > Til: Lars I. Nielsen; mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Standalone Mapserver 6.4 as WFS server - > issues with responses > > Hi, > > I can only show how my MS 6.2.1 server reacts > > > http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.0.0&request=DescribeFeatureType > < > http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.1.0&request=DescribeFeatureType > > > > -Jukka Rahkonen- > > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Lars I. Nielsen [ > lin at hvenegaard.dk] puolesta > L?hetetty: 19. marraskuuta 2013 16:16 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Standalone Mapserver 6.4 as WFS server - issues > with responses > > Hi, > > I got the standalone Mapserver 6.4 x64 up and running, but there are still > some issues: > > > If I run "request=describefeaturetype" on any of the three typenames in my > setup, it returns its list of attributes as it should. > > But if I omit the typename, wanting Mapserver to return a description of > all three typenames (which is a valid request), it only returns the > attributes for the first !?? > > Is this WAD, or is Mapserver forgetting to return attributes for the > latter two typenames (as I suspect) ? > > > The server is online on this address if anyone wants to have a look: > > > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=getcapabilities > > DescribeFeatureType that works: > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype&typename=GO_Flader > > DescribeFeatureType that doesn't work: > http://hvmgo01.hvenegaard.dk/mswfs/?map=BallerupGO_WFS.map&service=WFS&version=1.0.0&request=describefeaturetype > > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard og Jens Bo > Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 > 6313 5050 http://www.hvenegaard.dk > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From moises.pgser at gmail.com Thu Nov 28 11:55:04 2013 From: moises.pgser at gmail.com (moisessalgado) Date: Thu, 28 Nov 2013 11:55:04 -0800 (PST) Subject: [mapserver-users] Help install MapCache Message-ID: <1385668504523-5091744.post@n6.nabble.com> Hi everyone, I am newbie in MapServer, but I was succeed on set up a WMS service with a single tile. Now I am trying to set up MapCache to work with WMS service using tiles but I am stuck on the MapCache installation. I am following the steps in http://mapserver.org/mapcache/install.html but when I edit '/etc/apache2/sites-available/default' and add the following lines...: LoadModule mapcache_module modules/mod_mapcache.so Order Allow,Deny Allow from all MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml" ... and then, when I try to restart apache I get the error: * Starting web server apache2 [Thu Nov 28 17:48:09 2013] [warn] module mapcache_module is already loaded, skipping Syntax error on line 38 of /etc/apache2/sites-enabled/000-default: unknown type mapguide Action 'start' failed. The Apache error log may have more information. The line 38 of '/etc/apache2/sites-enabled/000-default' is: MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml" The complete content of '/etc/apache2/sites-enabled/000-default' is: ServerAdmin webmaster at localhost DocumentRoot /var/www Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined LoadModule mapcache_module modules/mod_mapcache.so Order Allow,Deny Allow from all MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml" Could someone help me understand and resolve this issue? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-install-MapCache-tp5091744.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Thu Nov 28 12:01:56 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 28 Nov 2013 21:01:56 +0100 Subject: [mapserver-users] Help install MapCache In-Reply-To: <1385668504523-5091744.post@n6.nabble.com> References: <1385668504523-5091744.post@n6.nabble.com> Message-ID: You can comment out the mapguide service from your mapcache.xml configuration file. Are you using an older version of mapcache? (the mapguide service was added in 1.2 iirc) regards, thomas On 28 November 2013 20:55, moisessalgado wrote: > Hi everyone, > > I am newbie in MapServer, but I was succeed on set up a WMS service with a > single tile. Now I am trying to set up MapCache to work with WMS service > using tiles but I am stuck on the MapCache installation. I am following the > steps in http://mapserver.org/mapcache/install.html but when I edit > '/etc/apache2/sites-available/default' and add the following lines...: > > LoadModule mapcache_module modules/mod_mapcache.so > > > > Order Allow,Deny > Allow from all > > MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml" > > > ... and then, when I try to restart apache I get the error: > > * Starting web server apache2 > [Thu Nov 28 17:48:09 2013] [warn] module mapcache_module is already loaded, > skipping > Syntax error on line 38 of /etc/apache2/sites-enabled/000-default: > unknown type mapguide > Action 'start' failed. > The Apache error log may have more information. > > The line 38 of '/etc/apache2/sites-enabled/000-default' is: > > MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml" > > The complete content of '/etc/apache2/sites-enabled/000-default' is: > > > ServerAdmin webmaster at localhost > > DocumentRoot /var/www > > Options FollowSymLinks > AllowOverride None > > > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > allow from all > > > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ > > AllowOverride None > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > Order allow,deny > Allow from all > > > ErrorLog ${APACHE_LOG_DIR}/error.log > > # Possible values include: debug, info, notice, warn, error, crit, > # alert, emerg. > LogLevel warn > > CustomLog ${APACHE_LOG_DIR}/access.log combined > > LoadModule mapcache_module modules/mod_mapcache.so > > > Order Allow,Deny > Allow from all > > MapCacheAlias /mapcache "/var/www/mapcache/mapcache.xml" > > > > Could someone help me understand and resolve this issue? > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-install-MapCache-tp5091744.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From moises.pgser at gmail.com Fri Nov 29 05:14:33 2013 From: moises.pgser at gmail.com (moisessalgado) Date: Fri, 29 Nov 2013 05:14:33 -0800 (PST) Subject: [mapserver-users] Help install MapCache In-Reply-To: References: <1385668504523-5091744.post@n6.nabble.com> Message-ID: <1385730873756-5091878.post@n6.nabble.com> Hi Thomas, I'm trying to install the mapcache yet. I've downloaded the zip file from https://github.com/mapserver/mapcache/archive/master.zip but got an error when i was installing. Then i try by '$git clone git://github.com/mapserver/mapcache.git' and got the same error on cmake step (as showed bellow). root at satelite:/var/www# git clone git://github.com/mapserver/mapcache.git Cloning into 'mapcache'... remote: Counting objects: 4270, done. remote: Compressing objects: 100% (1762/1762), done. remote: Total 4270 (delta 2628), reused 4126 (delta 2502) Receiving objects: 100% (4270/4270), 3.34 MiB | 719 KiB/s, done. Resolving deltas: 100% (2628/2628), done. root at satelite:/var/www# ls agrosat docs_maps fmc mapcache phpmyadmin webmap workshop root at satelite:/var/www# cd mapcache/ root at satelite:/var/www/mapcache# ls apache benchmark.py cmake include lib Makefile.vc mapcache.xml.sample nginx packaging release-notes.sh util astyle.sh cgi CMakeLists.txt INSTALL LICENSE mapcache.xml mod_geocache.doxyfile nmake.opt README static root at satelite:/var/www/mapcache# mkdir build root at satelite:/var/www/mapcache# cd build/ root at satelite:/var/www/mapcache/build# ls root at satelite:/var/www/mapcache/build# cmake .. -- The C compiler identification is GNU 4.7.3 -- The CXX compiler identification is GNU 4.7.3 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for strncasecmp -- Looking for strncasecmp - found -- Looking for symlink -- Looking for symlink - found -- Found ZLIB: /usr/local/lib/libz.a (found version "1.2.3") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49") -- Found JPEG: /usr/local/lib/libjpeg.a -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.29.0") -- Found APR: /usr/lib/libapr-1.so -- Found APU: /usr/lib/libaprutil-1.so -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for module 'pixman' -- package 'pixman' not found -- checking for module 'pixman-1' -- found pixman-1, version 0.28.2 -- Found PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so -- Found SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- * Configured options for the mapcache library -- * Mandatory components -- * png: /usr/lib/x86_64-linux-gnu/libpng.so -- * jpeg: /usr/local/lib/libjpeg.a -- * Curl: /usr/lib/x86_64-linux-gnu/libcurl.so -- * Apr: /usr/lib/libapr-1.so -- * Optional components -- * PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so -- * SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- * Berkeley DB: disabled -- * Memcache: disabled -- * TIFF: disabled -- * GeoTIFF: disabled -- * Experimental TIFF write support: disabled -- * PCRE: disabled -- * Experimental mapserver support: disabled -- Found GDAL: /usr/lib/libgdal.so -- Found GEOS: /usr/lib/libgeos_c.so -- * Seeder Configuration Options: -- * GEOS: /usr/lib/libgeos_c.so -- * OGR: /usr/lib/libgdal.so -- Found FCGI: /usr/lib/libfcgi.so -- * CGI Configuration Options: -- * FastCGI: /usr/lib/libfcgi.so -- Found APACHE: /usr/include/apache2 -- * Apache Module support status: -- * Mapcache Version String: mod_mapcache/1.3dev -- * Module will be installed to : Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. /usr/lib/apache2/modules -- Configuring done -- Generating done -- Build files have been written to: /var/www/mapcache/build root at satelite:/var/www/mapcache/build# make Scanning dependencies of target mapcache [ 2%] Building C object CMakeFiles/mapcache.dir/lib/lock.c.o [ 4%] Building C object CMakeFiles/mapcache.dir/lib/util.c.o [ 7%] Building C object CMakeFiles/mapcache.dir/lib/cache_tiff.c.o [ 9%] Building C object CMakeFiles/mapcache.dir/lib/imageio_jpeg.c.o [ 12%] Building C object CMakeFiles/mapcache.dir/lib/dimension.c.o [ 14%] Building C object CMakeFiles/mapcache.dir/lib/service_mapguide.c.o [ 17%] Building C object CMakeFiles/mapcache.dir/lib/service_kml.c.o [ 19%] Building C object CMakeFiles/mapcache.dir/lib/source_dummy.c.o [ 21%] Building C object CMakeFiles/mapcache.dir/lib/core.c.o [ 24%] Building C object CMakeFiles/mapcache.dir/lib/cache_memcache.c.o [ 26%] Building C object CMakeFiles/mapcache.dir/lib/source.c.o [ 29%] Building C object CMakeFiles/mapcache.dir/lib/buffer.c.o [ 31%] Building C object CMakeFiles/mapcache.dir/lib/service_ve.c.o [ 34%] Building C object CMakeFiles/mapcache.dir/lib/axisorder.c.o [ 36%] Building C object CMakeFiles/mapcache.dir/lib/cache_sqlite.c.o [ 39%] Building C object CMakeFiles/mapcache.dir/lib/imageio_png.c.o In file included from /usr/include/png.h:534:0, from /var/www/mapcache/lib/imageio_png.c:32: /usr/include/zlib.h:86:5: erro: unknown type name ?z_const? /usr/include/zlib.h:86:19: erro: expected ?:?, ?,?, ?;?, ?}? or ?__attribute__? before ?*? token /usr/include/zlib.h:1332:32: erro: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?Z_ARG? /usr/include/zlib.h:1656:5: erro: unknown type name ?z_off64_t? /usr/include/zlib.h:1731:1: erro: unknown type name ?z_crc_t? make[2]: ** [CMakeFiles/mapcache.dir/lib/imageio_png.c.o] Erro 1 make[1]: ** [CMakeFiles/mapcache.dir/all] Erro 2 make: ** [all] Erro 2 root at satelite:/var/www/mapcache/build# -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-install-MapCache-tp5091744p5091878.html Sent from the Mapserver - User mailing list archive at Nabble.com.