Esri / military-features-data

Source data for Esri defense and intelligence feature templates. This data is used to create features and derived data products using military symbology.
Apache License 2.0
46 stars 32 forks source link

ExportSymbol.java works only using the name #71

Closed caporossi closed 8 years ago

caporossi commented 9 years ago

I have tested the code found in https://github.com/Esri/military-features-data/tree/master/test/TestExportSymbol

with both symbol dictionary 2525 and APP6

but with the SIC for example SFGPUCI ----- USG the symbol is not generated.

csmoore commented 9 years ago

Do you have a version of runtime this is occurring with (I haven't tested this example since 10.2 myself)?

Also note that is your example above there are some extra spaces in the SIC: SFGPUCI{space}-----{space}USG - but if you were just running the example mentioned above the sidc should be correct there.

caporossi commented 9 years ago

We use   - ArcGIS Runtime SDK for Java 10.2.4   - Dictionary app6b.dat version 1390944071 The code seems to work only with the names, for example, using "Light Armored Vehicle F" is generated symbol. light armored vehicle f corresponding to Symbol ID "SFGPEVAL-------"

with any valid Symbol ID is generated always the symbol sfgpeval-------

It seems that is not possible export an image using a Symbol ID !!

csmoore commented 9 years ago

I do see this issue with Java Runtime 10.2.4.

It looks like the SDK may have changed the behavior of this method to only use the name so using the export with the SIC returns an "unknown" symbol (below). I would say a workaround might be to map SICs to names, but this won't allow you to export a symbol with all of the modifiers. So this issue should be reported to customer support if the modifiers are needed.

sfgpuci-----usg

caporossi commented 9 years ago

Perfect you have understood the problem.

We visualize correctly the symbols on the map with modifiers through MessageProcessor, but when the operator executes the identify in the result we need to represent the symbol with modifiers.

By mapping the names with symbol ID we have only the first 10 characters of the SIDC.

caporossi commented 9 years ago

The customer support it confirmed that can not be used getSymbolImage with SIDC in ArcGIS Runtime for Java 10.2.4 but only with the Name.

The support has opened an enhancement request ENH-000087693.

csmoore commented 9 years ago

Another issue I noticed with this is that those names are not always unique so you are not able to image-export every symbol just using the name.

caporossi commented 9 years ago

can you send me some examples? I'm trying to solve this and other issues encountered. I hope to have meetings on this issues during the UC to San Diego

csmoore commented 9 years ago

I was just looking at the difference between Select Name from SymbolInfo and Select Distinct Name from SymbolInfo - "Infantry F" is one example.

Since this appears to be designated as an enhancement (ENH) I just wanted to make sure they were aware there were multiple issues with just using the name for export (no modifiers displayed, repeated names).

Perhaps the solution would be to add an additional method "getSymbolImageById"

csmoore commented 8 years ago

This API has been changed at Runtime Quartz so this issue should be resolved there with the new search capability and swatch export - I removed the old test apps for now (in branch https://github.com/Esri/military-features-data/tree/v.next/test ) until these apps are updated to Quartz (there is a Qt sample there)