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:
DatelineRule
ValidationRule
JtsShapeFactory.isAutoIndex()
JtsSpatialContext.isAllowMultiOverlap()
PrecisionModel
.
If fixed
then you must also provide precisionScale
-- see PrecisionModel.getScale()
JtsShapeFactory
.Modifier and Type | Field and Description |
---|---|
boolean |
allowMultiOverlap |
boolean |
autoIndex |
CoordinateSequenceFactory |
coordinateSequenceFactory |
DatelineRule |
datelineRule |
protected static PrecisionModel |
defaultPrecisionModel |
PrecisionModel |
precisionModel |
int |
srid |
boolean |
useJtsLineString |
boolean |
useJtsMulti |
boolean |
useJtsPoint |
ValidationRule |
validationRule |
args, binaryCodecClass, classLoader, distCalc, geo, hasFormatConfig, normWrapLongitude, readers, shapeFactoryClass, worldBounds, writers
Constructor and Description |
---|
JtsSpatialContextFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDefaultFormats()
If no formats were defined in the config, this will make sure GeoJSON and WKT are registered
|
GeometryFactory |
getGeometryFactory() |
protected void |
init(Map<String,String> args,
ClassLoader classLoader) |
JtsSpatialContext |
newSpatialContext()
Subclasses should simply construct the instance from the initialized configuration.
|
addReaderIfNoggitExists, initCalculator, initField, initFormats, initWorldBounds, makeBinaryCodec, makeFormats, makeShapeFactory, makeSpatialContext
protected static final PrecisionModel defaultPrecisionModel
public PrecisionModel precisionModel
public int srid
public CoordinateSequenceFactory coordinateSequenceFactory
public DatelineRule datelineRule
public ValidationRule validationRule
public boolean autoIndex
public boolean allowMultiOverlap
public boolean useJtsPoint
public boolean useJtsLineString
public boolean useJtsMulti
protected void checkDefaultFormats()
SpatialContextFactory
checkDefaultFormats
in class SpatialContextFactory
protected void init(Map<String,String> args, ClassLoader classLoader)
init
in class SpatialContextFactory
public GeometryFactory getGeometryFactory()
public JtsSpatialContext newSpatialContext()
SpatialContextFactory
newSpatialContext
in class SpatialContextFactory
Copyright © 2020 LocationTech. All rights reserved.