Class FlexibleFeatureSchema
java.lang.Object
com.vividsolutions.jump.feature.FeatureSchema
com.vividsolutions.jump.feature.FlexibleFeatureSchema
- All Implemented Interfaces:
Serializable, Cloneable
a FlexibleFeatureSchema originally used by the GeoJSON reader.
extends the basic
FeatureSchema by
- allow changing attrib types on the fly
- creates empty geoms matching a previous set geomType- See Also:
-
Field Summary
Fields inherited from class FeatureSchema
attributeCount, attributeNames, attributeNameToIndexMap, attributeReadOnly, attributeTypes, coordinateSystem, externalPKIndex, geometryIndex, operations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Geometrycreates an empty geometry matching the geom type set already or an empty geom collection if that failsvoidsetAttributeType(int attributeIndex, AttributeType type) voidsetAttributeType(String name, AttributeType type) voidsetGeometryType(Class clazz) Methods inherited from class FeatureSchema
addAttribute, addDynamicAttribute, addExternalPrimaryKey, clone, cloneFromTo, equals, equals, getAttributeCount, getAttributeIndex, getAttributeName, getAttributeNames, getAttributeType, getAttributeType, getCoordinateSystem, getExternalPrimaryKeyIndex, getGeometryIndex, getOperation, hasAttribute, isAttributeReadOnly, isOperation, removeExternalPrimaryKey, setAttributeReadOnly, setCoordinateSystem, setExternalPrimaryKeyIndex, setOperation, toString
-
Constructor Details
-
FlexibleFeatureSchema
public FlexibleFeatureSchema() -
FlexibleFeatureSchema
-
-
Method Details
-
setAttributeType
-
setAttributeType
-
setGeometryType
-
getGeometryType
-
createEmptyGeometry
public org.locationtech.jts.geom.Geometry createEmptyGeometry()creates an empty geometry matching the geom type set already or an empty geom collection if that fails- Returns:
- geometry
-