Class ParcelSchema

java.lang.Object
fr.ign.artiscales.pm.parcelFunction.ParcelSchema

public class ParcelSchema extends Object
Methods to deal with parcel's schemas
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    static String
     
    static String
    getParcelID​(org.opengis.feature.simple.SimpleFeature feat)
    Parcel ID is composed of its parcelCommunityField, parcelSectionField and parcelNumberField, separated by '_' character.
    static String
     
    static String
     
    static org.geotools.feature.simple.SimpleFeatureBuilder
    Get minimal builder for a parcel
    static org.geotools.feature.simple.SimpleFeatureBuilder
     
    static org.geotools.feature.simple.SimpleFeatureBuilder
    getSFBWithoutSplit​(org.opengis.feature.simple.SimpleFeatureType schema)
     
    static void
    setParcelCommunityField​(String parcelCommunityField)
     
    static void
    setParcelNumberField​(String parcelNumberField)
     
    static void
    setParcelSectionField​(String parcelSectionField)
     
    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)
     
    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)
     
    static org.geotools.feature.simple.SimpleFeatureBuilder
    setSFBMinParcelWithFeat​(org.opengis.feature.simple.SimpleFeature feat, org.opengis.feature.simple.SimpleFeatureType schema)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static String getParcelNumberField()
    • setParcelNumberField

      public static void setParcelNumberField(String parcelNumberField)
    • getParcelSectionField

      public static String getParcelSectionField()
    • setParcelSectionField

      public static void setParcelSectionField(String parcelSectionField)
    • getParcelCommunityField

      public static String getParcelCommunityField()
    • setParcelCommunityField

      public static void setParcelCommunityField(String parcelCommunityField)
    • getParcelID

      public static String getParcelID(org.opengis.feature.simple.SimpleFeature feat)
      Parcel ID is composed of its parcelCommunityField, parcelSectionField and parcelNumberField, separated by '_' character.
      Parameters:
      feat - parcel feature with minimal values
      Returns:
      new parcel's id.