Package org.elasticsearch.common.geo
Class GeoJson
java.lang.Object
org.elasticsearch.common.geo.GeoJson
Utility class for converting libs/geo shapes to and from GeoJson
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.geometry.Geometry
fromXContent(org.elasticsearch.geometry.utils.GeometryValidator validator, boolean coerce, boolean rightOrientation, org.elasticsearch.common.xcontent.XContentParser parser)
static String
getGeoJsonName(org.elasticsearch.geometry.Geometry geometry)
toMap(org.elasticsearch.geometry.Geometry geometry)
Produces that same GeoJSON as toXContent only in parsed map formstatic org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.geometry.Geometry geometry, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Method Details
-
fromXContent
public static org.elasticsearch.geometry.Geometry fromXContent(org.elasticsearch.geometry.utils.GeometryValidator validator, boolean coerce, boolean rightOrientation, org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
toXContent
public static org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.geometry.Geometry geometry, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
toMap
Produces that same GeoJSON as toXContent only in parsed map form -
getGeoJsonName
-