[geos-devel] Example code to build KML files (ideally in ruby)?

Charlie Savage cfis at savagexi.com
Tue Jul 25 15:14:57 EDT 2006


REXML is usually the library people use for XML processing/output in 
Ruby.  Note there are also Ruby bindings for ogr, so you might want to 
give those a try.

Charlie

Mateusz Loskot wrote:
> Robert J. Berger wrote:
>> If by chance anyone has any examples of generating KML, particularly in
>> conjunction with some Ruby GEOS examples, I would be most appreciative!
> 
> I have no idea about examples in Ruby, but I'd say it should not be a
> problem to create KML output in Ruby. First, I'd suggest to learn how to
> construct XML tree in Ruby (I have no idea of this, because I'm not a
> Ruby programmer, yet ;-)).
> Then you can walk through the KML documentation and see what elements
> you need to include in your output. KML is a dialect of XML.
> 
> FYI, the OGR library includes KML driver:
> http://www.gdal.org/ogr/drv_kml.html
> 
> 
> Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20060725/dc82b64e/smime.bin


More information about the geos-devel mailing list