public class CityOutputter
extends java.lang.Object
Constructor and Description |
---|
CityOutputter() |
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
|
static org.geotools.feature.FeatureCollection |
createCollectionCanals(java.util.List<SettlementEdge> canals,
org.opengis.feature.simple.SimpleFeatureType featureType) |
void |
doOutput() |
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) |
void |
recalculatePopulation() |
static org.opengis.referencing.crs.CoordinateReferenceSystem |
returnCRS() |
void |
settlementOutput() |
void |
writeLines() |
void |
writeNetwork()
This is now Nystuen-Dacey graph
|
static void |
writeShapefile(java.util.List<Settlement> poly,
java.lang.String category) |
static void |
writeShapefileNetwork(java.util.List<SettlementEdge> poly,
java.lang.String category) |
void |
writeShapefileRepeaNetworks(java.util.List<SettlementEdge> canals) |
void |
writeShapefileRepeat(java.util.List<Settlement> cities) |
public void settlementOutput()
public void doOutput()
public void writeShapefileRepeaNetworks(java.util.List<SettlementEdge> canals)
public void writeLines()
public static void writeShapefileNetwork(java.util.List<SettlementEdge> poly, java.lang.String category) throws java.lang.Exception
java.lang.Exception
public static org.geotools.feature.FeatureCollection createCollectionCanals(java.util.List<SettlementEdge> canals, org.opengis.feature.simple.SimpleFeatureType featureType) throws java.lang.Exception
java.lang.Exception
public void recalculatePopulation()
public void writeShapefileRepeat(java.util.List<Settlement> cities)
public void writeNetwork()
public static void writeShapefile(java.util.List<Settlement> poly, java.lang.String category) throws java.lang.Exception
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 org.opengis.referencing.crs.CoordinateReferenceSystem returnCRS()
public 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
org.geotools.feature.SchemaException
org.geotools.feature.IllegalAttributeException