[mapguide-users] use WMS feature source to create layer definition

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Mar 17 06:24:14 EDT 2009


No, I have no idea why it does not always work.

Regards, Kenneth Skovhede, GEOGRAF A/S



Arnaud De Groof skrev:
>
> Kenneth,
>
>  
>
> There is no error in the error.log with the example using the Nasa 
> WMS. Unfortunately, the WMS isn't always displayed. Have you an idea 
> of the problem?
>
>  
>
> I tried an other WMS (http://www2.demis.nl/mapserver/Request.asp?) and 
> the error.log gives the following information:
>
>  
>
> /<2009-03-17T10:27:14> Ajax Viewer       127.0.0.1           
> Administrator/
>
> / Error: Failed to stylize layer: wms/
>
> /        An exception occurred in FDO component./
>
> /        The spatial context 'EPSG:4326' is not supported by the layer 
> 'Countries'. /
>
> / StackTrace:/
>
> /  - MgMappingUtil.StylizeLayers line 786 file 
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\mapping\MappingUtil.cpp         
> Failed to stylize layer: wms/
>
> /An exception occurred in FDO component./
>
> /The spatial context 'EPSG:4326' is not supported by the layer 
> 'Countries'./
>
> / /
>
> I don't understand the error because the /GetCapabilities/ of the 
> Demis WMS indicates that the layer "Countries" supports the EPSG:4326 ?
>
> /..../
>
> /<Layer>/
>
> /<Title>Demis World Map</Title>/
>
> /<SRS>EPSG:4326</SRS>/
>
> /<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>/
>
> /<BoundingBox SRS="EPSG:4326" minx="-184" miny="-90" maxx="180" 
> maxy="90"/>/
>
> /<Layer queryable="1" opaque="0">/
>
> /<Name>Countries</Name>/
>
> /<Title>Countries</Title>/
>
> /<BoundingBox SRS="EPSG:4326" minx="-184" miny="-90" maxx="180" 
> maxy="85"/>/
>
> /<ScaleHint min="0" max="14000"/>/
>
> /</Layer>/
>
> /.../
>
> / /
>
> Thanks,
>
>  
>
> Arnaud De Groof
>
> ------------------------------------------------------------------------
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Kenneth 
> Skovhede, GEOGRAF A/S
> *Sent:* lundi 16 mars 2009 8:59
> *To:* MapGuide Users Mail List
> *Subject:* Re: [mapguide-users] use WMS feature source to create layer 
> definition
>
>  
>
> Feel free to log this as a defect for Maestro.
>
> I'm guessing that it is a problem with coordinate systems not matching up.
> You can look in the error.log for MapGuide to see if this is what happens.
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>
> Arnaud De Groof skrev:
>
> Hi Kenneth
>
>  
>
> Thanks for these precisions.
>
> I have always a problem to view the WMS in the MapGuide viewer.
>
> With Maestro, the "preview item" of the layer (it is the same for the 
> map and the layout) doesn't show the WMS. But if I use MGOS Web Studio 
> to analyze the layer, the preview tool displays the WMS (it doesn't 
> work with the map and the layout).  
>
>  
>
> Thanks,
>
>  
>
> Arnaud De Groof
>
>  
>
>  
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> <mailto:mapguide-users-bounces at lists.osgeo.org> 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Kenneth 
> Skovhede, GEOGRAF A/S
> *Sent:* jeudi 12 mars 2009 13:29
> *To:* MapGuide Users Mail List
> *Subject:* Re: [mapguide-users] use WMS feature source to create layer 
> definition
>
>  
>
> After you select the FeatureSource, you should see two comboboxes 
> below the selected ResourceID.
> These are left blank, due to the bug you mentioned.
> Simply click the combobox and select the only entry avalible.
> Repeat for the combobox below.
> You can now save the layer.
>
> To publish a layer as a WMS entry, right click the FeatureSource and 
> select properties.
> Then fill out the "WMS" tab, and remember to check the "Publish" checkbox.
> Then click OK, and the layer should appear as a WMS layer when issuing 
> a GetCapabilities request.
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>
> Arnaud De Groof skrev:
>
> Hi Kenneth,
>
>  
>
> Could you explain me in more details the procedure aiming to select 
> manually the schema and column?
>
> In addition (for WMS server), is it possible to publish a layer (SDF 
> or SHP feature resource) like a WMS with Maestro?
>
>  
>
> Thanks,
>
>  
>
> Arnaud De Groof
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> <mailto:mapguide-users-bounces at lists.osgeo.org> 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Kenneth 
> Skovhede, GEOGRAF A/S
> *Sent:* mercredi 11 mars 2009 18:36
> *To:* MapGuide Users Mail List
> *Subject:* Re: [mapguide-users] use WMS feature source to create layer 
> definition
>
>  
>
> Hi Arnaud.
>
> That is a bug in Maestro.
> I have committed a fix for it, so it will be in the next release.
> If you manually select the Schema and Column, you should be able to save,
> and perhaps use the layer.
>
> The cryptic message means that you have forgotten to fill out those 
> two fields :).
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>
> Arnaud De Groof skrev:
>
> Hi,
>
>  
>
> I created a MapGuide WMS feature source according to the "FdoWmsNotes" 
> (http://trac.osgeo.org/fdo/wiki/FdoWmsNotes). My first WMS feature 
> corresponded to the example given in this note (NASA WMS).  
>
>  
>
> I created with success the feature resource (see picture).
>
>  
>
>  
>
> After all steps described in the note, I used MapGuide Maestro (1.0.9) 
> to create layer definition.
>
> But when I selected the feature resource in a new layer, I received 
> the following message :
>
> /'Failed to read schema from data source. The operation gave the error 
> message : Value cannot be null. Parameter name: input.' /
>
> / /
>
> And when I saved the layer, I encountered the following exception:
>
>  
>
> /"System.Exception: The remote server returned an error: (559) 
> MgDbXmlException.: /
>
> /An exception occurred in DB XML component./
>
> /Error: XML Indexer:  Parse error in document at line, 22, char 25. 
> Parser message: Element 'GridScaleRange' is not valid for content 
> model: 
> '(ResourceId,Opacity,(FeatureName,Geometry,Filter,GridScaleRange),ExtendedData1)'/
>
> /Exception occurred in method MgResourceDefinitionManager.PutDocument 
> at line 554 in file 
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp"/
>
> / /
>
>  ---> System.Net.WebException: The remote server returned an error: 
> (559) MgDbXmlException.
>
>    at System.Net.HttpWebRequest.GetResponse()
>
>    at 
> OSGeo.MapGuide.MaestroAPI.HttpServerConnection.SetResourceXmlData(String 
> resourceid, Stream content, Stream header)
>
>    --- End of inner exception stack trace ---
>
>    at 
> OSGeo.MapGuide.MaestroAPI.HttpServerConnection.SetResourceXmlData(String 
> resourceid, Stream content, Stream header)
>
>    at 
> OSGeo.MapGuide.MaestroAPI.ServerConnectionBase.SetResourceXmlData(String 
> resourceid, Stream stream)
>
>    at 
> OSGeo.MapGuide.MaestroAPI.ServerConnectionBase.SaveResourceAs(Object 
> resource, String resourceid)
>
>    at OSGeo.MapGuide.Maestro.EditorInterface.Save(String resid)
>
>  
>
> I tried also with others WMS services but I have always the same errors.
>
>  
>
> Thanks,
>
>  
>
> Arnaud De Groof
>
>  
>
> *
> ------------------------------------------------------------------------
> E-MAIL DISCLAIMER*
>
> The present message may contain confidential and/or legally privileged 
> information. If you are not the intended addressee and in case of a 
> transmission error, please notify the sender immediately and destroy 
> this E-mail. Disclosure, reproduction or distribution of this document 
> and its possible attachments is strictly forbidden.
>
> SPACEBEL denies all liability for incomplete, improper, inaccurate, 
> intercepted, (partly) destroyed, lost and/or belated transmission of 
> the current information given that unencrypted electronic transmission 
> cannot currently be guaranteed to be secure or error free.
> Upon request or in conformity with formal, contractual agreements, an 
> originally signed hard copy will be sent to you to confirm the 
> information contained in this E-mail.
>
> SPACEBEL denies all liability where E-mail is used for private use.
>
> SPACEBEL cannot be held responsible for possible viruses that might 
> corrupt this message and/or your computer system.
>
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
Skipped content of type multipart/related


More information about the mapguide-users mailing list