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:
[email protected]
[mailto:[email protected]] 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