old-mil-sym-java icon indicating copy to clipboard operation
old-mil-sym-java copied to clipboard

Critical Friendly Zone (CFZ), Circular Symbol Icon Is 'Blue Kill Box' Icon

Open david-melendez opened this issue 9 years ago • 6 comments

When generating a symbol icon for the CFZ, Circular symbol, the icon that is generated is for the Blue Kill Box. Here is the code I used to find the bug:

String basepath = "C:\\testdata\\";
        
// Set B standard
RendererSettings s = RendererSettings.getInstance();
s.setSymbologyStandard(0);
        
String id = "GFFPAZFC------X";  // B standard - Critical Friendly Zone, Circular
        
BufferedImage b = r.getMilStdSymbolasIcon(id, 60, Boolean.FALSE);
        
File outFile = new File(basepath + id.replace('*','_') + "icon.png");
ImageIO.write(b, "png", outFile);

Here is the image that is generated:

gffpazfc------xicon

david-melendez avatar Feb 03 '17 21:02 david-melendez

That is a bug, but at the same time, I don't see a CFZ circular in the USAS or MilStd2525B or C. I think we may have implemented that by mistake. Deutch, am I wrong?

michael-spinelli avatar Feb 03 '17 22:02 michael-spinelli

GFFPAZFC------X does render as a multipoint symbol for B and for C.

mdeutch3 avatar Feb 03 '17 22:02 mdeutch3

This appears only in the B-Standard (page 506).

David Melendez

mailto:[email protected] [email protected]

Software Engineer

Nova Tech Solutions

From: Michael Spinelli [mailto:[email protected]] Sent: Friday, February 3, 2017 4:03 PM To: missioncommand/mil-sym-java [email protected] Cc: david-melendez [email protected]; Author [email protected] Subject: Re: [missioncommand/mil-sym-java] Critical Friendly Zone (CFZ), Circular Symbol Icon Is 'Blue Kill Box' Icon (#47)

That is a bug, but at the same time, I don't see a CFZ circular in the USAS or MilStd2525B or C. I think we may have implemented that by mistake. Deutch, am I wrong?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/missioncommand/mil-sym-java/issues/47#issuecomment-277374448 , or mute the thread https://github.com/notifications/unsubscribe-auth/AVkzUwsPjtnLej0Gb42-F33rBIxjtIe5ks5rY6P2gaJpZM4L21zM . https://github.com/notifications/beacon/AVkzU6XOVhUn2bLeZlsY50XgEapR2vDwks5rY6P2gaJpZM4L21zM.gif

david-melendez avatar Feb 03 '17 22:02 david-melendez

Yes, I don't see it in Rev C which only has CFZ irregular and rectangular apparently.

mdeutch3 avatar Feb 03 '17 23:02 mdeutch3

I must've missed it in B. I'll take another look on Monday. Either way, I'll fix the icon issue.

michael-spinelli avatar Feb 04 '17 12:02 michael-spinelli

fixed in release v0.1.19

michael-spinelli avatar Feb 15 '17 18:02 michael-spinelli