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:
DatelineRuleValidationRuleJtsWKTReader#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 |
DatelineRule |
datelineRule |
protected static com.vividsolutions.jts.geom.PrecisionModel |
defaultPrecisionModel |
com.vividsolutions.jts.geom.PrecisionModel |
precisionModel |
int |
srid |
boolean |
useJtsLineString |
boolean |
useJtsPoint |
ValidationRule |
validationRule |
args, binaryCodecClass, classLoader, distCalc, geo, hasFormatConfig, normWrapLongitude, readers, 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
|
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.
|
addReaderIfNoggitExists, initCalculator, initField, initFormats, initWorldBounds, makeBinaryCodec, makeFormats, makeSpatialContextprotected 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 DatelineRule datelineRule
public ValidationRule validationRule
public boolean autoIndex
public boolean allowMultiOverlap
public boolean useJtsPoint
public boolean useJtsLineString
protected void checkDefaultFormats()
SpatialContextFactorycheckDefaultFormats in class SpatialContextFactoryprotected void init(Map<String,String> args, ClassLoader classLoader)
init in class SpatialContextFactorypublic com.vividsolutions.jts.geom.GeometryFactory getGeometryFactory()
public JtsSpatialContext newSpatialContext()
SpatialContextFactorynewSpatialContext in class SpatialContextFactoryCopyright © 2025. All rights reserved.