de.fhpotsdam.unfolding.data
Class GeoJSONReader

java.lang.Object
  extended by de.fhpotsdam.unfolding.data.GeoDataReader
      extended by de.fhpotsdam.unfolding.data.GeoJSONReader

public class GeoJSONReader
extends GeoDataReader

Reads GeoJSON files and creates Features.


Constructor Summary
GeoJSONReader()
           
 
Method Summary
static java.util.List<Feature> loadData(processing.core.PApplet p, java.lang.String fileName)
          Parses a GeoJSON String and creates features for them.
static java.util.List<Feature> loadDataFromJSON(processing.core.PApplet p, java.lang.String jsonString)
          Parses a GeoJSON String and creates features for them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoJSONReader

public GeoJSONReader()
Method Detail

loadData

public static java.util.List<Feature> loadData(processing.core.PApplet p,
                                               java.lang.String fileName)
Parses a GeoJSON String and creates features for them.

Parameters:
p - The PApplet.
fileName - The name of the GeoJSON file.
Returns:
A list of features.

loadDataFromJSON

public static java.util.List<Feature> loadDataFromJSON(processing.core.PApplet p,
                                                       java.lang.String jsonString)
Parses a GeoJSON String and creates features for them.

Parameters:
p - The PApplet.
jsonString - The GeoJSON string containing geometries etc.
Returns:
A list of features.