Class JtsSpatialContextFactory

java.lang.Object
org.locationtech.spatial4j.context.SpatialContextFactory
org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory

public class JtsSpatialContextFactory extends SpatialContextFactory
See SpatialContextFactory.makeSpatialContext(java.util.Map, ClassLoader).

The following keys are looked up in the args map, in addition to those in the superclass:

datelineRule
width180(default)|ccwRect|none -- see DatelineRule
validationRule
error(default)|none|repairConvexHull|repairBuffer0 -- see ValidationRule
autoIndex
true|false(default) -- see JtsShapeFactory.isAutoIndex()
allowMultiOverlap
true|false(default) -- see JtsSpatialContext.isAllowMultiOverlap()
precisionModel
floating(default) | floating_single | fixed -- see PrecisionModel. If fixed then you must also provide precisionScale -- see PrecisionModel.getScale()
useJtsPoint, useJtsLineString, useJtsMulti
All default to true. See corresponding methods on JtsShapeFactory.
  • Field Details

    • defaultPrecisionModel

      protected static final org.locationtech.jts.geom.PrecisionModel defaultPrecisionModel
    • precisionModel

      public org.locationtech.jts.geom.PrecisionModel precisionModel
    • srid

      public int srid
    • coordinateSequenceFactory

      public org.locationtech.jts.geom.CoordinateSequenceFactory coordinateSequenceFactory
    • datelineRule

      public DatelineRule datelineRule
    • validationRule

      public ValidationRule validationRule
    • autoIndex

      public boolean autoIndex
    • allowMultiOverlap

      public boolean allowMultiOverlap
    • useJtsPoint

      public boolean useJtsPoint
    • useJtsLineString

      public boolean useJtsLineString
    • useJtsMulti

      public boolean useJtsMulti
  • Constructor Details

    • JtsSpatialContextFactory

      public JtsSpatialContextFactory()
  • Method Details