Package fr.ign.artiscales.pm.analysis
Class RealUrbanFabricParameters
java.lang.Object
fr.ign.artiscales.pm.analysis.RealUrbanFabricParameters
This class generates values for the description of a parcel layout. It is aimed to help the setting of
ProfileUrbanFabric parameters.
It can work on different scales, from the block or the zonePreciseNameField of a zoning plan to a whole community.
A zone scale must be defined-
Constructor Summary
ConstructorsConstructorDescriptionRealUrbanFabricParameters(String scaleZone, File root)Constructor for a basic file organization.RealUrbanFabricParameters(String scaleZone, File parcelFile, File buildingFile, File zoningFile, File roadFile, File outFolder)Constructor for a complete analysis.RealUrbanFabricParameters(org.geotools.data.simple.SimpleFeatureCollection parcelSFC, File buildingFile)Constructor for a short usage (only input parcel's area). -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerate every indicators about the urban scene (area of parcel built and area of all parcels, road statistics)org.apache.commons.math3.stat.descriptive.DescriptiveStatisticsGet area built for a short usage.org.apache.commons.math3.stat.descriptive.DescriptiveStatisticsgetAreaBuilt(org.geotools.data.simple.SimpleFeatureCollection collection, String zoneName)Get the distribution of built parcel's area of one zone.org.apache.commons.math3.stat.descriptive.DescriptiveStatisticsgetAreaTotal(org.geotools.data.simple.SimpleFeatureCollection collection, String zoneName)Get the distribution of every parcel's area of one zone.Get the scale of the analyzed zonevoidmakeAreaBuiltAndTotal(org.geotools.data.simple.SimpleFeatureCollection collection, String zoneName)Calculate the area bound of every parcels then only the build parcels.voidFulfill the collection of zones by splitting the parcel plan relatively to the given scale type.voidroadInformations(org.geotools.data.simple.SimpleFeatureCollection zoneCollection, org.geotools.data.simple.SimpleFeatureCollection road, String scaleZone, String zoneName)Generate the road information in the give zones.voidSet automaticlally the file names with their basic names from a root folder.voidsetScaleZone(String scaleZone)Set the scale of the analyzed zone.
-
Constructor Details
-
RealUrbanFabricParameters
public RealUrbanFabricParameters(String scaleZone, File parcelFile, File buildingFile, File zoningFile, File roadFile, File outFolder)Constructor for a complete analysis.- Parameters:
scaleZone- scale of the analysisparcelFile- geoFile for parcel planbuildingFile- geoFile for buildingszoningFile- geoFile for zoning planroadFile- geoFile for roadsoutFolder- folder where outputs are wrote
-
RealUrbanFabricParameters
Constructor for a basic file organization.- Parameters:
scaleZone- scale of the analysisroot- root folder must contain geo files properly named
-
RealUrbanFabricParameters
public RealUrbanFabricParameters(org.geotools.data.simple.SimpleFeatureCollection parcelSFC, File buildingFile)Constructor for a short usage (only input parcel's area).- Parameters:
parcelSFC- set of parcelsbuildingFile- geoFile containing
-
-
Method Details
-
getScaleZone
Get the scale of the analyzed zone- Returns:
- the scale
-
setScaleZone
Set the scale of the analyzed zone.- Parameters:
scaleZone- Can either be:- community
- genericZone
- preciseZone
- block
-
setFiles
Set automaticlally the file names with their basic names from a root folder. Possible to change them with dedicaded setters- Parameters:
mainFolder- root folder containing the geographic layers.
-
generateEveryAnalysisOfScene
Generate every indicators about the urban scene (area of parcel built and area of all parcels, road statistics)- Throws:
IOException- reading files
-
makeSplitParcelBetweenZone
Fulfill the collection of zones by splitting the parcel plan relatively to the given scale type. Scale and the collection of zones per scale type's units are stored statically.- Throws:
IOException- reading files
-
roadInformations
public void roadInformations(org.geotools.data.simple.SimpleFeatureCollection zoneCollection, org.geotools.data.simple.SimpleFeatureCollection road, String scaleZone, String zoneName) throws IOExceptionGenerate the road information in the give zones.- Parameters:
zoneCollection- parcels from the zones to analyseroad- road feature collectionscaleZone- name of the scale to analysezoneName- name of the zone to analyse- Throws:
IOException- reading files
-
getAreaBuilt
public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getAreaBuilt() throws IOExceptionGet area built for a short usage. A single zone has to be defined.- Returns:
- the distribution of area.
- Throws:
IOException- if wrong parcelPerZone Map is defined, or (potentially) reading geo files and writing csv
-
getAreaBuilt
public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getAreaBuilt(org.geotools.data.simple.SimpleFeatureCollection collection, String zoneName) throws IOExceptionGet the distribution of built parcel's area of one zone.- Parameters:
collection- parcel collectionzoneName- name of the zone to get- Returns:
- the distribution
- Throws:
IOException- (potentially) reading geo files and writing csv
-
getAreaTotal
public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getAreaTotal(org.geotools.data.simple.SimpleFeatureCollection collection, String zoneName) throws IOExceptionGet the distribution of every parcel's area of one zone.- Parameters:
collection- parcel collectionzoneName- name of the zone to get- Returns:
- the distribution
- Throws:
IOException- (potentially) reading geofiles and writting csv
-
makeAreaBuiltAndTotal
public void makeAreaBuiltAndTotal(org.geotools.data.simple.SimpleFeatureCollection collection, String zoneName) throws IOExceptionCalculate the area bound of every parcels then only the build parcels.- Parameters:
collection- parcel collectionzoneName- name of the zone to analyze- Throws:
IOException- reading geofiles and writting csv
-