Is it possible to change the size of rendered military symbols

833
3
04-04-2017 05:28 AM
DarkRider
New Contributor II

I've switched to ArcGIS 100.0.0 SDK for Qt and it looks like military symbols are rendered larger than in the previous version of ArcGIS (10.2.6). How can I modify the size of the rendered graphic corresponding to the military symbol?

Best regards, 

dark.rider85

3 Replies
LucasDanzinger
Esri Frequent Contributor

Are they all larger, or just certain symbols?

0 Kudos
DarkRider
New Contributor II

Yes, they all are larger. I've compared the samples about the military symbols rendering from ArcGIS 10.2.6 and 100.0 and in the samples application in ArcGIS 100.0 they are cleary larger (same size as in my test application). 

ArcGIS 10.2.6

ArcGIS 10.2.6

ArcGIS 100.0

ArcGIS 100.0

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Thank you. The short answer to your question is no, it isn't possible to change it dynamically. We are looking to add a way to scale symbols in the future (both military and non military), but don't yet have a solution.

The longer answer is:

1) These symbols are coming from stylx files, which are technically sqlite databases that Pro can read. So, while I acknowledge that this is really not a feasible workaround due to the enormity of symbols in the stylx file, one could theoretically go through the sqlite files programmatically or in Pro and alter the size. I'm not recommending you do that, and I have not tried it, but it could potentially work in theory. In addition, since the Symbol class implements JsonSerializable, one could also (in theory) serialize the symbol to json, then go and modify the json, and then deserialize and create a new symbol from json. The trouble is that there is no real documentation on the internal json structure of these advanced symbols, so it would be a reverse engineering effort of sorts. Again, not exactly a very realistic workaround, but maybe something to look into.

2) I am trying to determine if the bigger symbols are right or wrong. We had issues at 10.2.x where all of our symbols were actually smaller than what they were supposed to be. So I am not sure if the fact that they are larger now is a bug or a feature. Perhaps you might know if the spec defines them to be a certain size, but it is not adhering to that?

3) Like I said earlier, we are looking to have a way to scale symbols dynamically in the future

- Lucas

0 Kudos