Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mil Stdr 2525C Graphics Render Improperly #96

Open
fteel opened this issue Sep 21, 2020 · 18 comments
Open

Mil Stdr 2525C Graphics Render Improperly #96

fteel opened this issue Sep 21, 2020 · 18 comments
Labels

Comments

@fteel
Copy link

fteel commented Sep 21, 2020

The following graphics do not render properly:
Taks->Disrupt
MOBILITY/SURVIVABILITY -> OBSTACLES -> OBSTACLE EFFECT -> DISRUPT
Chemically Contaminated Area
Halted Convoy
Biologically Contaminated Area
Minimum Safe Distance Zones
Roadblock Complete (executed)
Dynamic Depiction
Dummy Minefield (dynamic)
Biologically Contaminated Area
Biologically Contaminated Area

Also, all graphics that indicate it as a rectangle render as a square.

See images in Attachments
Slide1
Slide2
Slide3
Slide4
Slide5
Slide6

@michael-spinelli
Copy link
Contributor

michael-spinelli commented Sep 22, 2020

Let me ask a few things before I look deeper into this.

-Going by the Disrupt example, it looks like you didn't change the symbology standard from 2525B to 2525C.
you can do this globally:
RendererSettings.getInstance().setSymbologyStandard(RendererSettings.Symbology_2525C);
or per graphic:
attributes.put(MilStdAttributes.SymbologyStandard, String.valueOf(RendererSettings.Symbology_2525Bch2_USAS_13_14));

-Without knowing what the point placement is, the Disrupt looks like it's rendering ok.

-Contaminated areas, I'm not clear on what the issue you're seeing is.

-Looking at the minefields, I think you need to make sure you're setting the map scale properly. Unfortunately, the "right" value varies depending on the map technology.

-For the area's, are you passing in the appropriate width values?

Multi Point Tactical Graphics:
//(comma delimited for modifiers with multiple values)
modifiers.put(ModifiersTG.AM_DISTANCE,"1000,2000,3000");

@fteel
Copy link
Author

fteel commented Sep 22, 2020 via email

@fteel
Copy link
Author

fteel commented Sep 22, 2020 via email

@fteel
Copy link
Author

fteel commented Sep 22, 2020 via email

@fteel
Copy link
Author

fteel commented Sep 23, 2020 via email

@michael-spinelli
Copy link
Contributor

It's all in the MilStd 2525

No Fire Area has 2 points and the width is determined by 1 "AM" value
modifiers.put(ModifiersTG.AM_DISTANCE,"1000");
image

Rectangular Target has 1 point (center) with 1 "AN" value for attitude/angle and 2 "AM" values for length and width
modifiers.put(ModifiersTG.AN_AZIMUTH,"45");//If I remember correctly, it can be degrees or mils depending on the symbol. Check MilStd.
modifiers.put(ModifiersTG.AM_DISTANCE,"1000, 2000");//in meters, AM, AM1, AM2....
image

@michael-spinelli
Copy link
Contributor

michael-spinelli commented Sep 23, 2020

Also, for Tactical Graphics, getSymbolDef will help you figure out what modifiers each symbol has.

@michael-spinelli
Copy link
Contributor

For your areas that are coming out as triangle, are you saying you're adding more than three set of coordinates and they're still rendering as a triangle?

@fteel
Copy link
Author

fteel commented Sep 23, 2020 via email

@michael-spinelli
Copy link
Contributor

The picture didn't show up.
Can you reply directly on the issue tracker in github rather than using email?

Also, I plotted those points and they make a triangle.

@fteel
Copy link
Author

fteel commented Sep 24, 2020

image

@michael-spinelli
Copy link
Contributor

I plotted the points from your email. It looks fine to me. What am I missing?:
point2

I flipped the lat and lon values and got this as well:
point1

@fteel
Copy link
Author

fteel commented Sep 24, 2020 via email

@michael-spinelli
Copy link
Contributor

It's a polygon based area. It works similar to Fire Support Area (FSA) and it takes the shape of whatever points you give it.

@fteel
Copy link
Author

fteel commented Sep 30, 2020 via email

@michael-spinelli
Copy link
Contributor

So, using something like a general area?
For something simple like that, I don't believe order matters.

You could also use the code "BS_AREA--------" for basic shape area. It's not a milstd symbol so you can't pass it to another system but you can draw a simple area with it.

@fteel
Copy link
Author

fteel commented Sep 30, 2020 via email

@michael-spinelli
Copy link
Contributor

Yes, "BS_AREA--------" is just an SIDC we made up for the purpose of drawing a basic shape area. Like the other areas, it requires a minimum of 3 points but can have as many as you want to make whatever shape you want. They're no different in usage from the other areas you've been drawing (minefields, NFA, etc...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants