ar_gaeta,
Haven't been able to get your code to work. I got an exception:
MgMap.getService(): line93 /MgMap.cpp
Thanks.
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Mapguide-JavaAjaxViewer-Update-Features-Memory-Leak-tp5833542p5837354.html
Sent from the MapGui
Hi Zac,
Here is the releaseReader Code I used. Please let me know if you see any
problems with it:
void ReleaseReader(MgPropertyCollection res, MgFeatureCommandCollection
commands) throws Exception
{
if (res == null)
return;
for(int i = 0; i <
quick q, are you calling close() on the featurereader?
On Wed, Dec 15, 2010 at 3:26 AM, jjdoc wrote:
>
> thanks, ar_gaeta. I will try your code and and let you know if it helps.
> Regarding your question:
> 1. getPropertyCount() returns # of properties in a feature. I don't know of
> a method tha
thanks, ar_gaeta. I will try your code and and let you know if it helps.
Regarding your question:
1. getPropertyCount() returns # of properties in a feature. I don't know of
a method that returns the number of features. But once you have a
featurereader, you can just iterate through it and count t
I don't know if this can help you, but I had a similar problem, trying to
select all features.
After open the map, you can rty:
map.Open(resourceSrvc, mapName);
//MY STRINGS:
MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions();
MgLayer layer = (MgLayer)map.GetLayers().GetItem(layern