Class OPolygonShapeBuilder
java.lang.Object
com.orientechnologies.spatial.shape.OShapeBuilder<T>
com.orientechnologies.spatial.shape.OComplexShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
com.orientechnologies.spatial.shape.OPolygonShapeBuilder
- Direct Known Subclasses:
OMultiPolygonShapeBuilder
public class OPolygonShapeBuilder
extends OComplexShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
Created by enricorisa on 24/04/14.
-
Field Summary
Fields inherited from class com.orientechnologies.spatial.shape.OShapeBuilder
BASE_CLASS, COORDINATES, GEOMETRY_FACTORY, SHAPE_FACTORY, SPATIAL_CONTEXT, wktReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoordinatesFromPolygon(org.locationtech.jts.geom.Polygon polygon) coordinatesFromPolygonZ(org.locationtech.jts.geom.Geometry polygon) protected org.locationtech.jts.geom.LinearRingcreateLinearRing(List<List<Number>> coords) protected org.locationtech.jts.geom.PolygoncreatePolygon(List<List<List<Number>>> coordinates) org.locationtech.spatial4j.shape.jts.JtsGeometrygetName()getType()voidtoDoc(org.locationtech.spatial4j.shape.jts.JtsGeometry shape) protected ODocumenttoDoc(org.locationtech.spatial4j.shape.jts.JtsGeometry shape, org.locationtech.jts.geom.Geometry geometry) Methods inherited from class com.orientechnologies.spatial.shape.OComplexShapeBuilder
coordinatesFromLineString, coordinatesFromLineStringZ, createLineString, createMultiLine, createMultiPoint, createMultiPolygon, isMultiLine, isMultiPoint, isMultiPolygon, isPoint, isPolygonMethods inherited from class com.orientechnologies.spatial.shape.OShapeBuilder
asBinary, asGeoJson, asGeoJson, asText, asText, asText, buffer, context, format, fromGeoJson, fromMapGeoJson, fromObject, fromText, getSRID, superClass, toDoc, toShape, validate
-
Constructor Details
-
OPolygonShapeBuilder
public OPolygonShapeBuilder()
-
-
Method Details
-
getName
- Specified by:
getNamein classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-
getType
- Specified by:
getTypein classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-
initClazz
- Specified by:
initClazzin classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-
fromDoc
- Specified by:
fromDocin classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-
createPolygon
-
createLinearRing
-
toDoc
- Specified by:
toDocin classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-
toDoc
protected ODocument toDoc(org.locationtech.spatial4j.shape.jts.JtsGeometry shape, org.locationtech.jts.geom.Geometry geometry) - Overrides:
toDocin classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-
coordinatesFromPolygon
-
coordinatesFromPolygonZ
-
asText
- Overrides:
asTextin classOShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
-