Class ParcelSchema
java.lang.Object
fr.ign.artiscales.pm.parcelFunction.ParcelSchema
Methods to deal with parcel's schemas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.geotools.feature.simple.SimpleFeatureBuilderaddMarkField(org.opengis.feature.simple.SimpleFeatureType schema)Create a builder out of a SimpleFeatureCollection's schema and add a mark field of type int.static org.geotools.feature.simple.SimpleFeatureBuilderaddSimulatedField(org.opengis.feature.simple.SimpleFeatureType schema)Create a builder out of a SimpleFeatureCollection's schema and add a SIMULATED field of type int.static Stringstatic StringgetParcelID(org.opengis.feature.simple.SimpleFeature feat)Parcel ID is composed of itsparcelCommunityField,parcelSectionFieldandparcelNumberField, separated by '_' character.static Stringstatic Stringstatic org.geotools.feature.simple.SimpleFeatureBuilderGet minimal builder for a parcelstatic org.geotools.feature.simple.SimpleFeatureBuilderstatic org.geotools.feature.simple.SimpleFeatureBuildergetSFBWithoutSplit(org.opengis.feature.simple.SimpleFeatureType schema)static voidsetParcelCommunityField(String parcelCommunityField)static voidsetParcelNumberField(String parcelNumberField)static voidsetParcelSectionField(String parcelSectionField)static org.geotools.feature.simple.SimpleFeatureBuildersetSFBMinParcelSplitWithFeat(org.opengis.feature.simple.SimpleFeature feat, org.geotools.feature.simple.SimpleFeatureBuilder builder, org.opengis.feature.simple.SimpleFeatureType schema, int isSplit)static org.geotools.feature.simple.SimpleFeatureBuildersetSFBMinParcelWithFeat(org.opengis.feature.simple.SimpleFeature feat, org.geotools.feature.simple.SimpleFeatureBuilder builder, org.opengis.feature.simple.SimpleFeatureType schema)static org.geotools.feature.simple.SimpleFeatureBuildersetSFBMinParcelWithFeat(org.opengis.feature.simple.SimpleFeature feat, org.opengis.feature.simple.SimpleFeatureType schema)
-
Constructor Details
-
ParcelSchema
public ParcelSchema()
-
-
Method Details
-
getSFBWithoutSplit
public static org.geotools.feature.simple.SimpleFeatureBuilder getSFBWithoutSplit(org.opengis.feature.simple.SimpleFeatureType schema) -
getSFBMinParcel
public static org.geotools.feature.simple.SimpleFeatureBuilder getSFBMinParcel()Get minimal builder for a parcel- Returns:
- the builder
-
setSFBMinParcelWithFeat
public static org.geotools.feature.simple.SimpleFeatureBuilder setSFBMinParcelWithFeat(org.opengis.feature.simple.SimpleFeature feat, org.opengis.feature.simple.SimpleFeatureType schema) -
setSFBMinParcelWithFeat
public static org.geotools.feature.simple.SimpleFeatureBuilder setSFBMinParcelWithFeat(org.opengis.feature.simple.SimpleFeature feat, org.geotools.feature.simple.SimpleFeatureBuilder builder, org.opengis.feature.simple.SimpleFeatureType schema) -
getSFBMinParcelSplit
public static org.geotools.feature.simple.SimpleFeatureBuilder getSFBMinParcelSplit() -
setSFBMinParcelSplitWithFeat
public static org.geotools.feature.simple.SimpleFeatureBuilder setSFBMinParcelSplitWithFeat(org.opengis.feature.simple.SimpleFeature feat, org.geotools.feature.simple.SimpleFeatureBuilder builder, org.opengis.feature.simple.SimpleFeatureType schema, int isSplit) -
addMarkField
public static org.geotools.feature.simple.SimpleFeatureBuilder addMarkField(org.opengis.feature.simple.SimpleFeatureType schema)Create a builder out of a SimpleFeatureCollection's schema and add a mark field of type int.- Parameters:
schema- input schema- Returns:
- a SimpleFeatureBuilder relative to the schema + a marking field
-
addSimulatedField
public static org.geotools.feature.simple.SimpleFeatureBuilder addSimulatedField(org.opengis.feature.simple.SimpleFeatureType schema)Create a builder out of a SimpleFeatureCollection's schema and add a SIMULATED field of type int.- Parameters:
schema- input schema- Returns:
- a SimpleFeatureBuilder relative to the schema + a marking field
-
getParcelNumberField
-
setParcelNumberField
-
getParcelSectionField
-
setParcelSectionField
-
getParcelCommunityField
-
setParcelCommunityField
-
getParcelID
Parcel ID is composed of itsparcelCommunityField,parcelSectionFieldandparcelNumberField, separated by '_' character.- Parameters:
feat- parcel feature with minimal values- Returns:
- new parcel's id.
-