Utility class to process data from GeoJSON.
- Author
- ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du (Evan W. Patton)
Definition at line 46 of file GeoJSONUtil.java.
◆ getGeoJSONFeatures()
static List<YailList> com.google.appinventor.components.runtime.util.GeoJSONUtil.getGeoJSONFeatures |
( |
final String |
logTag, |
|
|
final String |
content |
|
) |
| throws JSONException |
|
static |
◆ getGeoJSONType()
static String com.google.appinventor.components.runtime.util.GeoJSONUtil.getGeoJSONType |
( |
final String |
content, |
|
|
final String |
geojsonType |
|
) |
| throws JSONException |
|
static |
◆ processGeoJSONFeature()
static MapFactory.MapFeature com.google.appinventor.components.runtime.util.GeoJSONUtil.processGeoJSONFeature |
( |
final String |
logTag, |
|
|
final MapFactory.MapFeatureContainer |
container, |
|
|
final YailList |
descriptions |
|
) |
| |
|
static |
◆ swapCoordinates()
static YailList com.google.appinventor.components.runtime.util.GeoJSONUtil.swapCoordinates |
( |
YailList |
coordinates | ) |
|
|
static |
App Inventor stores values latitude, longitude, so swap the coordinate order when reading GeoJSON.
- Parameters
-
- Returns
- coordinates, with its lat and long swapped.
Definition at line 789 of file GeoJSONUtil.java.
◆ swapCoordinates2()
static <E> List<List<E> > com.google.appinventor.components.runtime.util.GeoJSONUtil.swapCoordinates2 |
( |
List< List< E >> |
coordinates | ) |
|
|
static |
◆ swapNestedCoordinates()
static LList com.google.appinventor.components.runtime.util.GeoJSONUtil.swapNestedCoordinates |
( |
LList |
coordinates | ) |
|
|
static |
◆ writeFeaturesAsGeoJSON()
static void com.google.appinventor.components.runtime.util.GeoJSONUtil.writeFeaturesAsGeoJSON |
( |
List< MapFactory.MapFeature > |
featuresToSave, |
|
|
String |
path |
|
) |
| throws IOException |
|
static |
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/util/GeoJSONUtil.java