[mapguide-users] Zooming to extent of multiple selections

Trevor Wekel trevor_wekel at otxsystems.com
Tue Dec 22 14:10:20 EST 2009


Hi Jo,

You could try turning on the enhanced server error reporting in serverconfig.ini.  It may provide some function call parameters in the server trace.log.  http://trac.osgeo.org/mapguide/wiki/MapGuideRfc49.  Not all API methods return enhanced information but some do.

When you are retrieving the error message, GetDetails() should return any information that is available.

Serverconfig.ini
 [GeneralProperties]
LogsDetail = MappingService:3,FeatureService:3,RenderingService:3,ResourceService:0

Thanks,
Trevor

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jo Cook
Sent: December 22, 2009 11:58 AM
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] Zooming to extent of multiple selections


Hi Jason,

Yes- but all it was telling me was that the argument was null. No clue as to
which argument though! Is there another level of detail you can get out of
the error handling, like a more verbose message?

Thanks

Jo

Jason Birch wrote:
> 
> If it's any comfort, I had no clue from the look I took :)
> 
> Are you using try/catch exception handling? It can make it easier to
> figure out what's going on sometimes.
> 
> Jason
> 
> On 2009-12-22, Jo Cook <j.cook at oxfordarch.co.uk> wrote:
>>
>> Answered my own question :-)
>>
>> For information, and future people having a similar problem, the issue
>> was
>> not with the code but with the fact that the layer came from an odbc data
>> source, so consequently had no geometry or extents. I figured that out
>> using
>> the web tier tests. Once I realised that (which was no doubt obvious to
>> most
>> people) I could extract the values for the coordinates from the table and
>> use that to construct an envelope for zooming to.
>>
>> Jo
>>
> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Zooming-to-extent-of-multiple-selections-tp4199009p4205116.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



More information about the mapguide-users mailing list