POST
|
Was anyone ever able to find an answer to this question?
... View more
03-07-2016
10:06 AM
|
0
|
0
|
366
|
POST
|
Hi Mike, This appears to do it but only after a few hours. What's interesting is that if I change map scale it seems to reset the spiked memory usage for a time, however that same "workaround" doesn't have a similar impact on my actual application. Thanks, Aaron
... View more
02-25-2016
03:25 PM
|
1
|
4
|
1088
|
POST
|
It's worth noting that I'm seeing the same behavior (linear private heap allocation increase) when setting the source using the synchronous method and a byte array.
... View more
02-25-2016
08:27 AM
|
0
|
0
|
1088
|
POST
|
Good afternoon, I've been trying to debug some private byte allocation leaks in my application and finally think I've narrowed it down to the PictureMarkerSymbol.SetSourceAsync() method. My use case consists of updating n number of PictureMarkerSymbol sources/geometries on the map once every ~100ms. Through a combination of Redgate, WinDbg, and ultimately DebugDiag I pinpointed the culprit (I think) to RuntimeCoreNet calling into msvcr120::malloc. I'm setting the source of my PictureMarkerSymbols like this: private async void periodicUpdate() { BitmapFrame frame = BitmapFrame.Create(this.someBitmapSource); PngBitmapEncoder encoder = new PngBitmapEncoder(); encoder.Frames.Add(frame); using (Stream stream = new MemoryStream()) { encoder.Save(stream); stream.Seek(0, SeekOrigin.Begin); await this.pictureSymbol.SetSourceAsync(stream); } } Has anyone else encountered this issue? Am I setting the source incorrectly or otherwise missing something else? The leak seems to be pretty linear in growth and will generate an OutOfMemoryException fairly reliably.
... View more
02-24-2016
02:41 PM
|
0
|
7
|
3103
|
POST
|
Good Morning Antti, The basic use case is to provide a secondary "map" that exists on a background thread that can provide images to a proprietary scene rendering engine for use as textures. BitmapSource PrimaryMap::GetBitmapTexture(Envelope envelope, double imgWidth, double imgHeight) The key for us here is that the secondary map is able to change extents without impacting the primary map while remaining hidden/off-screen. The secondary map will however always mirror the layers of the primary map.
... View more
02-15-2016
08:49 AM
|
0
|
0
|
652
|
POST
|
Hi Yue, Thanks for getting back to me, unfortunately neither of the provided methods seem to have any effect. The "Loaded", "LayerLoaded", and "ExtentChanged" events never fire unless the control is visible on screen. I was able to get just the LayerLoaded to fire by calling the internal MapView::CreateCoreViewBase via reflection, but that still doesn't actually render the map or allow map updates to occur. If you have any other insight that would be great, this is a bit of a show-stopper for us.
... View more
02-11-2016
04:06 PM
|
0
|
0
|
652
|
POST
|
Hello, Previously using the ArcGIS WPF Runtime I could create and initialize a map off-screen and render it to a bitmap using RenderTargetBitmap. I'm wondering if there is a preferred method to doing this as I'm currently unable to get a MapView to render unless it's in view, which isn't an option for this use case. // Sample code Grid grid = new Grid(){Width=width, Height=height}; Map map = new Map(){Width=width, Height=height}; map.Layers.Add(someLayer); grid.Children.Add(map); grid.Measure(new Size(width, height)); grid.Arrange(new Rect(new Size(width, height))); grid.UpdateLayout(); map.Extent = someExtent; RenderTargetBitmap rtb = new RenderTargetBitmap(width, height, dpi, dpi, PixelFormats.Default); rtb.Render(grid); // Do something with the image here // End Sample The sample above is a simplified version of what I'm doing, but the fundamentals are the same. In the .NET 10.2.7 runtime this results in blank images. How can I recreate this behavior in the .NET Runtime? It appears that the map is never initialized unless I bring it into view. Thanks, Aaron
... View more
02-11-2016
02:26 PM
|
0
|
4
|
2456
|
POST
|
Thanks! I was aware of the inheritance hierarchy, I was just trying to make a determination as to which type of Layer object to construct based on the service capabilities. A simple WebRequest to poll the capabilities member does the trick quite nicely. The difference between "TileMap" and "Map" in the capabilities was key here as if the service has tiles, I'd rather load it as a tiled layer than a dynamic layer for performance reasons. Thanks again, Aaron
... View more
02-11-2016
12:11 PM
|
0
|
2
|
1034
|
POST
|
Hi, In my application it's currently possible to add both ArcGISTiledMapServiceLayer and ArcGISDynamicMapServiceLayer types. The issue I have is that I can't find a good way to query the service to determine which type the user is adding. It seems I can always add a Tiled layer as a dynamic service, but the opposite (expectedly) throws an exception. What I would like to do is be able to determine and/or query in code whether a given service Uri/Url is hosting tiles or is a "standard" dynamic map service. Is this possible? The exception raised when I add a dynamic as a tiled is "no valid tile info", is there a way to check the service for tile info and then determine which type of map layer object to create based on that? It would be possible to catch the exception and then regenerate the other type, but I'm trying to save that as a last resort option. Thanks! Aaron
... View more
02-10-2016
02:27 PM
|
0
|
4
|
3750
|
POST
|
I'm also interested in this. Previously I could overlay a WPF object as a map layer to display some dynamic (local) raster information. This functionality as it exists in the .NET runtime isn't completely adequate because it requires that I use a MapOverlay which exists above the rest of the map layers. It would be great to be able to place such a layer inside the z-ordering stack of the other layers rather than forcing it to the top above more important situational layers.
... View more
01-28-2016
08:46 AM
|
1
|
0
|
677
|
POST
|
I've actually found a workaround for this. I'll attach a code sample if I have a couple of minutes to throw one together, but it would appear that setting the geometry of a TextSymbol to a fractional value is what causes this to happen. For example, if (assuming Web Mercator) I set X=500.0123456 Y=500.0123456, I see the issue quite a bit. If I set X=(int)500,Y=(int)500 the issue goes away. This isn't a huge deal for my text symbols since they're always "floating" around something that the fractional meters on a geometry matters for, but this does appear to be the culprit. Thanks, Aaron
... View more
01-26-2016
01:15 PM
|
0
|
0
|
572
|
POST
|
Hello, I'm upgrading an application from the 10.1.1 WPF Runtime to the 10.2.6 .NET Runtime and am having some issues with TextSymbol display. I'm using TextSymbols on a GraphicsLayer to label dynamic graphics and am finding that the text looks jagged/not anti-aliased. If I switch the AngleAlignment to 'Map' it removes the jaggedness but the text becomes very blurry. Is there a method to enable anti-aliasing or turn on clear type like I could have done in the WPF Runtime? Below are a couple of examples of what I'm seeing: Normal Text: Italicized Text: The first example generally only occurs when the geometry is moving and sometimes when the movement has stopped it will retain that very fragmented/unreadable look. The second italicized text is all of the time. If anyone has any insight/tips on how to remedy this I'd be much obliged. Thanks, Aaron
... View more
01-21-2016
10:44 AM
|
0
|
3
|
2624
|
POST
|
Hi, I have a custom class that implements the Esri.ArcGISRuntime.Layers.TiledLayer class to display some operational raster data on a Runtime for .NET 10.2.6 map. The layer behaves as expected when panning/zooming, however if some portion of the operational data changes I need to be able to "refresh" or redraw the visible data/tile(s). My first thought was to use the exposed TilerLayer::Invalidate(), however this simply clears the entire internal tile cache. What would be ideal is if I had a way to either: a) Access the internal CoreLayer::SetTile() method and manually reset the tile that has changed with the new data or b) "Poke" the map object and get it to re-request the visible tiles using the TiledLayer::GetTileDataAsync() The problem with the invalidation call is that it causes a flickering rather than a smooth animation like normal pan/zoom operations. Is there a way to do what I'm looking for? If not, was this intentionally left out of the public API? The latter question is pointed more towards my inclination to access the CoreLayer with reflection. Thanks, Aaron
... View more
01-15-2016
08:54 AM
|
0
|
0
|
1734
|
POST
|
Hi, In ArcObjects it is possible to specify what type of output features are desired on an intersect operation, is the same operation possible in the WPF Runtime? I've experimented with the Intersect task but the return geometry type is always equal to the input type. Specifically, I'd like to be able to calculate a the specific location along a geometry where an intersection occurs. For example, I'd like to know where on a polyline it is intersected by another polyline or polygon as a point location. Is this possible through other means if I can't specify an output geometry type on an intersect task? Thanks, Aaron
... View more
06-16-2014
08:30 AM
|
0
|
1
|
1668
|
Title | Kudos | Posted |
---|---|---|
1 | 02-25-2016 03:25 PM | |
1 | 01-28-2016 08:46 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|