Class ConsolidationDivision

java.lang.Object
fr.ign.artiscales.pm.workflow.Workflow
fr.ign.artiscales.pm.workflow.ConsolidationDivision

public class ConsolidationDivision extends Workflow
Simulation following this workflow merge together the contiguous marked parcels to create zones. The chosen parcel division process (OBB by default) is then applied on each created zone.
  • Field Summary

    Fields inherited from class fr.ign.artiscales.pm.workflow.Workflow

    OVERWRITEGEOPACKAGE, PROCESS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.geotools.feature.DefaultFeatureCollection
    consolidation​(org.geotools.data.simple.SimpleFeatureCollection parcels, org.geotools.data.simple.SimpleFeatureCollection parcelToMerge)
    do parcel consolidation to parcels that touches.
    org.geotools.data.simple.SimpleFeatureCollection
    consolidationDivision​(org.geotools.data.simple.SimpleFeatureCollection parcels, File roadFile, File outFolder, fr.ign.artiscales.tools.parameter.ProfileUrbanFabric profile)
    Method that merges the contiguous marked parcels into zones and then split those zones with a given parcel division algorithm (by default, the Oriented Bounding Box).
    org.geotools.data.simple.SimpleFeatureCollection
    consolidationDivision​(org.geotools.data.simple.SimpleFeatureCollection parcels, File roadFile, File buildingFile, List<org.locationtech.jts.geom.LineString> extLines, org.locationtech.jts.geom.Geometry exclusionZone, File outFolder, fr.ign.artiscales.tools.parameter.ProfileUrbanFabric profile)
    Method that merges the contiguous marked parcels into zones and then split those zones with a given parcel division algorithm (by default, the Oriented Bounding Box).
    boolean
    isNewSection​(org.opengis.feature.simple.SimpleFeature feat)
    Check if the input SimpleFeature has a section field that has been simulated with this present workflow.
    makeNewSection​(String section)
    Create a new section name following a precise rule.

    Methods inherited from class fr.ign.artiscales.pm.workflow.Workflow

    checkFields, isDEBUG, isSAVEINTERMEDIATERESULT, setDEBUG, setSAVEINTERMEDIATERESULT

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConsolidationDivision

      public ConsolidationDivision()
  • Method Details

    • consolidation

      public static org.geotools.feature.DefaultFeatureCollection consolidation(org.geotools.data.simple.SimpleFeatureCollection parcels, org.geotools.data.simple.SimpleFeatureCollection parcelToMerge)
      do parcel consolidation to parcels that touches. Set a new section value, number 1 and the most intersecting city code
      Parameters:
      parcels - every parcel of the simulation in order to copy some attributes
      parcelToMerge - parcels to merge
      Returns:
      collection of merged parcels
    • consolidationDivision

      public org.geotools.data.simple.SimpleFeatureCollection consolidationDivision(org.geotools.data.simple.SimpleFeatureCollection parcels, File roadFile, File outFolder, fr.ign.artiscales.tools.parameter.ProfileUrbanFabric profile) throws IOException
      Method that merges the contiguous marked parcels into zones and then split those zones with a given parcel division algorithm (by default, the Oriented Bounding Box).
      Parameters:
      parcels - The parcels to be merged and cut. Must be marked with the SPLIT filed (see markParcelIntersectMUPOutput for example, with the method concerning MUP-City's output)
      outFolder - The folder where will be saved intermediate results and temporary files for debug
      profile - ProfileUrbanFabric contains the parameters of the wanted urban scene
      Returns:
      the set of parcel with decomposition
      Throws:
      IOException - Writing files in debug modes
    • consolidationDivision

      public org.geotools.data.simple.SimpleFeatureCollection consolidationDivision(org.geotools.data.simple.SimpleFeatureCollection parcels, File roadFile, File buildingFile, List<org.locationtech.jts.geom.LineString> extLines, org.locationtech.jts.geom.Geometry exclusionZone, File outFolder, fr.ign.artiscales.tools.parameter.ProfileUrbanFabric profile) throws IOException
      Method that merges the contiguous marked parcels into zones and then split those zones with a given parcel division algorithm (by default, the Oriented Bounding Box). Overload with FlagDivision data
      Parameters:
      parcels - The parcels to be merged and cut. Must be marked with the SPLIT filed (see markParcelIntersectMUPOutput for example, with the method concerning MUP-City's output)
      outFolder - The folder where will be saved intermediate results and temporary files for debug
      profile - ProfileUrbanFabric contains the parameters of the wanted urban scene
      buildingFile - Building geo file. Mandatory for ParcelFlag process, can be null otherwise.
      roadFile - Road geo file. Can be null.
      Returns:
      the set of parcel with decomposition
      Throws:
      IOException - Writing files in debug modes
    • makeNewSection

      public String makeNewSection(String section)
      Create a new section name following a precise rule.
      Specified by:
      makeNewSection in class Workflow
      Parameters:
      section - former name of the next zone
      Returns:
      the section's name
    • isNewSection

      public boolean isNewSection(org.opengis.feature.simple.SimpleFeature feat)
      Check if the input SimpleFeature has a section field that has been simulated with this present workflow.
      Specified by:
      isNewSection in class Workflow
      Parameters:
      feat - SimpleFeature to test.
      Returns:
      true if the section field is marked with the makeNewSection(String) method.