[mapguide-users] Problems with featureservice.UpdateFeatures

Scott Hameister scotth at mpower-tech.com
Wed May 7 01:22:36 EDT 2008


That makes sense..haven't found it yet tho...is that a change you know of between 1,2 and 2.0 or just an experience you've had... I want to nail this down for good.

-----Original Message-----
From: "Zac Spitzer" <zac.spitzer at gmail.com>
To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org>
Sent: 5/6/08 8:35 PM
Subject: Re: [mapguide-users] Problems with featureservice.UpdateFeatures

you have previously opened a feature reader and not closed it

On Wed, May 7, 2008 at 4:01 AM, Scott Hameister <scotth at mpower-tech.com> wrote:
>
>
>
>
> I created a buffer tool in 1.2
that let you create a new buffer and type in
> the name of the layer you wanted it on.
>
> I would then check to see if the layer already existed then delete out any
> objects inside to clean it out before adding to it.
>
>
>
> The codes still works fine in 1.2
but in 2.0 I get this Error
>
> Please Try your Operation Later Resource was busy Sesion:134
.
>
>
>
> I'm working in Coldfusion, but the code should translate fairly well! The
> crash Point is at featureSrvc.UpdateFeatures.
>
>
>
>                 <cfset deleteCmd = CreateObject("java",
> "org.osgeo.mapguide.MgDeleteFeatures").init(featureName, "ID >= 0")>
>
>                 <cfset commands = CreateObject("java",
> "org.osgeo.mapguide.MgFeatureCommandCollection")>
>
>                 <cfset commands.Add(deleteCmd)>
>
>                 <cfset featureSrvc.UpdateFeatures(dataSourceId, commands,
> false)>
>
>                 <cfset commands.delete()>
> _______________________________________________
>  mapguide-users mailing list
>  mapguide-users at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
_______________________________________________
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