Package fr.ign.artiscales.pm.analysis
Class RoadRatioParcels
java.lang.Object
fr.ign.artiscales.pm.analysis.RoadRatioParcels
Street/generated surface ratio. Only developed for french parcels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidroadRatioParcels(org.geotools.data.simple.SimpleFeatureCollection initialMarkedParcel, org.geotools.data.simple.SimpleFeatureCollection cutParcel, String legend, File folderOutStat, boolean overwrite, File roadFile)Calculate the ratio between the parcel area and the total area of a zone.static voidroadRatioZone(org.geotools.data.simple.SimpleFeatureCollection zone, org.geotools.data.simple.SimpleFeatureCollection cutParcel, String legend, File folderOutStat, boolean overwrite, File roadFile)Calculate the ratio between the area of a set of parcels and the total area of a zone.
-
Constructor Details
-
RoadRatioParcels
public RoadRatioParcels()
-
-
Method Details
-
roadRatioParcels
public static void roadRatioParcels(org.geotools.data.simple.SimpleFeatureCollection initialMarkedParcel, org.geotools.data.simple.SimpleFeatureCollection cutParcel, String legend, File folderOutStat, boolean overwrite, File roadFile) throws IOExceptionCalculate the ratio between the parcel area and the total area of a zone. It expresses the quantity of not parcel land, which could be either streets or public spaces. Calculate zones and then send the whole to theroadRatioZone(SimpleFeatureCollection, SimpleFeatureCollection, String, File, boolean, File)method. If theDivisionTypeis aDivisionType.SSoffset, the patio is not counted in the ratio.- Parameters:
initialMarkedParcel-SimpleFeatureCollectionof the initial set of parcels which are marked if they were simulated. Marks could be made with the methods contained in the classMarkParcelAttributeFromPosition. The field attribute is named SPLIT by default. It is possible to change it with theMarkParcelAttributeFromPosition.setMarkFieldName(String)function.cutParcel- A collection of parcels after a Parcel Manager simulationfolderOutStat- folder to store the resultsroadFile- the road geo filelegend- name of the zoneoverwrite- Overwrite the created statistical tab- Throws:
IOException- reading geo files and exporting csv
-
roadRatioZone
public static void roadRatioZone(org.geotools.data.simple.SimpleFeatureCollection zone, org.geotools.data.simple.SimpleFeatureCollection cutParcel, String legend, File folderOutStat, boolean overwrite, File roadFile) throws IOExceptionCalculate the ratio between the area of a set of parcels and the total area of a zone. The fact that the zone and the area must be verified by the user. The result express the quantity of not parcel land, which could be either roads or public spaces.- Parameters:
zone-SimpleFeatureCollectionof initial zonescutParcel-SimpleFeatureCollectionof the cuted parcelsfolderOutStat- folder to store the resultsoverwrite- Overwrite the created statistical tabroadFile- the road geo filelegend- name of the zone- Throws:
IOException- reading geo files and exporting csv
-