Ang. [mapguide-users] Re: View WMS in Maestro - "Object reference not
set to an instance of an object"
johan.asplund at karlstad.se
johan.asplund at karlstad.se
Thu Jul 28 10:31:47 EDT 2011
Thanks for a fast reply.
I found what triggered the error!!
In the GetCapabilities111.xml (on our ArcGIS server) i found that the
extent for my WMS-service was defined as follows:
<BoundingBox SRS="EPSG:3008" minx="128335.406600" miny="6572414.416700"
maxx="179357.267900" maxy="6627935.900400"/>
The "." (dot) made Maestro throwing the error.
I edited the .xml-file:
<BoundingBox SRS="EPSG:3008" minx="128335" miny="6572414" maxx="179357"
maxy="6627935"/>
Now i won't get the error and the preview launches! =) Great!
//Johan
Från:
Jackie Ng <jumpinjackie at gmail.com>
Till:
mapguide-users at lists.osgeo.org
Datum:
2011-07-28 14:40
Ärende:
[mapguide-users] Re: View WMS in Maestro - "Object reference not set to an
instance of an object"
I personally experienced this strange error today. The problem in my case
was
that the WKT for the geometry representing the extents of the Feature
Source
was being returned like this:
POLYGON ((-1.#INF -1.#INF, 1.#INF -1.#INF, 1.#INF 1.#INF, -1.#INF 1.#INF,
-1.#INF -1.#INF))
We need the extents to generate a suitable bounding box for a temporary
Map
Definition that contains the layer we want to preview. The above WKT does
not parse to a valid bounding box, hence null is returned, triggering this
nasty chain of events.
You may be experiencing the same problem. Right click your Feature Source
and choose "Show Spatial Contexts" and look at the extent column. Do you
see
similar values? If so, then it's a problem in either the FDO provider,
MapGuide's handling of these values, or the WMS configuraiton document.
Long story short: Something's messed up with the Spatial Context extent
values in the Feature Source
- Jackie
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/View-WMS-in-Maestro-Object-reference-not-set-to-an-instance-of-an-object-tp6629437p6629706.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110728/db7502fd/attachment.html
More information about the mapguide-users
mailing list