RE: [mapserver-users] WMS don't load
Put the url in double quotes, i.e.: curl.exe http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15mREQUEST=GetMapSERVICE=WMSFORMAT=image/gifSTYLES=HEIGHT=300VERSION=1.1.1SRS=EPSG:4326WIDTH=400BBOX=-80.9516220735786,44.92,-57.1183779264214,62.78TRANSPARENT=TRUEEXCEPTIONS=application/vnd.ogc.se_xml When I try this, I get a valid GIF image back. ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 20 October, 2008 1:33 PM To: Brent Fraser Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WMS don't load Are you familiar with curl? I don't what is it and whait it is supposed to return. I downloaded curl.exe anyway but I need help. What is the url I should send? I tried curl.exe http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15mREQUEST=GetMapSERVICE=WMSFORMAT=image/gifSTYLES=HEIGHT=300VERSION=1.1.1SRS=EPSG:4326WIDTH=400BBOX=-80.9516220735786,44.92,-57.1183779264214,62.78TRANSPARENT=TRUEEXCEPTIONS=application/vnd.ogc.se_inimage But I just get a bunch of error HTML HEADTITLEMapServer Message/TITLE/HEAD !-- MapServer version 5.0.2-AoC OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP O UTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDA L INPUT=SHAPEFILE -- BODY BGCOLOR=#FF onload=parent.window.ctl.displayErrorMessage(); mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. /BODY/HTML'REQUEST' is not recognized as an internal or external command, operable program or batch file. 'SERVICE' is not recognized as an internal or external command, operable program or batch file. Invalid parameter - /gif 'STYLES' is not recognized as an internal or external command, operable program or batch file. 'HEIGHT' is not recognized as an internal or external command, operable program or batch file. 'VERSION' is not recognized as an internal or external command, operable program or batch file. 'SRS' is not recognized as an internal or external command, operable program or batch file. 'WIDTH' is not recognized as an internal or external command, operable program or batch file. 'BBOX' is not recognized as an internal or external command, operable program or batch file. 'TRANSPARENT' is not recognized as an internal or external command, operable program or batch file. 'EXCEPTIONS' is not recognized as an internal or external command, operable program or batch file. Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3 Tél.: (418) 650-5115 #5281 Fax.: (418) 654-3144 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.inspq.qc.ca http://www.inspq.qc.ca/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] schema .dtd URL return by a GetCapabilitiesrequest
You can use MAP.WEB.METADATA.ows_schemas_location to point to a base URL. See http://mapserver.gis.umn.edu/docs/howto/wms_server/#web-object-metadata for more details. So, if you were to setup your own local schema repository, you would: - download http://schemas.opengis.net/SCHEMAS_OPENGIS_NET.tgz - unzip to a web accessible directory (say, in /ogc_schemas/) - set MAP.WEB.METADATA.ows_schemas_location to http://localhost/ogc_schemas ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Ouellet Sent: 14 October, 2008 12:59 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] schema .dtd URL return by a GetCapabilitiesrequest When I send a GetCapabilities request to mapserver, I receive à XML response with this link at the top of the file: http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; Within the intranet, some client application does not have internet access so it failed/crash... Is it possible to specify a local URL for the .dtd return by the GetCapabilities request unstead of this URL? thank you in advance! MartinO ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WMS in Google Earth
Right, those may or may not have MapServer WMSs with the service= required behaviour. That said, I can connect a WMS from my local ms4w to Google Earth without problem. Try this and check your web logs. See the actual request passed by GE, and this should help you diagnose the issue. Since you are using 5.2.0, I would not suspect it's an issue of a missing styles= parameter. ..Tom -Original Message- From: Alexandre Dube [mailto:[EMAIL PROTECTED] Sent: Fri 03-Oct-08 08:09 To: Kralidis,Tom [Burlington] Cc: MAPSERVER USERS Subject: Re: [mapserver-users] WMS in Google Earth Hi Tom, Thanks for your reply, but unfortunately that didn't solved the problem. In fact, the existing WMS servers in GE, don't use service=WMS in any Link string and they work... However, the wms_onlineresource IS always the first part of the Link string, not the actual local link you copy/paste when in the WMS Parameters menu... Does this means that GE don't accept local wms_onlineresource ? I think this could make sense... Any ideas ? Alexandre Kralidis,Tom [Burlington] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Dube Sent: 02 October, 2008 4:40 PM To: MAPSERVER USERS Subject: Re: [mapserver-users] WMS in Google Earth Back with my local WMS on GE problem. I think it has something to do with the wms_onlineresource in WEB METADATA. I downloaded the gmap datas, which are already in GE as the last WMS service available, to be able to test locally what is already working on the internet. At first, it worked in GE. Then, I noticed that the wms_onlineresource was set to : http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?; which seemed wrong to me, because my other map doesn't exist on the internet, only locally. So I changed it to : http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap 75_wms.map and then I doesn't work anymore... also tried : http://127.0.0.1:port/cgi-bin/mapserv?; no result... I must be close the the answer. I have searched a lot over the internet but I haven't found anything yet. Any hints ? Alexandre Alexandre Dube wrote: Hi list, I'm trying to figure how to setup my own wms layer in GE. So far, I'm able to see each layer in the WMS Parameters, but if I select any, I get a big red X, meaning it's not working... If I copy the Link created by GE, paste it in a browser, add SERVICE=WMSBBOX=-180,-90,180,90, then I get a map. So, I don't really know what I'm missing here. Any hint ? I use mapserver 5.2.0 on Linux. This might be due to the SERVICE parameter missing WMS GetMap request. If you, once you add the layer, right click and select Properties, adding service=WMS to the Link string, you should be able to get a valid map image returned. That said, I thought we lifted the service param from WMS GetMap requests (GetMap sans service= works for me in svn trunk). ..Tom -- Alexandre Dubé Mapgears www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WMS don't load
Do you have EPSG:42304 defined in your mapfile? I wonder whether this is the issue. Having said this, if your output projection is EPSG:4326, you're better off defining wms_srs in the LAYER.METADATA to bypass the reprojection. ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 01 October, 2008 9:12 AM To: Rahkonen Jukka Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WMS don't load I agree this connection was not a good example. Before creating the mapfile I used it to get a map on Internet Explorer to verify if I had a network problem. Since it was working I put it in the mapfile I created the following mapFile based on this example http://mapserver.gis.umn.edu/docs/howto/wms_client/#adding-a-wms-layer and it still work on one server but not on the other. I get the blank page. When I test the mapFile with shp2img I got this message shp2img -m TutorielStatic.map -o test.png msProcessProjection(): Projection library error. No such file or directory br I got this message on the server who works well also. My EPSG file contains 4326. Can't see why I get that error. The second server is installed on a virtual environment on a vmware infrastructure. I'll talk with our network admin to see if it could be an issue. Here is the mapFile I'm now using. thanks for your help, steve : MAP IMAGETYPE PNG EXTENT -80.43000 44.99000 -57.64000 62.78000 SIZE 400 300 IMAGECOLOR 255 255 255 #Background color PROJECTION init=epsg:4326 #wgs84 lat long END WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ END LAYER NAME prov_bound TYPE RASTER STATUS default CONNECTION http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?; CONNECTIONTYPE WMS METADATA wms_srs EPSG:42304 wms_nameprov_bound wms_server_version 1.1.1 wms_format image/gif END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] How to pimp WMS meta information?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jochen Topf Sent: 26 September, 2008 3:27 AM To: Barend Kobben Cc: Kralidis,Tom [Burlington]; Mapserver-users Subject: Re: [mapserver-users] How to pimp WMS meta information? On Fri, Sep 26, 2008 at 09:05:06AM +0200, Barend Kobben wrote: FYI, the valid way to extend the GetCapabilities is to use the VendorSpecificCapabilities / element. (See the WMS spec on the OGC pages www.opengeospatial.org) And I'd rather use that, but as far as I know you can't set this from a Mapserver map file? Correct. You would have to use something like mapscript to output a modified capabilities. ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] How to pimp WMS meta information?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jochen Topf Sent: 25 September, 2008 9:49 AM To: Markus Spring Cc: Mapserver-users Subject: Re: [mapserver-users] How to pimp WMS meta information? On Tue, Sep 16, 2008 at 07:16:03AM +0200, Markus Spring wrote: trying to set up a multi-map service based WMS mapservices and OpenLayers, I would like to retrieve user-defined meta information from a map via the GetCapabilities request. For example, if I define METADATA WMS_TITLE Palliativstationen WMS_ONLINERESOURCE http://gis.local/wms/palliativ; WMS_SRS epsg:31468 WMS_SHOW_QUERY_IN large_popup END I would like to retrieve the value large_popup of WMS_SHOW_QUERY_IN through the GetCapabilities call. The background idea is that this information could be used by my application but should not harm other people's use of the WMS service. Is there any viable way to accomplish this with a mapserver based WMS service? I have used the WMS keywords on a WMS layer to add special infos only needed for my application. Not the cleanest approach, because other applications will, of course, also see those special keywords you put in, but as a workaround it is ok. Would be nice if there was an official way to do this, though. Out of the box, MapServer will return a well-formed, valid XML document which obeys the WMS standard. Having said this, you could use mapscript WxS (http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to, on GetCapabilities, intercept the request/response mechanism and write out a modified GetCapbilities XML document, adding in your own XML elements and definitions, i.e.: Layer Namefoo/Name Titlebar/Title MyProperty name=WMS_SHOW_QUERY_INlarge_popup/MyProperty ... This would work, with the assumptions that: 1./ a WMS Capabilities parser which is doing DTD checking would choke on this, as it is not part of the WMS DTD 2./ if there is no DTD checking, the Capabilities will be processed, only 'aware' clients would know what to do with this info Of course, if you want to be to-spec 100%, there are ways to extend DTDs with inline ENTITY's, etc. :) Hope this helps. ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] KML for WMS Service
MapServer does not (currently) support KML output. If you're talking about using a KML document as a wrapper to a WMS service, then you'll find this (nice) example handy: http://ilmbwww.gov.bc.ca/dm/wms/data.html ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Martinez Morata Sent: 23 September, 2008 5:00 AM To: mapserver Subject: [mapserver-users] KML for WMS Service Hi list. I just a little question. How I can create a KML file to show my WMS server in Google Earth? Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] service exception
I'm guessing you are in WMS/WFS/WCS/SOS mode? You could use mapscript WxS to alter the output message before returning an exception to the client. http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zhao peisheng Sent: 11 September, 2008 10:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] service exception Hi all, Currently, the MapServer will return serviceException with a very detailed message, such as query error and load error, if there is a error. I am wanna to only return a general message instead of the detailed message. I tried to set up ERROR within Web tag in map file, but failed. How to deal with it? Thanks. Peisheng Stay up to date on your PC, the Web, and your mobile phone with Windows Live. See Now http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WCS 1.1.0 support in MapServer 5.2?
Committed in r7906. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Waldron Sent: 11 September, 2008 12:02 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? Glenn, I would suggest ensuring that -DUSE_LIBXML2 appears in the compile lines as mapserver is building. I would suggest doing a make clean after the configure. I would suggest ensuring that you are really using the newly installed executable after rebuilding and installing it. It is *almost* certain you have just not done a clean enough rebuild and reinstall with the new options. Frank, You were correct; I was copying mapserv to the wrong place. On a related note, I found what I believe to be a bug: mapwcs11.c, line 1149 There should be no comma at the end of the line. The msIO_fprintf statement results in junk; removing the comma fixes the problem. Glenn -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Re: Display a map in lower detail
FYI there is an example of shape thinning using Perl mapscript at http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/perl/examples/thin.pl ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Marte Raphael Y. Soliza Sent: Sun 31-Aug-08 15:00 To: [EMAIL PROTECTED] Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Re: Display a map in lower detail Thanks a lot, it's what I exactly needed. On Mon, Sep 1, 2008 at 1:05 AM, ROBERT HOLLINGSWORTH [EMAIL PROTECTED]wrote: You're basically describing generalization here. I don't think mapscript has facilities for this, but you may be able to perform your own generalization on your shape objects. Try a google on Douglas-Peucker algorithm and see what you find. In some cases I think people simplify their polygons at various scales in advance and store them, then use the mapserver CLASS and MINSCALE/MAXSCALE in the mapfile to select which polygons to output. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer history
Interesting thread going on at http://lists.osgeo.org/pipermail/discuss/2008-August/004120.html I think it would be valuable to have this for MapServer. There would be initial effort, but it could be easily maintained over time (2-3 times per year/as needed). I'd be interested in helping out, or even coordinating, but this would depend on compilation and input from many in the MapServer community (users, developers, etc.). Any interest? ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file
John: you could add the extra keyword-value pairs to the CONNECTION object, i.e.: CONNECTION http://localhost:8080/geoserver/wms?filter=fieldname=fieldvalue; Hope this helps ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of John Mitchell Sent: Mon 18-Aug-08 19:10 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file Below I have listed a sample layer section which does a WMS call to a local geoserver and this work fine, but what I would like to now do is be able to add to this WMS request a filter parameter (e.g. filter=fieldname=fieldvalue) which geoserver can accept. How can I add adhoc requests like the filter example listed above to the end of the WMS request when mapserver is making a WMS request? Thanks, John LAYER # name of layer NAME vector:sangis_unexploded_ordnance_child GROUP SanGIS_parent # what type of data is this? TYPE RASTER # always returned with interface STATUS ON TRANSPARENCY 100 CONNECTION http://localhost:8080/geoserver/wms; CONNECTIONTYPE WMS METADATA wms_srs EPSG:4326 wms_namevector:sangis_unexploded_ordnance wms_server_version 1.1.1 wms_format image/png wms_style sangis_unexploded_ordnance_style END END -- John J. Mitchell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [MAPSERVER-USERS] epsg code for 'UTM 43 North'
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh Ambastha Sent: 19 August, 2008 12:58 PM To: mapserver-users@lists.osgeo.org Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' How can I calculate exact EPSG code for the date projected in 'UTM 43 North' ? I just got few clues from this link : http://spatialreference.org/ref/epsg/?search=UTMsrtext=Search If I check my proj installation, I find that the epsg file has a few references (in /usr/local/share/proj/epsg or in C:\ms4w\proj\nad\epsg for MS4W installs), such as: # WGS 84 / UTM zone 43N 32643 +proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m +no_defs ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WMS Request issue
Brian: what you're actually getting back is a service exception (try saving and opening the output in a text editor such as Notepad), which states invalid layers given. In your WMS GetMap request, you specify the layer parcelwms which does exists in your mapfile (i.e. LAYER.NAME). When I try changing the layer name to parcels, i.e.: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.mapservice=WMSversion=1.1.1request=GetMaplayers=parcelsstyles=defaultsrs=EPSG:26915bbox=276595,5065831,342552,5113395width=600height=500format=image/png I get a valid response back. ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Fischer, Brian Sent: Fri 15-Aug-08 10:52 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] WMS Request issue MapServer users: Has anyone else ran into this issue. I am trying to access a WMS service I setup through a web browser to test it and the browser keeps prompting me to download mapserv.exe instead of executing it. Any ideas why it works on a non-wms request and not the wms getmap request? Both are using the same location and .exe on the server. It is using MapServer 5.2 from MS4W 2.2.8. Thanks, Brian If I do a non-wms request it works (example below): http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.mapmapext=276595%205065831%20342552 %205113395mapsize=821%20638mode=maplayers http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.mapmapext=276595%205065831%2034255 2%205113395mapsize=821%20638mode=maplayers = If I do a WMS GetMap request it prompts me to download the .exe: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.mapservice=WMSversion=1.1.1reques t=GetMaplayers=parcelwmsstyles=defaultsrs=EPSG:26915bbox=276595,5065 831,342552,5113395width=600height=500format=image/png http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.mapservice=WMSversion=1.1.1reque st=GetMaplayers=parcelwmsstyles=defaultsrs=EPSG:26915bbox=276595,506 5831,342552,5113395width=600height=500format=image/png The mapfile is pretty straightforward as well. MAP NAME 'DouglasOGC' SIZE 800 650 STATUS ON EXTENT 5069486 285288 5109721 334186 UNITS METERS FONTSET 'fonts/fontset.list' SYMBOLSET 'symbols/symbol.sym' CONFIG PROJ_LIB C:\proj\nad PROJECTION init=epsg:26915 END WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ METADATA wms_title Douglas County WMS Server wms_onlineresource http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map wms_srs EPSG:26915 wms_abstract The Douglas County WMS server has been setup for testing purposes only. The data should not be used for any official decisions wfs_title Douglas County WFS Server wfs_onlineresource http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map wfs_srs EPSG:26915 wfs_abstract The Douglas County WFS server has been setup for testing purposes only. The data should not be used for any official decisions END END LEGEND STATUS ON END LAYER # Parcel Polygon Layer NAME parcels METADATA wms_title parcelwms 'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain' wfs_title parcelwfs gml_featureid FID gml_include_items PIN,GIS_ACRES,TAXPAYER END DATA 'ogc/parcels_utm15' DUMP TRUE #MAXSCALE 5 #MINSCALE 500 STATUS DEFAULT TYPE POLYGON PROJECTION init=epsg:26915 END CLASS NAME Parcels SYMBOL 'plainline' COLOR -1 -1 -1 OUTLINECOLOR 153 255 153 SIZE 1.5 END END # Parcels Polygon Layer END ## end Map Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Website: www.houstonengineeringinc.com http://www.houstonengineeringinc.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS Getcapabilities - XML header missing
Which version of MapServer are you using? All XML output from MapServer (AFAIK) writes out an XML declaration (which is required of XML). Note that WFS GetCapabilities does not output GML, but a Capabilities XML document. Or do you mean the character encoding of the document itself (which MapServer also outputs)? ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Gabriel Messner Sent: Tue 15-Jul-08 12:09 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] WFS Getcapabilities - XML header missing When I request the WFS capabilities to my WFS server, the XML document generated hasn´t header of type: ?xml version='1.0' encoding=UTF-8 ? Therefore, I´m not be able to know the encoding type of my GML... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WMS raster display, getfeatureinfo from vectorlayer
You could use a mapscript WxS wrapper to, when receiving a GetFeatureInfo request, replace the LAYERS/QUERY_LAYERS parameters with the vector layer. ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of percy Sent: Fri 11-Jul-08 10:38 To: mapserver Cc: Steve Lime Subject: Re: [mapserver-users] WMS raster display,getfeatureinfo from vectorlayer I'm starting to think that just handling this with a mapscript wrapper script might be the easiest approach. Any thoughts? Thanks, Percy percy wrote: thanks, nice idea. I tried it, and that did not work... relevant mapfile section: LAYER NAME Geologic_Map_Of_North_America TYPE RASTER STATUS ON data /vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif maxscale 1000 MINSCALE 50 Metadata WMS_TITLE Geologic Map Of North America WMS_SRS epsg:4326 END # metadata END #layer LAYER NAME Geologic_Map_Of_North_America TYPE query STATUS On data GMNA_S_OneGeo TOLERANCE 0 TOLERANCEUNITS pixels TRANSFORM TRUE DUMP TRUE HEADER templates/GMNA_query_header.html TEMPLATE templates/GMNA_query_body.html FOOTER templates/GMNA_query_footer.html Metadata WMS_TITLE Geologic Map Of North America WMS_SRS epsg:4326 GML_INCLUDE_ITEMS DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat WMS_INCLUDE_ITEMS DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat END # metadata END #layer Steve Lime wrote: What about using GROUPs or layers with the same name where the second layer is TYPE QUERY? Steve On 7/10/2008 at 2:14 PM, in message [EMAIL PROTECTED], percy [EMAIL PROTECTED] wrote: I discussed this issue with Tom K. on the IRC yesterday, and he thought it was of general interest and should be posted and potentially requested as a feature. Scenario: we have a Geologic map that has super complex cartography that we don't want to reproduce in the mapfile (600+ classes, tons of patterns, etc). So we dumped out a raster of it to serve as WMS. However, when the user does a GetFeatureInfo on this WMS, we want to return attribute data from the original shapefile. I can envision this being taken care of at the layer level as a metadata tag like WMS_query_redirect. In the short term we're working on a little apache mod_rewrite magic to take care of it :-) Cheers, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS-Mapscript
This works on layers of CONNECTIONTYPE WFS (i.e. MapServer fetches from the remote WFS). When I try your PHP code against the following layer def: LAYER NAME envirodat GROUP VECTOR TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION http://map.ns.ec.gc.ca/envdat/map.aspx?; PROJECTION init=epsg:4326 END METADATA wfs_request_method GET wfs_connectiontimeout 60 wfs_version 1.0.0 wfs_service WFS wfs_typename envirodat wfs_latlonboundingbox -64.6622 46.7594 -52.6808 55.2333 END CLASS NAME Water Quality Monitoring Stations COLOR 255 255 0 END END I get back the path to the resulting GML file as defined in http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj. Hope this helps. ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Dzilberte Bekode Sent: Wed 09-Jul-08 18:44 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] WFS-Mapscript Hi everybody. I'm trying to handle WFS with Mapscript but it's not working for me. Output of the code below supose to be the name of the GML file, but it's only empty string. What's wrong?? CODE:: ?php dl('php_mapscript.dll'); $map_path=/ms4w/apps/test/; $map = ms_newMapObj($map_path.lol.map); $kokot = $map-getLayerByName(MyWFS); $GMLname= = .$kokot-executeWFSGetfeature(). =; ? HTML HEAD TITLEWFS-pokus/TITLE /HEAD BODY IMG SRC=?php echo $image_url; ? ?php echo $GMLname; ? /BODY /HTML MAPFILE:: MAP NAME demoPlugins SIZE600 400 STATUS ON EXTENT -60 -1334715 -159000 -1132715 IMAGECOLOR 255 255 255 UNITS METERS PROJECTION init=EPSG:102067 END WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ METADATA wfs_title msCross WFS Server ## REQUIRED wfs_onlineresource http://127.0.0.1/cgi-bin/mapserv?; ## Recommended wfs_srs EPSG:102067 EPSG:3064 EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 ## Recommended END END LEGEND STATUS EMBED KEYSIZE 20 15 END ## # LAYERS # ## LAYER NAME MyWFS CONNECTIONTYPE postgis CONNECTION user=JAVLLAR password=kreator host=localhost dbname=SlovGis DATA the_geom FROM setl METADATA WMS_SRS EPSG:28992 wfs_title MyWFS ## REQUIRED gml_featureid id ## REQUIRED gml_include_items id ## Optional (serves all attributes for layer) END DUMP TRUE ## REQUIRED STATUS ON TYPE POINT CLASS NAME WFSvrstva STYLE SIZE 5 COLOR 0 0 0 END END END END Thanks for help. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [MAPSERVER-USERS] 5.2 b2 - WMS GetMap bug
FYI there is an open ticket against this http://trac.osgeo.org/mapserver/ticket/2569 ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Pål Kristensen Sent: Tue 24-Jun-08 08:45 To: mapserver-users@lists.osgeo.org Subject: [MAPSERVER-USERS] 5.2 b2 - WMS GetMap bug Hi! I have done some testing on the WMS server support, and there is a bug regarding GetMap requests. MapServer throes a error message if the request lacks the service=wms parameter. This is not right because regarding to the WMS specification, service isn't a mandatory parameter to the GetMap request. I know that this issue has been discussed before, and I thought the bug was fixed a while ago. Regards, Pål kristensen Steve Lime wrote: Hi folks: MapServer 5.2 Beta 2 has just been released. The source package is available for download at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since 5.2-beta1 can be found at the end this message. This is a significant release so we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be relatively easy for folks to test. Please let us know how it goes! The plan is now to have 3 beta releases, 1 release candidate with a final release the first week in July. More details can be found in the 5.2 release plan at: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ Steve Version 5.2.0-beta2 (2008-06-18): - - Fixed possible buffer overrun with Oracle Spatial driver (#2572) - mapogcsos.c: support srsName in GetObservation (#2414) - Filter Encoding: Modify DWithin definition (#2564) - Added webObj legendformat and browseformat mapping in PHP MapScript (#2309) - Removed static buffer size limit in msIO_*printf() functions (#2214) - Fixed libiconv detection in configure for OSX 10.5 64 bit (#2396) - mapstring.c: possible buffer overflow in msGetPath (#2649) - maputil.c: Correct expression evaluation with text containing apostrophes (#2641) - mapwfs.c: Possibly generate an error message when applying filter encoding (#2444) - Added MS_LABEL_BINDING constants for SWIG MapScript (#2643) - mapogcsos.c: fix POST support (#2379) - maplibxml2.c: helper functions XML POST fix (#2379) - mapwfs.c: fix segfault when srsName is not passed on BBOX Filter (#2644) - mapwfs.c: do not return error for empty query results (#2444) - Remove C++-style comments and most other warnings thrown by -pedantic (#2598) - mapwfs.c/mapwfs11.c: set GML MIME type correctly - mapogcsos.c: advertise supported SRS list via MAP.WEB.METADATA.sos_srs (#2414) - mapwfs.c: set layer extent to map extent for default GetFeature requests with no spatial predicates (#1287) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://www.nabble.com/MapServer-5.2-Beta-2-Available-tp17996897p18090194.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Open source metadata tools/alternatives
You can use these tools to manage your metadata, and, at least in GeoNetwork's case, you can publish them to a CS-W catalog. To integrate with MapServer, one idea is to set the LAYER/METADATA/ows_metadataurl_href value to that of a URL which will return the given metadata record (in FGDC, TC211, etc.). ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Diego Guidi Sent: Mon 28-Apr-08 13:40 To: Steven De Vriendt Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Open source metadata tools/alternatives I would like to know if there are open-source tools available which allow me to write/keep metadata in accordance to the standards that are out there. AFAIK the available opensource software that manages metadata are GeoNetwork (http://geonetwork-opensource.org/) and CATMDEdit (http://catmdedit.sourceforge.net/), but I'm unable to see how to integrate with mapserver. A brand new software that is currentry in beta stage is Metabeta (http://servizi.regione.toscana.it/sgr-iso19115/), but at this time is related to italian community. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
To add, note that the forthcoming WFS 1.2 (which will then be an OGC/ISO standard) will support paging. This could be awhile, but at least this feature is acknowledged by the spec editors/community. ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of Rahkonen Jukka Sent: Sun 20-Apr-08 17:36 To: Brian Mixon; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MapServer v. 4.10.0 featureid problem -Alkuperäinen viesti- Lähettäjä: [EMAIL PROTECTED] puolesta: Brian Mixon Tom, Perhaps I should tell you why I'm after the (or any) unique AND sequential id field for a service's features. I'm trying to page the feature data in a UI and started designing my solution after having read the WFS v 1.0.0 spec. I assumed (yes, I know what happens when one does that (;)) that I'd just use feature ids. I should have asked what mechanism MapServer employs to allow me to do something like this (the partial retrieval of features from a large dataset on some service somewhere). I'm going to bring back a certain number of features with each call to a WFS and as the user scrolls through this data I will make subsequent calls to the same service and ask for the next batch of features. Does this make sense and can you point me in the right direction for getting MapServer to do this? I fear that WFS itself does not support this well. WFS does have a setting for maximum number of features returned by one request, but there is no way to ask for the following set of features starting from, let's say, feature number 11. But if you take the WFS fid from sequential database field and sort that somehow then it should be possible to reach what you wand by addind a WFS filter like AND fidmax_fid_from_last_request to the next WFS request. I can imagine that this could lead to most unuseful result if bounding box is also a part of a filter and user is panning around on the map between the requests (area unvisited before can have features with lower fid values). -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
Jacob is bang on (I'm no expert on ArcGIS :) If I invoke a tool like ogrinfo on the shapefile, I see no attribute called FID. I do see ID and DISTRICT attributes. Try setting gml_featureid ID in your mapfile, which should pick up the field and process accordingly. ..Tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Delfos, Jacob Sent: 17 April, 2008 11:55 PM To: mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Hi Guys, I'm no expert on WFS, but I do know ArcGIS. The FID field is not really an attribute. It is more like an internal ESRI unique row ID (which gets updated after edits to be sequential). If you open up the attributes in another application (if you use shapefiles, open up the DBF in OpenOffice Calc or Excel), then you will find there is no FID field. Within ArcGIS, however, the FID field is presented as if it were a normal attribute. Hope this helps, Jacob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Mixon Sent: 18 April 2008 01:34 To: Kralidis,Tom [Burlington]; mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Tom, As soon as the Brenton on this list gets in to work we'll try to put something together for you. I'm working remotely and need his GIS knowledge to get something for you. Brian -Original Message- From: Kralidis,Tom [Burlington] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 10:51 AM To: Brian Mixon; mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Hi Brian, What's your underlying data? If there's anyway you can package a small testcase, I can do a local test. ..Tom -Original Message- From: Brian Mixon [mailto:[EMAIL PROTECTED] Sent: 17 April, 2008 12:24 PM To: Kralidis,Tom [Burlington]; mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Hi Tom, Yes, it does. It's an Arc field that is present in all our data. Thanks, Brian -Original Message- From: Kralidis,Tom [Burlington] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 10:11 AM To: Brian Mixon; mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Does the column/field fid exist in your data? ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Mixon Sent: 17 April, 2008 11:51 AM To: mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem Hello, I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 request. I'm trying to have all the features for a particular layer returned (which happens successfully) with the fid (feature id) included as well (does not happen). I've included the gml_featureid 'fid' tag in the layer's metadata section of the mapfile but only receive the following warning the the xml/gml response:!-- WARNING: FeatureId item 'fid' not found in typename 'senate_districts'. -- I've searched and read the various tickets that claim this problem is fixed so I'm wondering what I'm doing wrong? Any information to point me in the right direction would be greatly appreciated. Regards, Brian Mixon ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
Does the column/field fid exist in your data? ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Mixon Sent: 17 April, 2008 11:51 AM To: mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem Hello, I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 request. I'm trying to have all the features for a particular layer returned (which happens successfully) with the fid (feature id) included as well (does not happen). I've included the gml_featureid 'fid' tag in the layer's metadata section of the mapfile but only receive the following warning the the xml/gml response:!-- WARNING: FeatureId item 'fid' not found in typename 'senate_districts'. -- I've searched and read the various tickets that claim this problem is fixed so I'm wondering what I'm doing wrong? Any information to point me in the right direction would be greatly appreciated. Regards, Brian Mixon ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer v. 4.10.0 featureid problem
Hi Brian, What's your underlying data? If there's anyway you can package a small testcase, I can do a local test. ..Tom -Original Message- From: Brian Mixon [mailto:[EMAIL PROTECTED] Sent: 17 April, 2008 12:24 PM To: Kralidis,Tom [Burlington]; mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Hi Tom, Yes, it does. It's an Arc field that is present in all our data. Thanks, Brian -Original Message- From: Kralidis,Tom [Burlington] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 10:11 AM To: Brian Mixon; mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Does the column/field fid exist in your data? ..Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Mixon Sent: 17 April, 2008 11:51 AM To: mapserver-users@lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem Hello, I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 request. I'm trying to have all the features for a particular layer returned (which happens successfully) with the fid (feature id) included as well (does not happen). I've included the gml_featureid 'fid' tag in the layer's metadata section of the mapfile but only receive the following warning the the xml/gml response:!-- WARNING: FeatureId item 'fid' not found in typename 'senate_districts'. -- I've searched and read the various tickets that claim this problem is fixed so I'm wondering what I'm doing wrong? Any information to point me in the right direction would be greatly appreciated. Regards, Brian Mixon ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [MAPSERVER-USERS] projection world
Yiasou Nick, hello there.. can any one tell me which is the ideal projection of a shapefile that contains all the world ? what i wanna to give me is an example like this PROJECTION proj=lcc lat_1=32 lat_2=44 lat_0=38 lon_0=-100 x_0=0 y_0=0 ellps=GRS80 datum=NAD83 END Something like: proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ...is applicable to data which is global in nature. You can use the EPSG code shorthand as well: PROJECTION init=epsg:4326 END i wanna also to tell me how i can use the projection in the mapfile.. the shapefile contains a file.. country.prj how i can use it in the mapfile? You would use this info to define the _native_ projection of the data. See http://mapserver.gis.umn.edu/docs/reference/mapfile/projection for more info on projections in MapServer. Hope this helps. ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [MAPSERVER-USERS] GetCapabilities error + bip format
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of cfb Sent: 10 March, 2008 6:14 PM To: mapserver-users@lists.osgeo.org Subject: [MAPSERVER-USERS] GetCapabilities error + bip format Hello, I have some doubts, I'm working with MS4W 2.2.7, any answer will be really appreciated... 1) When I get the wms GetCapabilities, at the beginning of the document it's write VendorSpecificCapabilities EMPTY, why?: ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Service Namennn/Name Titlennn... Here's what the example at http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.xml states: [ !-- Vendor-specific elements are defined here if needed. -- !-- If not needed, just leave this EMPTY declaration. Do not delete the declaration entirely. -- !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- I believe this is because the existence of the VendorSpecificCapabilities element itself is defined in http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd, but no child elements are defined. Child elements are left to the implementing server to define within the Capabilities XML within the !ELEMENT declaration. So essentially this is a placeholder by the OGC, defined in the days where DTDs were primarily used. These days we see this by way of extensions, given that using XML Schema allows for this type of extensibility. ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS and typename issue
Actually, I don't think spaces are allowed in XML element or attribute names at all. Testing this in XMLSpy verifies this. ..Tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pericles S. Nacionales Sent: 28 February, 2008 4:29 PM To: Fischer, Brian Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS and typename issue The WFS 1.0.0 doesn't specifically say not to use spaces in a typeName but all the examples don't contain spaces... The space character always causes problem as part of a parameter in web forms, it should be avoided. That said, if the solution is as simple as escaping spaces in MapServer's GML output then maybe it should be done. It's not just spaces either... any special character could potentially be problematic (and maybe a potential security hole). So, yes, you probably should tell the WFS service author that it's bad karma to put spaces in typeNames and featureIDs. :) Add underscores or remove spaces if possible. -Perry Fischer, Brian wrote: After troubleshooting this a little further here is what I found. I get an invalid http request error if I try using an escape character with a in it. That is understandable. If I try using + or %20 it gets a little further and this is the error I get. msDrawMap(): Image handling error. Failed to draw layer named 'hydrowfs'. msOGRFileOpen(): OGR error. Open failed for OGR connection `C:/ms4w/tmp/ms_tmp/ccc2661b5c5cc4dbff3d2d052e2e73c7.tmp.gml'. XML Parsing Error: Expected equal sign Also when I try opening the .gml file in Gaia 3 it says there is an error reading the GML file. If I got through the GML file and remove all the spaces from the typename and save the file. Then it opens fine. It appears the problem is that MapServer is not escaping the space character in the temporary GML file when it creates it. I don't know a lot about the rules for the GML file and if a spaces are allowed or what the escape character should be. I guess my simpliest solution is to try to get the WFS service author to remove the spaces from their typenames. But I would be willing to report this as a bug in MapServer if this is really a bug. Hopefully someone can let me know. Thanks, Brian Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -Original Message- From: Milo van der Linden [mailto:[EMAIL PROTECTED] Sent: Thursday, February 28, 2008 2:38 PM To: Fischer, Brian Cc: Pericles S. Nacionales; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS and typename issue Have you tried using nbsp;? I had some sort of issue that looks like yours. like this: gml_include_items MFIELD,KFIELD,DFIELD gml_MFIELD_alias Anbsp;Fieldnbsp;fornbsp;M I can retrieve fieldnames with spaces on my installation of mapserver for a WMS GetFeatureInfo request. If the same doesn't work on WFS I would suggest filing a bug. Fischer, Brian schreef: Just tried it and no + doesn't work. I also tried %20, #160; and #xA0; Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -Original Message- From: Pericles S. Nacionales [mailto:[EMAIL PROTECTED] Sent: Thursday, February 28, 2008 2:15 PM To: Fischer, Brian Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS and typename issue Brian, I take it the + character doesn't work? -Perry Fischer, Brian wrote: Has anybody else experience problems when using a WFS service where the typename has a space in it? I'm experiencing the WFS layers that don't have spaces work fine with MapServer, but ones that do have spaces produce invalid GML files. Is there an escape character that can be used to represent the space in the typename? The WFS service I am trying to get to work is http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_Metro G I S_ DataFinder_WFS_Water_Resources?request=getcapabilitiesservice=WFSv e r si on=1.0.0 The layer without the space works fine, but the rest do not. Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Website: www.houstonengineeringinc.com http://www.houstonengineeringinc.com/ - - -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing
RE: [MAPSERVER-USERS] WMS - GetCapabilities and version
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pål Kristensen Sent: 26 February, 2008 3:56 PM To: mapserver-users@lists.osgeo.org Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version Hi! I did a build of mapserver nightly this evening and noticed some changed WMS behavior compared to my last build (approx 2 months ago). The old build does reply to at GetCapabilities request that misses the version parameter with a version 1.1.1 capabilities xml-file. The new build fails withe an error message that says that the version parameter is missing. According to the WMS 1.1.1 standard version is a mandatory parameter so the new behavior is correct according to the standard. Unfortunately many of the clients around do not comply with the standard, and of course the server gets the blame. I guess this issue fall into the ongoing compliance discussion (RFC-35). But what has changed over the last couple of month that introduced this new behavior, and is there some keywords that can be set to achieve the old behavior? Fixed. http://trac.osgeo.org/mapserver/ticket/2528 Thanks for catching this. ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users