public class GeoJson2Kml extends Object
https://developers.google.com/kml/documentation/kmlreference
,
http://geojson.org/geojson-spec.html
Modifier and Type | Field and Description |
---|---|
private int |
indent |
private XMLStreamWriter |
kml |
Modifier | Constructor and Description |
---|---|
private |
GeoJson2Kml(XMLStreamWriter kml) |
Modifier and Type | Method and Description |
---|---|
static String |
convert(com.google.gson.JsonObject geoJson) |
private void |
doIt(com.google.gson.JsonObject geoJson) |
private void |
endElem() |
private void |
endElems(int count) |
private String |
getCoordinate(com.google.gson.JsonElement elem) |
private List<String> |
getCoordinates(com.google.gson.JsonElement elem) |
private void |
startElem(String name) |
private void |
startElems(String... names) |
private void |
writeCoordinate(String coordinate) |
private void |
writeGeometry(com.google.gson.JsonObject geoJson) |
private void |
writeGeometryCollection(com.google.gson.JsonObject geoJson) |
private void |
writeLineString(com.google.gson.JsonObject geoJson) |
private void |
writePoint(com.google.gson.JsonObject geoJson) |
private void |
writePolygon(com.google.gson.JsonObject geoJson) |
private XMLStreamWriter kml
private int indent
private GeoJson2Kml(XMLStreamWriter kml)
private void writeGeometry(com.google.gson.JsonObject geoJson) throws Exception
Exception
private void writePoint(com.google.gson.JsonObject geoJson) throws Exception
Exception
private void writeLineString(com.google.gson.JsonObject geoJson) throws Exception
Exception
private void writePolygon(com.google.gson.JsonObject geoJson) throws Exception
Exception
private void writeGeometryCollection(com.google.gson.JsonObject geoJson) throws Exception
Exception
private void writeCoordinate(String coordinate) throws XMLStreamException
XMLStreamException
private List<String> getCoordinates(com.google.gson.JsonElement elem)
private String getCoordinate(com.google.gson.JsonElement elem)
private void startElems(String... names) throws Exception
Exception
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses