Package com.vividsolutions.jump.feature
Class FlexibleFeatureSchema
- java.lang.Object
-
- com.vividsolutions.jump.feature.FeatureSchema
-
- com.vividsolutions.jump.feature.FlexibleFeatureSchema
-
- All Implemented Interfaces:
Serializable,Cloneable
public class FlexibleFeatureSchema extends FeatureSchema
a FlexibleFeatureSchema originally used by the GeoJSON reader. extends the basicFeatureSchemaby - allow changing attrib types on the fly - creates empty geoms matching a previous set geomType- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.feature.FeatureSchema
attributeCount, attributeNames, attributeNameToIndexMap, attributeReadOnly, attributeTypes, coordinateSystem, externalPKIndex, geometryIndex, operations
-
-
Constructor Summary
Constructors Constructor Description FlexibleFeatureSchema()FlexibleFeatureSchema(FeatureSchema featureSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.GeometrycreateEmptyGeometry()creates an empty geometry matching the geom type set already or an empty geom collection if that failsClassgetGeometryType()voidsetAttributeType(int attributeIndex, AttributeType type)voidsetAttributeType(String name, AttributeType type)voidsetGeometryType(Class clazz)-
Methods inherited from class com.vividsolutions.jump.feature.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 Detail
-
FlexibleFeatureSchema
public FlexibleFeatureSchema()
-
FlexibleFeatureSchema
public FlexibleFeatureSchema(FeatureSchema featureSchema)
-
-
Method Detail
-
setAttributeType
public void setAttributeType(int attributeIndex, AttributeType type)
-
setAttributeType
public void setAttributeType(String name, AttributeType type)
-
setGeometryType
public void setGeometryType(Class clazz)
-
getGeometryType
public Class 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
-
-