| Package | Description |
|---|---|
| de.gerdiproject.json.geo |
This package contains classes and packages that are related to Geo-JSON objects.
|
| de.gerdiproject.json.geo.adapter |
This package contains GSON JsonSerializers and JsonDeserializers
for parsing and writing JSON objects that deal with
GeoJson and related classes.
|
| Modifier and Type | Method and Description |
|---|---|
List<Point> |
Polygon.getFilledShape()
Returns the filled shape of the polygon.
|
List<List<Point>> |
Polygon.getHoles()
Returns a list of all holes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Polygon.setFilledShape(List<Point> shape)
Changes the filled shape of the polygon witout changing the holes.
|
| Constructor and Description |
|---|
LineString(Point... points)
Constructor that requires an arbitrary number of coordinates.
|
MultiPoint(Point... points)
Constructor that requires an arbitrary number of coordinates.
|
| Constructor and Description |
|---|
LineString(Collection<Point> points)
Constructor that requires any kind of collection of coordinates.
|
MultiPoint(Collection<Point> points)
Constructor that requires any kind of collection of coordinates.
|
Polygon(Collection<List<Point>> shapes)
Constructor that requires a collection of rings.
|
Polygon(List<Point> filledShape)
Constructor that creates a single shape without any holes.
|
Polygon(List<Point> filledShape,
Collection<List<Point>> holes)
Constructor that creates a shape with holes.
|
Polygon(List<Point> filledShape,
Collection<List<Point>> holes)
Constructor that creates a shape with holes.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
PointAdapter.deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
PointAdapter.serialize(Point src,
Type srcType,
com.google.gson.JsonSerializationContext context)
Converts a GeoJson coordinate to an array with either
[longitude, latitude] or
[longitude, latitude, elevation] if elevation is defined.
|
Copyright © 2017–2018. All rights reserved.