scooterw / ffi-ogr

Convenient Ruby wrapper for OGR
MIT License
13 stars 5 forks source link

Added support for KML input and output. #5

Closed ajturner closed 11 years ago

ajturner commented 11 years ago

Resolves issue #3

shp = OGR::ShpReader.new.read './spec/data/ne_110m_coastline/ne_110m_coastline.shp'
shp.to_kml '~/Desktop/github_to_kml.kml'

kml = OGR::KMLReader.new.read '~/Desktop/github_to_kml.kml'
kml.to_shp './kml.shp'
scooterw commented 11 years ago

Thanks for this! Merging.