public class GeoJSONFeature<T extends GeoJSONGeometryObject> extends Object implements Validatable
| Constructor and Description |
|---|
GeoJSONFeature() |
public final String type
public T getGeometry()
public Map<String,Object> getProperties()
public GeoJSONFeature<T> setGeometry(T geometry)
public GeoJSONFeature<T> setProperties(Map<String,Object> properties)
public static GeoJSONFeature<GeoJSONPoint> createPointFeature(GeoJSONCoordinate point)
public static GeoJSONFeature<GeoJSONPoint> createPointFeature(GeoJSONPoint point)
public static GeoJSONFeature<GeoJSONLineString> createLineStringFeature(Location<?> from, Location<?> to, GeoJSONCoordinate... geometryInbetween)
public static GeoJSONFeature<GeoJSONLineString> createLineStringFeature(List<GeoJSONCoordinate> points)
public static GeoJSONFeature<GeoJSONLineString> createLineStringFeature(GeoJSONLineString lineString)
public static GeoJSONFeature<GeoJSONPolygon> createPolygonFeatureFromRings(List<GeoJSONCoordinate> outerRing, List<List<GeoJSONCoordinate>> innerRings)
outerRing - mandatoryinnerRings - can be emptyGeoJSONPolygon.coordinatespublic static GeoJSONFeature<GeoJSONPolygon> createPolygonFeatureFromCoordinatePoints(List<List<GeoJSONCoordinate>> points)
GeoJSONPolygon.coordinatespublic static GeoJSONFeature<GeoJSONPolygon> createPolygonFeature(GeoJSONPolygon polygon)
public static GeoJSONFeature<GeoJSONMultiPolygon> createMultiPolygonFeatureFromPolygons(List<GeoJSONFeature<GeoJSONPolygon>> polygons)
public void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablepublic String toWKT()
Copyright © 2018. All rights reserved.