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.
  • Constructor Details

    • OPolygonShapeBuilder

      public OPolygonShapeBuilder()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
    • getType

      public OShapeType getType()
      Specified by:
      getType in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
    • initClazz

      public void initClazz(ODatabaseInternal db)
      Specified by:
      initClazz in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
    • fromDoc

      public org.locationtech.spatial4j.shape.jts.JtsGeometry fromDoc(ODocument document)
      Specified by:
      fromDoc in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
    • createPolygon

      protected org.locationtech.jts.geom.Polygon createPolygon(List<List<List<Number>>> coordinates)
    • createLinearRing

      protected org.locationtech.jts.geom.LinearRing createLinearRing(List<List<Number>> coords)
    • toDoc

      public ODocument toDoc(org.locationtech.spatial4j.shape.jts.JtsGeometry shape)
      Specified by:
      toDoc in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
    • toDoc

      protected ODocument toDoc(org.locationtech.spatial4j.shape.jts.JtsGeometry shape, org.locationtech.jts.geom.Geometry geometry)
      Overrides:
      toDoc in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>
    • coordinatesFromPolygon

      protected List<List<List<Double>>> coordinatesFromPolygon(org.locationtech.jts.geom.Polygon polygon)
    • coordinatesFromPolygonZ

      protected List<List<List<Double>>> coordinatesFromPolygonZ(org.locationtech.jts.geom.Geometry polygon)
    • asText

      public String asText(ODocument document)
      Overrides:
      asText in class OShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry>