public class GeoJson extends Object implements ICleanable
| Constructor and Description |
|---|
GeoJson(IGeoCoordinates coordinates)
Constructor that sets the coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Attempts to detect and remove errors in a geoJson object, such as
self-intersecting (multi-)polygons.
|
IGeoCoordinates |
getCoordinates() |
String |
getType() |
boolean |
isValid()
Returns true if the GeoJson has coordinates.
|
void |
setCoordinates(IGeoCoordinates coordinates)
Changes the coordinates of the GeoJson.
|
public GeoJson(IGeoCoordinates coordinates)
coordinates - a IGeoCoordinate implementing object that represents valid GeoJson coordinatespublic void setCoordinates(IGeoCoordinates coordinates)
coordinates - a IGeoCoordinate implementing object that represents valid GeoJson coordinatespublic boolean isValid()
public String getType()
public IGeoCoordinates getCoordinates()
public void clean()
clean in interface ICleanableCopyright © 2017–2018. All rights reserved.