Package fr.ign.artiscales.pm.analysis
Class MakeStatisticGraphs
java.lang.Object
fr.ign.artiscales.pm.analysis.MakeStatisticGraphs
Class to automate the creation of stat graphs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmakeAreaGraph(File parcelFile, File outFolder, String name)Automate the generation of graphs about area of fresh parcel cuts.static voidmakeAreaGraph(List<org.opengis.feature.simple.SimpleFeature> markedParcelFile, File outFolder, String name)Automate the generation of graphs about area of fresh parcel cuts.static voidmakeGraphHisto(Graph graph, File graphDepotFolder, String title, String xTitle, String yTitle, int range)Generate a histogram graph.static voidmakeGraphHisto(List<Graph> graphs, File graphDepotFolder, String title, String xTitle, String yTitle, int range)Generate a histogram graph.static voidmakeWidthContactRoadGraph(List<org.opengis.feature.simple.SimpleFeature> markedParcelFile, org.geotools.data.simple.SimpleFeatureCollection block, File roadFile, File outFolder, String name)Automate the generation of graphs about the contact length on road of fresh parcel cuts.static voidroadGraph(org.geotools.data.simple.SimpleFeatureCollection roads, String title, String xTitle, String yTitle, File graphDepotFolder)Makes a graph for the road (following french attributes, but that easily can be changed if needed).static GraphsortValuesAndCategorize(List<Double> parcelMesure, boolean cutCrest, String nameDistrib)Process to sort which parcels have been cut, and get the bounds of the distribution.static GraphsortValuesAreaAndCategorize(List<org.opengis.feature.simple.SimpleFeature> parcelOut, String nameDistrib, boolean cutCrest)Process to sort which parcels have been cut, and get the bounds of the distribution.static GraphsortValuesAreaAndCategorize(org.geotools.data.simple.SimpleFeatureCollection parcelOut, String nameDistrib)Process to sort which parcels have been cut, and get the bounds of the distribution.
-
Constructor Details
-
MakeStatisticGraphs
public MakeStatisticGraphs()
-
-
Method Details
-
makeAreaGraph
Automate the generation of graphs about area of fresh parcel cuts.- Parameters:
parcelFile- Shapefile of the parcel planoutFolder- Folder where the graph have to be exportedname- Title of the graph- Throws:
IOException- Reading parcelFile
-
makeAreaGraph
public static void makeAreaGraph(List<org.opengis.feature.simple.SimpleFeature> markedParcelFile, File outFolder, String name)Automate the generation of graphs about area of fresh parcel cuts.- Parameters:
markedParcelFile-Listof parcels.outFolder- Folder where the graph have to be exportedname- Title of the graph
-
makeWidthContactRoadGraph
public static void makeWidthContactRoadGraph(List<org.opengis.feature.simple.SimpleFeature> markedParcelFile, org.geotools.data.simple.SimpleFeatureCollection block, File roadFile, File outFolder, String name) throws IOExceptionAutomate the generation of graphs about the contact length on road of fresh parcel cuts.- Parameters:
markedParcelFile-Listof parcels.outFolder- Folder where the graph have to be exportedname- Title of the graphblock- morphological isletroadFile- geo file containing road- Throws:
IOException- writing result
-
sortValuesAreaAndCategorize
public static Graph sortValuesAreaAndCategorize(org.geotools.data.simple.SimpleFeatureCollection parcelOut, String nameDistrib)Process to sort which parcels have been cut, and get the bounds of the distribution. WARNING - Developed for French Parcels - section is always a two character. By default, does not cut the top and low 10% values- Parameters:
parcelOut- The parcel to sort and plotnameDistrib- The name of the distribution- Returns:
- An
Graphobject
-
sortValuesAreaAndCategorize
public static Graph sortValuesAreaAndCategorize(List<org.opengis.feature.simple.SimpleFeature> parcelOut, String nameDistrib, boolean cutCrest)Process to sort which parcels have been cut, and get the bounds of the distribution. WARNING - Developed for French Parcels - section is always a two character. Can spare the crest values (the top and low 10%)- Parameters:
parcelOut- the parcel to sort and plotnameDistrib- the name of the distributioncutCrest- Cut the top and low 10% values- Returns:
- a Graph object
-
sortValuesAndCategorize
public static Graph sortValuesAndCategorize(List<Double> parcelMesure, boolean cutCrest, String nameDistrib)Process to sort which parcels have been cut, and get the bounds of the distribution. WARNING - Developed for French Parcels - section is always a two character. Can spare the crest values (the top and low 10%)- Parameters:
parcelMesure- Mesures of the parcel to sort and plotnameDistrib- the name of the distributioncutCrest- Cut the top and low 10% values- Returns:
- a Graph object
-
makeGraphHisto
public static void makeGraphHisto(Graph graph, File graphDepotFolder, String title, String xTitle, String yTitle, int range)Generate a histogram graph.- Parameters:
graph- area graph object with sorted distribution and boundsgraphDepotFolder- folder where every stats are stockedtitle- title of the graphxTitle- title of the x dimentionyTitle- title of the y dimentionrange- number of categories
-
makeGraphHisto
public static void makeGraphHisto(List<Graph> graphs, File graphDepotFolder, String title, String xTitle, String yTitle, int range)Generate a histogram graph.- Parameters:
graphs- area graph objects with sorted distribution and boundsgraphDepotFolder- folder where every stats are stockedtitle- title of the graphxTitle- title of the x dimentionyTitle- title of the y dimentionrange- number of categories
-
roadGraph
public static void roadGraph(org.geotools.data.simple.SimpleFeatureCollection roads, String title, String xTitle, String yTitle, File graphDepotFolder) throws IOExceptionMakes a graph for the road (following french attributes, but that easily can be changed if needed).- Parameters:
roads- Collection of Road segments.graphDepotFolder- folder where every stats are stockedtitle- title of the graphxTitle- title of the x dimentionyTitle- title of the y dimention- Throws:
IOException- write .csv and graph
-