theunsgis ha scritto: > HI , I just would like to give a quick overview of the MIL symbols and how > they work.
Aah, thank you, this is very much appreciated. > Basically the Mil2525B standard define the symbols with a 15 character > string. > eg. 'SFGPUCAAA-*****' > This string wil represent Friendly Anti Armored Combat Unit. > > The software parse the string as follows: > CH1 : 'S' = War Fighting Symbol > CH2 : 'F' = Affiliation is Friendly , and their is a Blue RGB color > associated with it , same for 'H' which is hostile with a red RGB associated > with it , their are four main affiliations each with its own color , and it > also will deter main the frame of the image , Diamond , Rectangle etc. Ok, this is the deal breaker. You need ExternalGraphic, not mark (whilst I do need the opposite). The key difference between Mark and ExternalGraphic is that Mark is supposed to be a vector shape, and you specify how to stroke and fill it outside of the Mark definition, e.g.: <Mark> <WellKnownName>square</WellKnownName> <Fill> <CssParameter name="fill">#FF0000</CssParameter> </Fill> </Mark> The name just says the shape is square. The Fill element says it will be filled of solid red, the lack of a Stroke element means no outline will be painted. The following uses an SVG file as an external graphic instead, all stroke/fill definitions are inside the svg itself: <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="burg02.svg"/> <Format>image/svg+xml</Format> </ExternalGraphic> So your case matches the ExternalGraphic case, not the well known mark, since some of the symbol name elements imply a color. My case instead is supporting the usage of font based shapes freely as let the SLD specify how to stroke/fill them (think using Wingdings font as a source of symbols), as well as MapServer symbol definitions and, in the long term, Autocad symbol definitions as well (since there is a ton of them around in the web). All of these are better suited for the Mark approach. I'm going to stand up an API change proposal for this, I'll try to cover both cases (extensible marks and extensible external graphics). Cheers Andrea ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel