Package fr.ign.artiscales.pm.workflow
Class ConsolidationDivision
java.lang.Object
fr.ign.artiscales.pm.workflow.Workflow
fr.ign.artiscales.pm.workflow.ConsolidationDivision
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic org.geotools.feature.DefaultFeatureCollectionconsolidation(org.geotools.data.simple.SimpleFeatureCollection parcels, org.geotools.data.simple.SimpleFeatureCollection parcelToMerge)do parcel consolidation to parcels that touches.org.geotools.data.simple.SimpleFeatureCollectionconsolidationDivision(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.SimpleFeatureCollectionconsolidationDivision(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).booleanisNewSection(org.opengis.feature.simple.SimpleFeature feat)Check if the inputSimpleFeaturehas 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
-
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 attributesparcelToMerge- 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 IOExceptionMethod 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 debugprofile-ProfileUrbanFabriccontains 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 IOExceptionMethod 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 debugprofile-ProfileUrbanFabriccontains the parameters of the wanted urban scenebuildingFile- 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
Create a new section name following a precise rule.- Specified by:
makeNewSectionin classWorkflow- 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 inputSimpleFeaturehas a section field that has been simulated with this present workflow.- Specified by:
isNewSectionin classWorkflow- Parameters:
feat-SimpleFeatureto test.- Returns:
- true if the section field is marked with the
makeNewSection(String)method.
-