Geometry Data Type

Abstract Type
Subtypes
Point
Implemented Interfaces
Cloneable, Comparable
Properties
name data type constraints description
numPoints number required int
centroid Point  
coordinates array of Coordinate  
dimension number required int
length number required double
factory GeometryFactory  
interiorPoint Point  
simple boolean required boolean
rectangle boolean required boolean
SRID number required int
numGeometries number required int
valid boolean required boolean
envelope Geometry  
boundaryDimension number required int
geometryType string  
userData object  
coordinate Coordinate  
precisionModel PrecisionModel  
empty boolean required boolean
area number required double
envelopeInternal Envelope  
boundary Geometry  

Example

This data type is abstract. The example below may be incomplete. More accurate examples can be found in subtypes pages.
{
  "numPoints" : 12345,
  "centroid" : {
    "boundaryDimension" : 12345,
    "dimension" : 12345,
    "coordinateSequence" : {
      "dimension" : 12345,
      "measures" : 12345
    },
    "numPoints" : 12345,
    "geometryType" : "...",
    "simple" : true,
    "coordinates" : [ {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    }, {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    } ],
    "empty" : true,
    "x" : 12345.0,
    "boundary" : {
      "numPoints" : 12345,
      "centroid" : { },
      "coordinates" : [ { }, { } ],
      "dimension" : 12345,
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "simple" : true,
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "boundaryDimension" : 12345,
      "geometryType" : "...",
      "userData" : { },
      "coordinate" : { },
      "precisionModel" : { },
      "empty" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "boundary" : { }
    },
    "coordinate" : {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    },
    "y" : 12345.0,
    "centroid" : { },
    "length" : 12345.0,
    "factory" : {
      "coordinateSequenceFactory" : { },
      "SRID" : 12345,
      "precisionModel" : { }
    },
    "interiorPoint" : { },
    "rectangle" : true,
    "SRID" : 12345,
    "numGeometries" : 12345,
    "valid" : true,
    "envelope" : {
      "numPoints" : 12345,
      "centroid" : { },
      "coordinates" : [ { }, { } ],
      "dimension" : 12345,
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "simple" : true,
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "boundaryDimension" : 12345,
      "geometryType" : "...",
      "userData" : { },
      "coordinate" : { },
      "precisionModel" : { },
      "empty" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "boundary" : { }
    },
    "userData" : { },
    "precisionModel" : {
      "type" : { },
      "scale" : 12345.0,
      "maximumSignificantDigits" : 12345,
      "floating" : true,
      "offsetY" : 12345.0,
      "offsetX" : 12345.0
    },
    "area" : 12345.0,
    "envelopeInternal" : {
      "null" : true,
      "height" : 12345.0,
      "width" : 12345.0,
      "maxY" : 12345.0,
      "minY" : 12345.0,
      "diameter" : 12345.0,
      "maxX" : 12345.0,
      "minX" : 12345.0,
      "area" : 12345.0
    }
  },
  "coordinates" : [ {
    "x" : 12345.0,
    "z" : 12345.0,
    "valid" : true,
    "y" : 12345.0,
    "m" : 12345.0
  }, {
    "x" : 12345.0,
    "z" : 12345.0,
    "valid" : true,
    "y" : 12345.0,
    "m" : 12345.0
  } ],
  "dimension" : 12345,
  "length" : 12345.0,
  "factory" : {
    "coordinateSequenceFactory" : { },
    "SRID" : 12345,
    "precisionModel" : {
      "type" : { },
      "scale" : 12345.0,
      "maximumSignificantDigits" : 12345,
      "floating" : true,
      "offsetY" : 12345.0,
      "offsetX" : 12345.0
    }
  },
  "interiorPoint" : {
    "boundaryDimension" : 12345,
    "dimension" : 12345,
    "coordinateSequence" : {
      "dimension" : 12345,
      "measures" : 12345
    },
    "numPoints" : 12345,
    "geometryType" : "...",
    "simple" : true,
    "coordinates" : [ {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    }, {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    } ],
    "empty" : true,
    "x" : 12345.0,
    "boundary" : {
      "numPoints" : 12345,
      "centroid" : { },
      "coordinates" : [ { }, { } ],
      "dimension" : 12345,
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "simple" : true,
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "boundaryDimension" : 12345,
      "geometryType" : "...",
      "userData" : { },
      "coordinate" : { },
      "precisionModel" : { },
      "empty" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "boundary" : { }
    },
    "coordinate" : {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    },
    "y" : 12345.0,
    "centroid" : { },
    "length" : 12345.0,
    "factory" : {
      "coordinateSequenceFactory" : { },
      "SRID" : 12345,
      "precisionModel" : { }
    },
    "interiorPoint" : { },
    "rectangle" : true,
    "SRID" : 12345,
    "numGeometries" : 12345,
    "valid" : true,
    "envelope" : {
      "numPoints" : 12345,
      "centroid" : { },
      "coordinates" : [ { }, { } ],
      "dimension" : 12345,
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "simple" : true,
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "boundaryDimension" : 12345,
      "geometryType" : "...",
      "userData" : { },
      "coordinate" : { },
      "precisionModel" : { },
      "empty" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "boundary" : { }
    },
    "userData" : { },
    "precisionModel" : {
      "type" : { },
      "scale" : 12345.0,
      "maximumSignificantDigits" : 12345,
      "floating" : true,
      "offsetY" : 12345.0,
      "offsetX" : 12345.0
    },
    "area" : 12345.0,
    "envelopeInternal" : {
      "null" : true,
      "height" : 12345.0,
      "width" : 12345.0,
      "maxY" : 12345.0,
      "minY" : 12345.0,
      "diameter" : 12345.0,
      "maxX" : 12345.0,
      "minX" : 12345.0,
      "area" : 12345.0
    }
  },
  "simple" : true,
  "rectangle" : true,
  "SRID" : 12345,
  "numGeometries" : 12345,
  "valid" : true,
  "envelope" : {
    "numPoints" : 12345,
    "centroid" : {
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "coordinateSequence" : { },
      "numPoints" : 12345,
      "geometryType" : "...",
      "simple" : true,
      "coordinates" : [ { }, { } ],
      "empty" : true,
      "x" : 12345.0,
      "boundary" : { },
      "coordinate" : { },
      "y" : 12345.0,
      "centroid" : { },
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "userData" : { },
      "precisionModel" : { },
      "area" : 12345.0,
      "envelopeInternal" : { }
    },
    "coordinates" : [ {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    }, {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    } ],
    "dimension" : 12345,
    "length" : 12345.0,
    "factory" : {
      "coordinateSequenceFactory" : { },
      "SRID" : 12345,
      "precisionModel" : { }
    },
    "interiorPoint" : {
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "coordinateSequence" : { },
      "numPoints" : 12345,
      "geometryType" : "...",
      "simple" : true,
      "coordinates" : [ { }, { } ],
      "empty" : true,
      "x" : 12345.0,
      "boundary" : { },
      "coordinate" : { },
      "y" : 12345.0,
      "centroid" : { },
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "userData" : { },
      "precisionModel" : { },
      "area" : 12345.0,
      "envelopeInternal" : { }
    },
    "simple" : true,
    "rectangle" : true,
    "SRID" : 12345,
    "numGeometries" : 12345,
    "valid" : true,
    "envelope" : { },
    "boundaryDimension" : 12345,
    "geometryType" : "...",
    "userData" : { },
    "coordinate" : {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    },
    "precisionModel" : {
      "type" : { },
      "scale" : 12345.0,
      "maximumSignificantDigits" : 12345,
      "floating" : true,
      "offsetY" : 12345.0,
      "offsetX" : 12345.0
    },
    "empty" : true,
    "area" : 12345.0,
    "envelopeInternal" : {
      "null" : true,
      "height" : 12345.0,
      "width" : 12345.0,
      "maxY" : 12345.0,
      "minY" : 12345.0,
      "diameter" : 12345.0,
      "maxX" : 12345.0,
      "minX" : 12345.0,
      "area" : 12345.0
    },
    "boundary" : { }
  },
  "boundaryDimension" : 12345,
  "geometryType" : "...",
  "userData" : { },
  "coordinate" : {
    "x" : 12345.0,
    "z" : 12345.0,
    "valid" : true,
    "y" : 12345.0,
    "m" : 12345.0
  },
  "precisionModel" : {
    "type" : { },
    "scale" : 12345.0,
    "maximumSignificantDigits" : 12345,
    "floating" : true,
    "offsetY" : 12345.0,
    "offsetX" : 12345.0
  },
  "empty" : true,
  "area" : 12345.0,
  "envelopeInternal" : {
    "null" : true,
    "height" : 12345.0,
    "width" : 12345.0,
    "maxY" : 12345.0,
    "minY" : 12345.0,
    "diameter" : 12345.0,
    "maxX" : 12345.0,
    "minX" : 12345.0,
    "area" : 12345.0
  },
  "boundary" : {
    "numPoints" : 12345,
    "centroid" : {
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "coordinateSequence" : { },
      "numPoints" : 12345,
      "geometryType" : "...",
      "simple" : true,
      "coordinates" : [ { }, { } ],
      "empty" : true,
      "x" : 12345.0,
      "boundary" : { },
      "coordinate" : { },
      "y" : 12345.0,
      "centroid" : { },
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "userData" : { },
      "precisionModel" : { },
      "area" : 12345.0,
      "envelopeInternal" : { }
    },
    "coordinates" : [ {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    }, {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    } ],
    "dimension" : 12345,
    "length" : 12345.0,
    "factory" : {
      "coordinateSequenceFactory" : { },
      "SRID" : 12345,
      "precisionModel" : { }
    },
    "interiorPoint" : {
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "coordinateSequence" : { },
      "numPoints" : 12345,
      "geometryType" : "...",
      "simple" : true,
      "coordinates" : [ { }, { } ],
      "empty" : true,
      "x" : 12345.0,
      "boundary" : { },
      "coordinate" : { },
      "y" : 12345.0,
      "centroid" : { },
      "length" : 12345.0,
      "factory" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "SRID" : 12345,
      "numGeometries" : 12345,
      "valid" : true,
      "envelope" : { },
      "userData" : { },
      "precisionModel" : { },
      "area" : 12345.0,
      "envelopeInternal" : { }
    },
    "simple" : true,
    "rectangle" : true,
    "SRID" : 12345,
    "numGeometries" : 12345,
    "valid" : true,
    "envelope" : { },
    "boundaryDimension" : 12345,
    "geometryType" : "...",
    "userData" : { },
    "coordinate" : {
      "x" : 12345.0,
      "z" : 12345.0,
      "valid" : true,
      "y" : 12345.0,
      "m" : 12345.0
    },
    "precisionModel" : {
      "type" : { },
      "scale" : 12345.0,
      "maximumSignificantDigits" : 12345,
      "floating" : true,
      "offsetY" : 12345.0,
      "offsetX" : 12345.0
    },
    "empty" : true,
    "area" : 12345.0,
    "envelopeInternal" : {
      "null" : true,
      "height" : 12345.0,
      "width" : 12345.0,
      "maxY" : 12345.0,
      "minY" : 12345.0,
      "diameter" : 12345.0,
      "maxX" : 12345.0,
      "minX" : 12345.0,
      "area" : 12345.0
    },
    "boundary" : { }
  }
}