POST
|
I'm using the SDK, not ArcGIS Pro (hence posting in this area of the forum). Yes, those names are correct, but they must have changed from version 10.2.x to version 100.x, unless they didn't work prior to that. If you have any more info regarding the scale/orientation of the composite labels, please let me know. Thanks
... View more
02-01-2021
02:33 PM
|
0
|
1
|
95
|
POST
|
I updated the SDK and it made no difference, but I noticed that there are per-version stylx files too, so I downloaded the latest one and it turns out it's completely different to the version we've had for a while. The old one was loaded with an method marked as obsolete, which I guess was done because the database format is differnet and needs loading differently, but it wasn't clear that the solution was to update the file. I looked up the Air Corridor symbol and it lists `z` and `z2` for the two altitude amplifiers in this version, which matches the reference (here) and seems to work. One significant thing I have noticed is that the scale of the text portion of symbols seems to be tiny now and rotated with the shape (so not easily readable), which was not the case before. I have access to the width and size properties, which seem to affect the size of the text as well as the shape. Is there a way to control these independently? Thanks
... View more
02-01-2021
01:17 PM
|
0
|
3
|
100
|
POST
|
I am using 100.6 with .NET framework 4.6.2 and the mil2525c style catalog. I have created an air corridor symbol using the dictionary renderer, and it is displaying correctly when no amplifiers have been set. By opening the stylx file I am using and looking up the associated label expressions, it shows that it should be using 5 text amplifiers, including zmin and zmax. This is consistent with the standard (and there is a space for them) but of the 5, 2 don't cause the appearance to update with the added text: Zmin and Zmax, which are presumably positions 'X' and 'X1' in the standard. I also tried setting 'x' and 'x1', but they didn't work either. Is this a bug with the dictionary renderer, or am I doing something wrong? Thanks
... View more
02-01-2021
09:32 AM
|
0
|
5
|
146
|
POST
|
We have a WPF application using v100.6 of the ArcGIS .NET SDK. Marker symbols are added to the map and their location and appearance are updated by ongoing DIS traffic. We have found since September last year that the thread updating the MapView would occasionally freeze when trying to remove a Graphic to replace it with an updated one. In an effort to fix this I have changed the code to just update the position and symbol of the graphic rather than recreating it, but this just caused the same thing to happen when setting the Symbol property on the Graphic. Currently the symbol is still recreated quite a lot, so if that sounds like a potential reason to cause this I can try just updating the composite symbol rotations instead. Initially, the GraphicsOverlay was updated by methods originating on different threads, and when it froze it meant only the map control would freeze, but I have since changed the application to marshal events from background threads onto the dispatcher (UI) thread as is suggested in the best practices guide, but all this achieved is freezing the entire application rather than just the map. So in summary, I have tried to eliminate being on the wrong thread, deadlocks within our code and excessive object creation, but there has been no improvement (in fact in some cases it is worse). There is no exception, CPU and memory usage are low and I cannot see the stack trace into the native code to give any more hints except that it usually ends at CoreVector within the SDK C# code. Unfortunately I am unable to share any source code, but I am hoping as similar things have been reported over the last 6 years that there is a known cause and solution to this kind of issue or at least someone can advise me of the best practices to follow when updating the position and symbol of Graphics (considering that the best practice guide I found only mentioned using the dispatcher thread, which has not helped and therefore doesn't seem to be necessary). Thanks.
... View more
08-19-2020
12:06 PM
|
0
|
0
|
100
|