KML

Description

A basic implementation of KML in pharo

Details

Source
GitHub
Dialect
pharo (25% confidence)
License
MIT
Stars
1
Created
April 28, 2020
Updated
July 31, 2024

README excerpt

KML for pharo [![Build Status](https://travis-ci.com/Pharo-GIS/KML.svg?branch=master)](https://travis-ci.com/Pharo-GIS/KML)
-------------

KML for pharo is a reader for KML files that supports basic element types to mainly extract geometries. For geometric objects it uses the OGC geo model from [OGC-Pharo](https://github.com/Pharo-GIS/OGC-Pharo/)

It can be loaded with


``` 
Metacello new
	repository: 'github://Pharo-GIS/KML';
	baseline: #KML;
	load
  
```

After loading KML markup can be parsed with 

```
kmlString := '<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Placemark>
    <name>A simple placemark on the ground</name>
    <Point>
			<coordinates>8.542952335953721,47.36685263064198,0</coordinates>
    </Point>
  </Placemark>
</kml>'.
reader := KMLReader on: kmlString readStream.
document := reader parse
```
← Back to results