[mapguide-users] Re: View WMS in Maestro - "Object reference not set to an instance of an object"

Jackie Ng jumpinjackie at gmail.com
Thu Jul 28 08:40:22 EDT 2011


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.


More information about the mapguide-users mailing list