milgraphics
milgraphics copied to clipboard
Add input format SLF
Because it was an easy way to get access to some sample data I made a parser for SitaWare SLF files. Can't read all location types yet, but working on it and it works for all points, lines, and polygons. (And some mulitpoint symbols.)
can you add example of SitaWare SLF file to you sourse code?
I will see if there is any sample data I can include. The main input format for the library is however plain GeoJSON, and hopefully I will be able to create a draft of the format specification within a week or so. What the SLF parser does is to parse a SLF file from XML to GeoJSON and then input it into the library.
If you have a GeoJSON file that has points with an attribute called SIDC you can simply provide that directly into ms.GraphicsLayer(GeoJSON).
It is also possible to use ms.format.GeoJSON(geojson, mapping) to remap attributes to new attribute names.
great work, thanks a lot!