public class JtsSpatialContextFactory extends SpatialContextFactory
SpatialContextFactory.makeSpatialContext(java.util.Map, ClassLoader)
.
The following keys are looked up in the args map, in addition to those in the
superclass:
JtsWktShapeParser.DatelineRule
JtsWktShapeParser.ValidationRule
JtsWktShapeParser.isAutoIndex()
JtsSpatialContext.isAllowMultiOverlap()
PrecisionModel
.
If fixed
then you must also provide precisionScale
-- see PrecisionModel.getScale()
Modifier and Type | Field and Description |
---|---|
boolean |
allowMultiOverlap |
boolean |
autoIndex |
com.vividsolutions.jts.geom.CoordinateSequenceFactory |
coordinateSequenceFactory |
JtsWktShapeParser.DatelineRule |
datelineRule |
protected static com.vividsolutions.jts.geom.PrecisionModel |
defaultPrecisionModel |
com.vividsolutions.jts.geom.PrecisionModel |
precisionModel |
int |
srid |
boolean |
useJtsLineString |
boolean |
useJtsPoint |
JtsWktShapeParser.ValidationRule |
validationRule |
args, binaryCodecClass, classLoader, distCalc, geo, normWrapLongitude, wktShapeParserClass, worldBounds
Constructor and Description |
---|
JtsSpatialContextFactory() |
Modifier and Type | Method and Description |
---|---|
com.vividsolutions.jts.geom.GeometryFactory |
getGeometryFactory() |
protected void |
init(Map<String,String> args,
ClassLoader classLoader) |
JtsSpatialContext |
newSpatialContext()
Subclasses should simply construct the instance from the initialized configuration.
|
initCalculator, initField, initWorldBounds, makeBinaryCodec, makeSpatialContext, makeWktShapeParser
protected static final com.vividsolutions.jts.geom.PrecisionModel defaultPrecisionModel
public com.vividsolutions.jts.geom.PrecisionModel precisionModel
public int srid
public com.vividsolutions.jts.geom.CoordinateSequenceFactory coordinateSequenceFactory
public JtsWktShapeParser.DatelineRule datelineRule
public JtsWktShapeParser.ValidationRule validationRule
public boolean autoIndex
public boolean allowMultiOverlap
public boolean useJtsPoint
public boolean useJtsLineString
protected void init(Map<String,String> args, ClassLoader classLoader)
init
in class SpatialContextFactory
public com.vividsolutions.jts.geom.GeometryFactory getGeometryFactory()
public JtsSpatialContext newSpatialContext()
SpatialContextFactory
newSpatialContext
in class SpatialContextFactory
Copyright © 2016 LocationTech. All rights reserved.