public class SettlementOutputter
extends java.lang.Object
Constructor and Description |
---|
SettlementOutputter() |
Modifier and Type | Method and Description |
---|---|
static org.geotools.feature.FeatureCollection |
createCollection(java.util.List<Settlement> Citys,
org.opengis.feature.simple.SimpleFeatureType featureType)
Method to create a feature collection of structure objects
|
void |
doOutput()
This method calls the shapefile point data output as needed based on time specified here.
|
static double |
lineCreation(com.vividsolutions.jts.geom.Point p1,
com.vividsolutions.jts.geom.Point p2,
int id,
java.util.List<org.opengis.feature.simple.SimpleFeature> collection,
org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.String name1,
java.lang.String name2,
double alpha,
double beta,
double used)
Method to create shapefile line points.
|
void |
settlementOutput()
This method calls the data outputter for text file output.
|
void |
writeLines()
This method calls the Nystuen-Dacey graph at given time intervals set here.
|
void |
writeNetwork()
This is the Nystuen-Dacey graph algorithm and line creator.
|
static void |
writeShapefile(java.util.List<Settlement> poly,
java.lang.String category)
Method to write the shapefile output.
|
void |
writeShapefileRepeat(java.util.List<Settlement> cities)
This calls the shapefile writer to create output.
|
public void settlementOutput()
public void doOutput()
public void writeLines()
public void writeShapefileRepeat(java.util.List<Settlement> cities)
cities
- public void writeNetwork()
public static void writeShapefile(java.util.List<Settlement> poly, java.lang.String category) throws java.lang.Exception
poly
- category
- java.lang.Exception
public static org.geotools.feature.FeatureCollection createCollection(java.util.List<Settlement> Citys, org.opengis.feature.simple.SimpleFeatureType featureType) throws java.lang.Exception
Citys
- the structuresfeatureType
- the feature type containing the attributes for a shapefilejava.lang.Exception
- an exception with the datapublic static double lineCreation(com.vividsolutions.jts.geom.Point p1, com.vividsolutions.jts.geom.Point p2, int id, java.util.List<org.opengis.feature.simple.SimpleFeature> collection, org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.String name1, java.lang.String name2, double alpha, double beta, double used) throws org.geotools.feature.SchemaException, org.geotools.feature.IllegalAttributeException
p1
- p2
- id
- collection
- featureType
- name1
- name2
- alpha
- beta
- used
- org.geotools.feature.SchemaException
org.geotools.feature.IllegalAttributeException