Re: [mapserver-users] wfs error gml:nullmissing/gml:null
2010/5/19 Luca Delucchi lucadel...@gmail.com: In web section I set the metadata wfs_srs like this EPSG:900913 EPSG:4326, but the web section would be for the output... i solve removing EPSG:900913 from wfs_srs and reprojecting the wfs layer in openlayers thank's Luca ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wfs error gml:nullmissing/gml:null
Hi, Nice to hear that it works now. Even better if we understood what was the real reason for a failure. Now I can just guess that it had to do with projections, as usual, and your EPSG:4326 map extents were interpreted as meters in EPSG:900913. -Jukka- -Alkuperäinen viesti- Lähettäjä: Luca Delucchi [mailto:lucadel...@gmail.com] Lähetetty: 21. toukokuuta 2010 12:02 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] wfs error gml:nullmissing/gml:null 2010/5/19 Luca Delucchi lucadel...@gmail.com: In web section I set the metadata wfs_srs like this EPSG:900913 EPSG:4326, but the web section would be for the output... i solve removing EPSG:900913 from wfs_srs and reprojecting the wfs layer in openlayers thank's Luca ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetFeatureInfo request doubts
Hi, I've got a WMS service through MapServer, and I want that the layers served in it be queryable through Desktop GIS software. How many ways are there to present the information?? I'm going crazy because of the documentation, I don't understand the differences between using wms_feture_info_mime_type or DUMP TRUE, etc. Can someone help me? Thanks. Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo request doubts
Hi, This is indeed a little bit odd. This is captured from http://mapserver.org/ogc/wms_server.html # GetFeatureInfo: return info about feature(s) at a query (mouse click) location. MapServer supports 3 types of responses to this request: * text/plain output with attribute info. * text/html output using MapServer query templates specified in the CLASS template parameter. The MIME type returned by the Class templates defaults to text/html and can be controlled using the metadata wms_feature_info_mime_type. * application/vnd.ogc.gml, GML.1 or GML for GML features. For making the layer queryable at all there must have a TEMPLATE line in LAYER definitions. TEMPLATE d:/program files/ms4w/apps/template.html The template file must exist and it must validate the security test Templates must contain the magic string 'mapserver template' in the first line of the template. Now when you have TEMPLATE set and valid template file on disk your server should support GetFeatureInfo. The only supported info_format now it text/plain. However, it does not give any other info about features than a feature ID. You must add first a line into LAYER-METADATA wms_include_items all starts to sent all the attributes wms_include_items SPA,SCI,SCI2 selects the named attributes. Attributes must be comma separated but there must not be any white space characters. Now you should be able to get results as plain text. Adding support for gml output is done by adding DUMP TRUE into LAYER definitions. Now INFO_FORMAT=application/vnd.ogc.gml However, you will need to define what will be includen in the output by adding gml_include_items all or something. If you want to give also output as text/html you must do two further things: - add to LAYER wms_feature_info_mime_type text/html - creare valid template, header and footer documents on server. You did have a template file already, that is compulsory for making GetFeatureInfo work at all, but until now it could be just a fake file. There is some extra magic with metadata inputs, for example ows_include_items should be enought instead of using both the wms_include_items and gml_include items. But by remembering these four things, reading the documentation and experimenting you will do it. TEMPLATE - to turn it on DUMP TRUE - to make it support gml wms_feature_info_mime_type - to make it support text/html ***_include_items - to make is send some usable info I hope I have understood it right, I have not used GetFeatureInfo very often. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta David Alda Fernandez de Lezea Lähetetty: 21. toukokuuta 2010 14:29 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] GetFeatureInfo request doubts Hi, I've got a WMS service through MapServer, and I want that the layers served in it be queryable through Desktop GIS software. How many ways are there to present the information?? I'm going crazy because of the documentation, I don't understand the differences between using wms_feture_info_mime_type or DUMP TRUE, etc. Can someone help me? Thanks. Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS setup help
I'm trying to get a map file configured to produce tiles using a WMS source (http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilitiesSERVICE=WMS) I get the following error: [Fri May 21 16:33:36 2010].698000 CGI Request 1 on process 3172 [Fri May 21 16:33:36 2010].698000 mapserv(): Web application error. No way to generate map extent. [Fri May 21 16:33:36 2010].698000 msCalculateScale(): General error message. Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, maxy=-1.00. [Fri May 21 16:33:36 2010].698000 msTileSetExtent (-10613123.724549, 3475749.327014) (-10610687.294272, 3478185.757290) [Fri May 21 16:33:36 2010].698000 msDrawMap(): Drawing Label Cache, 0.000s [Fri May 21 16:33:36 2010].698000 msDrawMap() total time: 0.000s [Fri May 21 16:33:36 2010].745000 msSaveImage() total time: 0.047s My map file is: MAP IMAGETYPE AGG SIZE 256 256 IMAGECOLOR 255 255 255 TRANSPARENTON FONTSET../../fonts/fonts.list CONFIG PROJ_LIB c:\ms4w\proj\nad\ CONFIG MS_ERRORFILE c:\ms4w\tmp\errors2.txt DEBUG 3 WEB IMAGEPATH /tmp/ms_tmp/ END #Web PROJECTION init=epsg:4326 END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER DEBUG ON NAME SatImage TYPE RASTER STATUS ON CONNECTION http://imsortho.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Texas?; CONNECTIONTYPE WMS EXTENT -95.9342769159 28.7882994499 -94.979133 29.1916672087 METADATA wms_srs EPSG:4326 wms_name Houston-GalvestonTX_1.0ft_Color_Dec_2007_08 wms_server_version 1.1.1 wms_format image/png wms_latlonboundingbox -95.9342769159 28.7882994499 -94.979133 29.1916672087 END #METADATA END #Layer END #Map I have ms4w tools installed. What am I missing? Thanks Kent W. Morrison Software Development Manager Advanced Tracking Technologies, Inc. 6001 Savoy, Suite 600, Houston Texas 77036 (W) 713-353-6065 (C) 832-434-8175 mailto:kmorri...@advantrack.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS setup help
Hello Kent, My guess is that you are missing the EXTENT parameter at the MAP object level. In other words, copy the EXTENT line from your LAYER object, and place it after your FONTSET line. I hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Kent Morrison wrote: I'm trying to get a map file configured to produce tiles using a WMS source (http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilitiesSERVICE=WMS http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilitiesSERVICE=WMS) I get the following error: [Fri May 21 16:33:36 2010].698000 CGI Request 1 on process 3172 [Fri May 21 16:33:36 2010].698000 mapserv(): Web application error. No way to generate map extent. [Fri May 21 16:33:36 2010].698000 msCalculateScale(): General error message. Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, maxy=-1.00. [Fri May 21 16:33:36 2010].698000 msTileSetExtent (-10613123.724549, 3475749.327014) (-10610687.294272, 3478185.757290) [Fri May 21 16:33:36 2010].698000 msDrawMap(): Drawing Label Cache, 0.000s [Fri May 21 16:33:36 2010].698000 msDrawMap() total time: 0.000s [Fri May 21 16:33:36 2010].745000 msSaveImage() total time: 0.047s My map file is: MAP IMAGETYPE AGG SIZE 256 256 IMAGECOLOR 255 255 255 TRANSPARENTON FONTSET../../fonts/fonts.list CONFIG PROJ_LIB c:\ms4w\proj\nad\ CONFIG MS_ERRORFILE c:\ms4w\tmp\errors2.txt DEBUG 3 WEB IMAGEPATH /tmp/ms_tmp/ END #Web PROJECTION init=epsg:4326 END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER DEBUG ON NAME SatImage TYPE RASTER STATUS ON CONNECTION http://imsortho.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Texas?; CONNECTIONTYPE WMS EXTENT -95.9342769159 28.7882994499 -94.979133 29.1916672087 METADATA wms_srs EPSG:4326 wms_name Houston-GalvestonTX_1.0ft_Color_Dec_2007_08 wms_server_version 1.1.1 wms_format image/png wms_latlonboundingbox -95.9342769159 28.7882994499 -94.979133 29.1916672087 END #METADATA END #Layer END #Map I have ms4w tools installed. What am I missing? Thanks Kent W. Morrison Software Development Manager *Advanced Tracking Technologies, Inc.* 6001 Savoy, Suite 600, Houston Texas 77036 (W) 713-353-6065 (C) 832-434-8175 mailto:kmorri...@advantrack.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: mapserver-users Digest, Vol 28, Issue 46 (Re: WMS setup help)
Thanks for the response Jeff. That eleminated the error but I get blank tiles. When I look at the WMS using Gaia 3.4.2 I can see the image. Using mapserver I get blank tiles for the same area. The mapserver log shows: [Fri May 21 18:34:32 2010].534000 CGI Request 1 on process 2928 [Fri May 21 18:34:32 2010].534000 msTileSetExtent (-10566616.570158, 3404849.205975) (-10547125.127948, 3424340.648185) [Fri May 21 18:34:32 2010].534000 msDrawMap(): Drawing Label Cache, 0.000s [Fri May 21 18:34:32 2010].534000 msDrawMap() total time: 0.000s [Fri May 21 18:34:32 2010].55 msSaveImage() total time: 0.016s [Fri May 21 18:34:32 2010].565000 mapserv request processing time (loadmap not incl.): 0.031s So it doesn't look like there are any errors. Does anyone have a map file they used to access USGS WMS theat I can look at? Thanks, Kent Message: 2 Date: Fri, 21 May 2010 14:07:33 -0300 From: Jeff McKenna jmcke...@gatewaygeomatics.com Subject: Re: [mapserver-users] WMS setup help To: 'mapserver-users@lists.osgeo.org' mapserver-users@lists.osgeo.org Message-ID: 4bf6bdd5.2060...@gatewaygeomatics.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello Kent, My guess is that you are missing the EXTENT parameter at the MAP object level. In other words, copy the EXTENT line from your LAYER object, and place it after your FONTSET line. I hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Kent Morrison wrote: I'm trying to get a map file configured to produce tiles using a WMS source (http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilitiesSERVICE=WMS http://imsortho.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Ortho_Texas/capabilities_1_1_1.xml?REQUEST=capabilitiesSERVICE=WMS) I get the following error: [Fri May 21 16:33:36 2010].698000 CGI Request 1 on process 3172 [Fri May 21 16:33:36 2010].698000 mapserv(): Web application error. No way to generate map extent. [Fri May 21 16:33:36 2010].698000 msCalculateScale(): General error message. Invalid image extent, minx=-1.00, miny=-1.00, maxx=-1.00, maxy=-1.00. [Fri May 21 16:33:36 2010].698000 msTileSetExtent (-10613123.724549, 3475749.327014) (-10610687.294272, 3478185.757290) [Fri May 21 16:33:36 2010].698000 msDrawMap(): Drawing Label Cache, 0.000s [Fri May 21 16:33:36 2010].698000 msDrawMap() total time: 0.000s [Fri May 21 16:33:36 2010].745000 msSaveImage() total time: 0.047s My map file is: MAP IMAGETYPE AGG SIZE 256 256 IMAGECOLOR 255 255 255 TRANSPARENTON FONTSET../../fonts/fonts.list CONFIG PROJ_LIB c:\ms4w\proj\nad\ CONFIG MS_ERRORFILE c:\ms4w\tmp\errors2.txt DEBUG 3 WEB IMAGEPATH /tmp/ms_tmp/ END #Web PROJECTION init=epsg:4326 END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER DEBUG ON NAME SatImage TYPE RASTER STATUS ON CONNECTION http://imsortho.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Texas?; CONNECTIONTYPE WMS EXTENT -95.9342769159 28.7882994499 -94.979133 29.1916672087 METADATA wms_srs EPSG:4326 wms_name Houston-GalvestonTX_1.0ft_Color_Dec_2007_08 wms_server_version 1.1.1 wms_format image/png wms_latlonboundingbox -95.9342769159 28.7882994499 -94.979133 29.1916672087 END #METADATA END #Layer END #Map I have ms4w tools installed. What am I missing? Thanks Kent W. Morrison Software Development Manager *Advanced Tracking Technologies, Inc.* 6001 Savoy, Suite 600, Houston Texas 77036 (W) 713-353-6065 (C) 832-434-8175 mailto:kmorri...@advantrack.com -- End of mapserver-users Digest, Vol 28, Issue 46 *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users