Giter Club home page Giter Club logo

Comments (8)

joebayles avatar joebayles commented on August 31, 2024

Land Unit Special Entities proved especially difficult to translate to XML.

4-25-2014 5-00-26 pm

The issue is that they are separate files and therefore separate layers, but the code seems to indicate there should be separate symbols for each variable (five for Main to Full Octagon symbols, eight for Full Frame symbols). After talking w/ @abouffard we have implemented the following code (in this example, it is the Headquarters Element Entity Subtype.

Main to Full Octagon
Graphic="xxxxxxxx.svg"
SpecialCloverGraphic="10xxxx95_0.svg" SpecialRectangleGraphic="10xxxx95_1.svg" SpecialSquareGraphic="10xxxx95_2.svg" SpecialDiamondGraphic="10xxxx95_3.svg"

Full Frame
CloverGraphic="xxxxxxxx_0.svg" RectangleGraphic="xxxxxxxx_1.svg" SquareGraphic="xxxxxxxx_2.svg" DiamondGraphic="xxxxxxxx_3.svg"
SpecialCloverGraphic="10xxxx95_0.svg" SpecialRectangleGraphic="10xxxx95_1.svg" SpecialSquareGraphic="10xxxx95_2.svg" SpecialDiamondGraphic="10xxxx95_3.svg"

This should draw both, and draw the symbol properly according to the standard.

@abouffard , @mepler, do ALL entity types use these, or just specific ones? For instance, the Movement and Maneuver units may use Headquarters Element entity, but not the support entities.

Just wondering, because adding every special entity to every entity is very time consuming.

from joint-military-symbology-xml.

joebayles avatar joebayles commented on August 31, 2024

@abouffard , we need to adjust the schema to incorporate MEDAL and Alternative icons for Mine Warfare. Here are some screen shots.

4-26-2014 3-30-41 pm
4-26-2014 3-31-56 pm

from joint-military-symbology-xml.

csmoore avatar csmoore commented on August 31, 2024

RE: These Clover/Rectangle/Square/Diamond Graphics (Infantry, Cache, etc.) & Special Land Unit cases of these mentioned above, etc.

If the convention for these graphics are quite consistent (which they seem to be, listed below) - could we instead just :

  1. tag/attribute the entities that have these special cases &
  2. have the rules of these consistent special cases defined somewhere else &
  3. avoid all of this redundancy/manual data entry (not to mention size bloat)
Case # Convention
Unknown ("Clover") 0 X +"_0"
Friend ("Rectangle") 1 X +"_1"
Neutral ("Square") 2 X +"_2"
Hostile ("Diamond") 3 X +"_3"

So instead of CloverGraphic="X_0.svg" RectangleGraphic="X_1.svg" SquareGraphic="X_2.svg" DiamondGraphic="X_3.svg" (etc., etc.) ==> Use: FullFrameIcons="True" SpecialLandEntityIcons="True" (or something like these) - this will also allow an easy tag to show when these special cases apply (which users will indeed need an easy way to know this)

For Joe's particular issue, I would recommend just skipping the "SpecialGraphic" for these (but do make sure they have the correct base icon) for instance Land Unit : Sustainment : Ordnance : Headquarters Element should have base graphic/icon Appendices\Land\10162300.svg (this is 00 for last 2 digits, not 95)

from joint-military-symbology-xml.

joebayles avatar joebayles commented on August 31, 2024

I like the idea of using the easy tag, we should try that.

I can work without the special graphic for now and revisit it later, I just didn't want to undo some of what @abouffard has already done.

Either way, we are not using special entity file names for the base graphic, because the current SVGs don't support that. For instance, 10162300.svg is the correct one, there is no 10162395.svg. We would have to add the correct Headquarters Element SVG (10xxxx95_x.svg), which is always full frame, as a second layer.

from joint-military-symbology-xml.

joebayles avatar joebayles commented on August 31, 2024

I'm sure @abouffard already has a way forward, but I don't know how we will implement dynamic symbols like Atmospheric/Wind/Wind Plot (45140200).

from joint-military-symbology-xml.

csmoore avatar csmoore commented on August 31, 2024

RE: Dynamic Weather Symbols (i.e. symbols that need the attributes/amplifiers of the symbol to draw) - this is actually a tough one...but only for weather ones (I think) - In general all of the other appendices explicitly define the amplifiers/labels/attributes & this was captured in the XML:

So for instance, if a symbol needed to use Speed to draw (like I think there is a "Speed Leader" defined), here is the attribute: https://github.com/Esri/joint-military-symbology-xml/blob/master/instance/jmsml_D_Base.xml#L50

Another (hopefully simpler) example: Control Measures : Fires Areas : Area Targets : Circular Target is driven by an attribute: AM=Distance that it needs in order to draw.

But because Weather symbols generally don't have labels, perhaps the amplifier section was left off of these, but we still will need to have these attributes captured somewhere to drive/display the symbol.

So to keep moving forward for the weather attributes, you might have to just add these in to the <Amplifiers> for that set as you encounter them (& then figure out how to deal with this deviation later-if this is even a deviation) - you can XML comment these (<!-- --> if you want to remember what/why you did it this way later)

from joint-military-symbology-xml.

lfunkhouser avatar lfunkhouser commented on August 31, 2024

@joebayles @abouffard Each issue should be separate so we can close each one as it gets addressed.

from joint-military-symbology-xml.

joebayles avatar joebayles commented on August 31, 2024

@lfunkhouser Created separate issues for each one. Will close this one.

from joint-military-symbology-xml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.