Calling GetResourceContent then SetResource will clear the Server cache for that specific resource. If this does not work, then there may be a bug in the FDO cache management.
Steve. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Zac Spitzer Sent: Thursday, May 27, 2010 8:55 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] GetSpatialContext for FeatureSource that's a nasty one... you might want to try resaving the feature source ie get and set the resourcecontent which should flush any caching, this works at least for cached oracle schemas and I reckon it might work for you... definately worthy of filing a bug in trac, check first that there isn't one already filed http://trac.osgeo.org/mapguide/query?status=new&status=assigned&status=reopened&group=component&order=priority z On 28 May 2010 01:08, Dave Wilson <[email protected]> wrote: > I believe this is an issue and I'm not sure there is a fix. > > Regards, > Dave > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Gunter Becker > Sent: Thursday, May 27, 2010 7:27 AM > To: [email protected] > Subject: [mapguide-users] GetSpatialContext for FeatureSource > > > Hi, > > I have a FeatureSource which I create at runtime in the Session-Repository. > I insert and delete features in this FeatureSource several times and each > time I want to zoom to the full extent of the FeatureSource. > > Unfortunately, the GetSpatialContext methode of the FeatureService returns > the right extent for the FeatureSource only the first time it is requested. > When I add features to this FeatureSource which are outside of this extent > the GetSpatialContext methode always return the same extent. > > So, I suppose the extent of the FeatureSource is cached somewhere. > > Can anyone confirm this behaviour! Is there a methode to set the > FeatureSource to the right extent? > Something like a refresh methode for FeatureSources? > > Thanks, Gunter > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/GetSpatialContext-for-FeatureSource-tp5108554p5108554.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
