[Home] [By Thread] [By Date] [Recent Entries]

  • From: Uche Ogbuji <uche@o...>
  • To: Michael Kay <mike@s...>
  • Date: Mon, 25 Mar 2013 16:30:54 -0600

On Mon, Mar 25, 2013 at 2:40 PM, Michael Kay <mike@s...> wrote:

Oi!  That definitely touches a nerve!  Geodata XML formats are abominations.  I had to do a lot of work with KML last year and what the hell was anyone thinking coding that in XML?!


I did some experiments generating SVG from KML using XSLT and I found it worked extremely well.

That doesn't surprise me because SVG also uses the same interminable point series attributes that KML does (I suspect KML borrowed the idea from SVG).  It's not quite as bad in SVG because there's usually much more to the SVG file than the point sets, but in KML files, that's in my experience generally the thing you really care about, and you almost wish it were in a fixed-width binary format instead.

So yeah, I can imagine a KML->SVG transform would be fairly painless (not that I've ever tried that myself), but I don't think that really rescues KML as a format.  I'll also say that I can't imagine it would be hard to generate SVG from bog-standard KML data coded in a binary or CSV-like format.  Again without the need for e.g. mixed content, attributes, etc, XML really just gets in the way.


--
Uche Ogbuji                       http://uche.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
http://wearekin.org
http://www.thenervousbreakdown.com/author/uogbuji/
http://copia.ogbuji.net
http://www.linkedin.com/in/ucheogbuji
http://twitter.com/uogbuji


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member