RE: [mapguide-users] RE: featureService.SelectFeatures and memory consumption

2010-08-16 Thread Vaidas Velutis
Hi, ive tried to call dispose() but it does not help. I forgot to mention that i am using MapGuide 2.2 Beta and database is PostGIS. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jackie Ng Sent: Tuesday, August

[mapguide-users] RE: featureService.SelectFeatures and memory consumption

2010-08-16 Thread Jackie Ng
You can't use the "using" statement because MgFeatureReader doesn't implement the IDisposable interface. But there is a Dispose() method that can be called. - Jackie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/featureService-SelectFeatures-and-memory-consumption-tp5

RE: [mapguide-users] featureService.SelectFeatures and memory consumption

2010-08-16 Thread Vaidas Velutis
Hi, i cant do this because im getting this compiler error: ,OSGeo.MapGuide.MgFeatureReader': type used in a using statement must be implicitly convertible to 'System.IDisposable' From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Frank

Re: [mapguide-users] Refreshing a Layer

2010-08-16 Thread Zac Spitzer
depending on the structure of the layers within your map, all layers might be rendered into a single image, therefore refreshing the map (frame) after toggling the layers is required z On 16 August 2010 01:54, finjai wrote: > > Hi All, >   I am trying to explore a possibility that is there a way

[mapguide-users] Re: Layer group name with '/' causing Maestro to not respond

2010-08-16 Thread Beluga
Just figured out that I can edit the map definition via xml so I: 1. Right clicked map defintion, selected "edit as xml" 2. Renamed subtag of the tag to an appropriate name (without '/' !! ) and saved. This time, when I double clicked the map defintion, there were no hang ups. Thanks to Jaso

Re: [mapguide-users] Re: Refresh map only

2010-08-16 Thread Warren Medernach
Thanks Jackie! That helped... I created a function to call ExecuteMapAction from the correct frame, and then I used the window.setInterval to call that function. Now that its at least working, I'll poke around and see why the call to Refresh() seemed to fail... Warren M On Sun, Aug 15, 2010 at

Re: [mapguide-users] GDAL problems...

2010-08-16 Thread Andrew DeMerchant
Title: GEMTEC Email Signature Anyone got any suggestions? I can provide a few of my rasters in question, if need be. Andrew On 8/13/2010 5:11 PM, Andrew DeMerchant wrote: Sorry to add yet another GDAL question.but for the life of me,

RE: [mapguide-users] featureService.SelectFeatures and memory consumption

2010-08-16 Thread Frank Misurec
Try and wrap your SelectFeatures call within a using statement: using (MgFeatureReader fReader = featureService.SelectFeatures(LeidimuResId, "FeatureName", Query)) { } From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Vaidas

[mapguide-users] Layer group name with '/' causing Maestro to not respond

2010-08-16 Thread Beluga
Hi all, your help with this would be really appreciated. When trying to open my Map defintion in Maestro it causes Maestro not to respond. The last item that I edited was the layer group name in the map definition whereby I added a '/' to the name. I believe this is the cause of the hang up. H

RE: [mapguide-users] Feature Label Alignment

2010-08-16 Thread Frank Misurec
This approach works: MgStringProperty hAlignProp = new MgStringProperty("HALIGN", "Left"); properties.Add(hAlignProp); As often happens, you stare at the problem for a while, finally send out a question to the community and five minutes later figure out that the problem was a typo. In my c

[mapguide-users] Feature Label Alignment

2010-08-16 Thread Frank Misurec
Hi, I have a layer definition that uses a fixed label. The Horizontal and Vertical alignment properties are set to use properties from the feature class. The feature source is sdf which is created dynamically during runtime. The feature with the label (multiline) is shown on the map but the ali

[mapguide-users] Re: Tracking vehicles, Displaying positions

2010-08-16 Thread psciga
Hi Carmelo, how do you send the GPS coordinates from vehicles to your MGOS server? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Tracking-vehicles-Displaying-positions-tp1818491p5427607.html Sent from the MapGuide Users mailing list archive at Nabble.com. _

[mapguide-users] featureService.SelectFeatures and memory consumption

2010-08-16 Thread Vaidas Velutis
Hello, I have found that after calling featureService.SelectFeatures , memory is not realeased. Here is my source code: MgUserInformation userInfo = new MgUserInformation("Adminitrator", "admin"); MgSiteConnection siteConnection = new MgSiteConnection(); siteConnection.Open(userInfo); MgFeat