public class GoogleMapShapeConverter extends Object
| Constructor and Description |
|---|
GoogleMapShapeConverter()
Constructor
|
GoogleMapShapeConverter(mil.nga.sf.proj.Projection projection)
Constructor with specified projection, see
FeatureDao#getProjection |
| Modifier and Type | Method and Description |
|---|---|
static MultiMarker |
addLatLngsToMap(GoogleMap map,
MultiLatLng latLngs)
Add a list of LatLngs to the map
|
static Marker |
addLatLngToMap(GoogleMap map,
LatLng latLng)
Add a LatLng to the map
|
static Marker |
addLatLngToMap(GoogleMap map,
LatLng latLng,
MarkerOptions options)
Add a LatLng to the map
|
static Marker |
addMarkerOptionsToMap(GoogleMap map,
MarkerOptions options)
Add MarkerOptions to the map
|
MultiPolygonMarkers |
addMultiPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers,
GoogleMap map,
MultiPolygonOptions multiPolygon,
MarkerOptions polygonMarkerOptions,
MarkerOptions polygonMarkerHoleOptions,
PolygonOptions globalPolygonOptions)
Add a MultiPolygonOptions to the map as markers
|
MultiPolylineMarkers |
addMultiPolylineToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers,
GoogleMap map,
MultiPolylineOptions multiPolyline,
MarkerOptions polylineMarkerOptions,
PolylineOptions globalPolylineOptions)
Add a MultiPolylineOptions to the map as markers
|
List<Marker> |
addPointsToMapAsMarkers(GoogleMap map,
List<LatLng> points,
MarkerOptions customMarkerOptions,
boolean ignoreIdenticalEnds)
Add the list of points as markers
|
static MultiPolygon |
addPolygonsToMap(GoogleMap map,
MultiPolygonOptions polygons)
Add a list of Polygons to the map
|
static com.google.android.gms.maps.model.Polygon |
addPolygonToMap(GoogleMap map,
PolygonOptions polygon)
Add a Polygon to the map
|
PolygonMarkers |
addPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers,
GoogleMap map,
PolygonOptions polygonOptions,
MarkerOptions polygonMarkerOptions,
MarkerOptions polygonMarkerHoleOptions,
PolygonOptions globalPolygonOptions)
Add a Polygon to the map as markers
|
static MultiPolyline |
addPolylinesToMap(GoogleMap map,
MultiPolylineOptions polylines)
Add a list of Polylines to the map
|
static Polyline |
addPolylineToMap(GoogleMap map,
PolylineOptions polyline)
Add a Polyline to the map
|
PolylineMarkers |
addPolylineToMapAsMarkers(GoogleMap map,
PolylineOptions polylineOptions,
MarkerOptions polylineMarkerOptions,
PolylineOptions globalPolylineOptions)
Add a Polyline to the map as markers
|
static GoogleMapShape |
addShapeToMap(GoogleMap map,
GoogleMapShape shape)
Add a shape to the map
|
GoogleMapShapeMarkers |
addShapeToMapAsMarkers(GoogleMap map,
GoogleMapShape shape,
MarkerOptions markerOptions,
MarkerOptions polylineMarkerOptions,
MarkerOptions polygonMarkerOptions,
MarkerOptions polygonMarkerHoleOptions,
PolylineOptions globalPolylineOptions,
PolygonOptions globalPolygonOptions)
Add a shape to the map as markers
|
GoogleMapShape |
addToMap(GoogleMap map,
mil.nga.sf.Geometry geometry)
Convert a
Geometry to a Map shape and add it |
List<GoogleMapShape> |
addToMap(GoogleMap map,
mil.nga.sf.GeometryCollection<mil.nga.sf.Geometry> geometryCollection)
Convert a
GeometryCollection to a list of Map shapes and add to
the map |
BoundingBox |
boundingBoxFromWebMercator(BoundingBox boundingBox)
Transform the bounding box in web mercator to the feature projection
|
BoundingBox |
boundingBoxFromWgs84(BoundingBox boundingBox)
Transform the bounding box in WGS84 to the feature projection
|
BoundingBox |
boundingBoxToWebMercator(BoundingBox boundingBox)
Transform the bounding box in the feature projection to web mercator
|
BoundingBox |
boundingBoxToWgs84(BoundingBox boundingBox)
Transform the bounding box in the feature projection to WGS84
|
void |
closePolygonRing(List<LatLng> points)
Close the polygon ring (exterior or hole) points if needed
|
mil.nga.sf.MultiPolygon |
createMultiPolygon(List<mil.nga.sf.Polygon> polygonList)
Convert a list of
Polygon to a MultiPolygon |
mil.nga.sf.MultiPolygon |
createMultiPolygon(List<mil.nga.sf.Polygon> polygonList,
boolean hasZ,
boolean hasM)
Convert a list of
Polygon to a MultiPolygon |
PolygonOrientation |
getExteriorOrientation()
Get exterior orientation for conversions.
|
PolygonOrientation |
getHoleOrientation()
Get polygon hole orientation for conversions.
|
PolygonOrientation |
getOrientation(List<LatLng> points)
Determine the closed points orientation
|
List<LatLng> |
getPointsFromMarkers(List<Marker> markers)
Get a list of points as LatLng from a list of Markers
|
mil.nga.sf.proj.Projection |
getProjection()
Get the projection
|
Double |
getSimplifyTolerance()
Get the simplify tolerance in meters to simplify lines and polygons to similar curves with fewer points
|
void |
populateLineString(mil.nga.sf.LineString lineString,
List<LatLng> latLngs)
Convert a list of
LatLng to a LineString |
void |
setExteriorOrientation(PolygonOrientation exteriorOrientation)
Set the exterior orientation for conversions, set to null to maintain orientation
|
void |
setHoleOrientation(PolygonOrientation holeOrientation)
Set the polygon hole orientation for conversions, set to null to maintain orientation
|
void |
setSimplifyTolerance(Double simplifyTolerance)
Set the simplify tolerance in meters to simplify lines and polygons to similar curves with fewer points
|
mil.nga.sf.CircularString |
toCircularString(List<LatLng> latLngs)
Convert a list of
LatLng to a CircularString |
mil.nga.sf.CircularString |
toCircularString(List<LatLng> latLngs,
boolean hasZ,
boolean hasM)
Convert a list of
LatLng to a CircularString |
mil.nga.sf.CompoundCurve |
toCompoundCurve(List<Polyline> polylineList)
Convert a list of
Polyline to a CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurve(List<Polyline> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of
Polyline to a CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurveFromList(List<List<LatLng>> polylineList)
Convert a list of List
CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurveFromList(List<List<LatLng>> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of List
CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions)
Convert a
MultiPolylineOptions to a CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolylineOptions to a CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions)
Convert a
MultiPolylineOptions to a CompoundCurve |
mil.nga.sf.CompoundCurve |
toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolylineOptions to a CompoundCurve |
PolygonOptions |
toCurvePolygon(mil.nga.sf.CurvePolygon curvePolygon)
Convert a
CurvePolygon to a PolygonOptions |
mil.nga.sf.Geometry |
toGeometry(GoogleMapShape shape)
Convert a GoogleMapShape to a Geometry
|
LatLng |
toLatLng(mil.nga.sf.Point point)
Convert a
Point to a LatLng |
MultiLatLng |
toLatLngs(mil.nga.sf.MultiPoint multiPoint)
Convert a
MultiPoint to a MultiLatLng |
mil.nga.sf.LineString |
toLineString(List<LatLng> latLngs)
Convert a list of
LatLng to a LineString |
mil.nga.sf.LineString |
toLineString(List<LatLng> latLngs,
boolean hasZ,
boolean hasM)
Convert a list of
LatLng to a LineString |
mil.nga.sf.LineString |
toLineString(Polyline polyline)
Convert a
Polyline to a LineString |
mil.nga.sf.LineString |
toLineString(Polyline polyline,
boolean hasZ,
boolean hasM)
Convert a
Polyline to a LineString |
mil.nga.sf.LineString |
toLineString(PolylineOptions polyline)
Convert a
PolylineOptions to a LineString |
mil.nga.sf.LineString |
toLineString(PolylineOptions polyline,
boolean hasZ,
boolean hasM)
Convert a
PolylineOptions to a LineString |
mil.nga.sf.MultiLineString |
toMultiLineString(List<Polyline> polylineList)
Convert a list of
Polyline to a MultiLineString |
mil.nga.sf.MultiLineString |
toMultiLineString(List<Polyline> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of
Polyline to a MultiLineString |
mil.nga.sf.MultiLineString |
toMultiLineStringFromList(List<List<LatLng>> polylineList)
Convert a list of List
MultiLineString |
mil.nga.sf.MultiLineString |
toMultiLineStringFromList(List<List<LatLng>> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of List
MultiLineString |
mil.nga.sf.MultiLineString |
toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions)
Convert a
MultiPolylineOptions to a MultiLineString |
mil.nga.sf.MultiLineString |
toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolylineOptions to a MultiLineString |
mil.nga.sf.MultiPoint |
toMultiPoint(List<LatLng> latLngs)
Convert a
MultiLatLng to a MultiPoint |
mil.nga.sf.MultiPoint |
toMultiPoint(List<LatLng> latLngs,
boolean hasZ,
boolean hasM)
Convert a
MultiLatLng to a MultiPoint |
mil.nga.sf.MultiPoint |
toMultiPoint(MultiLatLng latLngs)
Convert a
MultiLatLng to a MultiPoint |
mil.nga.sf.MultiPoint |
toMultiPoint(MultiLatLng latLngs,
boolean hasZ,
boolean hasM)
Convert a
MultiLatLng to a MultiPoint |
mil.nga.sf.MultiPolygon |
toMultiPolygon(List<Polygon> polygonList)
Convert a list of
Polygon to a
MultiPolygon |
mil.nga.sf.MultiPolygon |
toMultiPolygon(List<Polygon> polygonList,
boolean hasZ,
boolean hasM)
Convert a list of
Polygon to a
MultiPolygon |
mil.nga.sf.MultiPolygon |
toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions)
Convert a
MultiPolygonOptions to a MultiPolygon |
mil.nga.sf.MultiPolygon |
toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions,
boolean hasZ,
boolean hasM)
Convert a list of
PolygonOptions to a MultiPolygon |
mil.nga.sf.Point |
toPoint(LatLng latLng)
Convert a
LatLng to a Point |
mil.nga.sf.Point |
toPoint(LatLng latLng,
boolean hasZ,
boolean hasM)
Convert a
LatLng to a Point |
mil.nga.sf.Polygon |
toPolygon(com.google.android.gms.maps.model.Polygon polygon)
Convert a
Polygon to a
Polygon |
mil.nga.sf.Polygon |
toPolygon(com.google.android.gms.maps.model.Polygon polygon,
boolean hasZ,
boolean hasM)
Convert a
Polygon to a
Polygon |
mil.nga.sf.Polygon |
toPolygon(List<LatLng> latLngs,
List<List<LatLng>> holes)
Convert a list of
LatLng and list of hole list LatLng to
a Polygon |
mil.nga.sf.Polygon |
toPolygon(List<LatLng> latLngs,
List<List<LatLng>> holes,
boolean hasZ,
boolean hasM)
Convert a list of
LatLng and list of hole list LatLng to
a Polygon |
PolygonOptions |
toPolygon(mil.nga.sf.Polygon polygon)
Convert a
Polygon to a PolygonOptions |
mil.nga.sf.Polygon |
toPolygon(PolygonOptions polygon)
Convert a
Polygon to a
Polygon |
mil.nga.sf.Polygon |
toPolygon(PolygonOptions polygon,
boolean hasZ,
boolean hasM)
Convert a
Polygon to a
Polygon |
MultiPolygonOptions |
toPolygons(mil.nga.sf.MultiPolygon multiPolygon)
Convert a
MultiPolygon to a MultiPolygonOptions |
MultiPolygonOptions |
toPolygons(mil.nga.sf.PolyhedralSurface polyhedralSurface)
Convert a
PolyhedralSurface to a MultiPolygonOptions |
mil.nga.sf.PolyhedralSurface |
toPolyhedralSurface(List<Polygon> polygonList)
Convert a list of
Polygon to a PolyhedralSurface |
mil.nga.sf.PolyhedralSurface |
toPolyhedralSurface(List<Polygon> polygonList,
boolean hasZ,
boolean hasM)
Convert a list of
Polygon to a PolyhedralSurface |
mil.nga.sf.PolyhedralSurface |
toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions)
Convert a
MultiPolygonOptions to a PolyhedralSurface |
mil.nga.sf.PolyhedralSurface |
toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolygonOptions to a PolyhedralSurface |
PolylineOptions |
toPolyline(mil.nga.sf.LineString lineString)
Convert a
LineString to a PolylineOptions |
MultiPolylineOptions |
toPolylines(mil.nga.sf.CompoundCurve compoundCurve)
Convert a
CompoundCurve to a MultiPolylineOptions |
MultiPolylineOptions |
toPolylines(mil.nga.sf.MultiLineString multiLineString)
Convert a
MultiLineString to a MultiPolylineOptions |
mil.nga.sf.Point |
toProjection(mil.nga.sf.Point point)
Transform a WGS84 point to the projection
|
GoogleMapShape |
toShape(mil.nga.sf.Geometry geometry)
Convert a
Geometry to a Map shape |
List<GoogleMapShape> |
toShapes(mil.nga.sf.GeometryCollection<mil.nga.sf.Geometry> geometryCollection)
Convert a
GeometryCollection to a list of Map shapes |
mil.nga.sf.Point |
toWgs84(mil.nga.sf.Point point)
Transform a projection point to WGS84
|
public GoogleMapShapeConverter()
public GoogleMapShapeConverter(mil.nga.sf.proj.Projection projection)
FeatureDao#getProjectionprojection - projectionpublic mil.nga.sf.proj.Projection getProjection()
public PolygonOrientation getExteriorOrientation()
public void setExteriorOrientation(PolygonOrientation exteriorOrientation)
exteriorOrientation - orientationpublic PolygonOrientation getHoleOrientation()
public void setHoleOrientation(PolygonOrientation holeOrientation)
holeOrientation - orientationpublic Double getSimplifyTolerance()
public void setSimplifyTolerance(Double simplifyTolerance)
simplifyTolerance - simplify tolerance in meters, null for no simplificationpublic mil.nga.sf.Point toWgs84(mil.nga.sf.Point point)
point - projection pointpublic mil.nga.sf.Point toProjection(mil.nga.sf.Point point)
point - WGS84 pointpublic LatLng toLatLng(mil.nga.sf.Point point)
Point to a LatLngpoint - pointpublic mil.nga.sf.Point toPoint(LatLng latLng)
LatLng to a PointlatLng - lat lngpublic mil.nga.sf.Point toPoint(LatLng latLng,
boolean hasZ,
boolean hasM)
LatLng to a PointlatLng - lat lnghasZ - has z flaghasM - has m flagpublic PolylineOptions toPolyline(mil.nga.sf.LineString lineString)
LineString to a PolylineOptionslineString - line stringpublic mil.nga.sf.LineString toLineString(Polyline polyline)
Polyline to a LineStringpolyline - polylinepublic mil.nga.sf.LineString toLineString(Polyline polyline,
boolean hasZ,
boolean hasM)
Polyline to a LineStringpolyline - polylinehasZ - has z flaghasM - has m flagpublic mil.nga.sf.LineString toLineString(PolylineOptions polyline)
PolylineOptions to a LineStringpolyline - polyline optionspublic mil.nga.sf.LineString toLineString(PolylineOptions polyline,
boolean hasZ,
boolean hasM)
PolylineOptions to a LineStringpolyline - polyline optionshasZ - has z flaghasM - has m flagpublic mil.nga.sf.LineString toLineString(List<LatLng> latLngs)
LatLng to a LineStringlatLngs - lat lngspublic mil.nga.sf.LineString toLineString(List<LatLng> latLngs, boolean hasZ, boolean hasM)
LatLng to a LineStringlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic mil.nga.sf.CircularString toCircularString(List<LatLng> latLngs)
LatLng to a CircularStringlatLngs - lat lngspublic mil.nga.sf.CircularString toCircularString(List<LatLng> latLngs, boolean hasZ, boolean hasM)
LatLng to a CircularStringlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic void populateLineString(mil.nga.sf.LineString lineString,
List<LatLng> latLngs)
LatLng to a LineStringlineString - line stringlatLngs - lat lngspublic PolygonOptions toPolygon(mil.nga.sf.Polygon polygon)
Polygon to a PolygonOptionspolygon - polygonpublic PolygonOptions toCurvePolygon(mil.nga.sf.CurvePolygon curvePolygon)
CurvePolygon to a PolygonOptionscurvePolygon - curve polygonpublic mil.nga.sf.Polygon toPolygon(com.google.android.gms.maps.model.Polygon polygon)
Polygon to a
Polygonpolygon - polygonpublic mil.nga.sf.Polygon toPolygon(com.google.android.gms.maps.model.Polygon polygon,
boolean hasZ,
boolean hasM)
Polygon to a
Polygonpolygon - polygonhasZ - has z flaghasM - has m flagpublic mil.nga.sf.Polygon toPolygon(PolygonOptions polygon)
Polygon to a
Polygonpolygon - polygon optionspublic mil.nga.sf.Polygon toPolygon(PolygonOptions polygon,
boolean hasZ,
boolean hasM)
Polygon to a
Polygonpolygon - polygon optionshasZ - has z flaghasM - has m flagpublic mil.nga.sf.Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes)
LatLng and list of hole list LatLng to
a PolygonlatLngs - lat lngsholes - list of holespublic mil.nga.sf.Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes, boolean hasZ, boolean hasM)
LatLng and list of hole list LatLng to
a PolygonlatLngs - lat lngsholes - list of holeshasZ - has z flaghasM - has m flagpublic void closePolygonRing(List<LatLng> points)
points - ring pointspublic PolygonOrientation getOrientation(List<LatLng> points)
points - closed pointspublic MultiLatLng toLatLngs(mil.nga.sf.MultiPoint multiPoint)
MultiPoint to a MultiLatLngmultiPoint - multi pointpublic mil.nga.sf.MultiPoint toMultiPoint(MultiLatLng latLngs)
MultiLatLng to a MultiPointlatLngs - lat lngspublic mil.nga.sf.MultiPoint toMultiPoint(MultiLatLng latLngs, boolean hasZ, boolean hasM)
MultiLatLng to a MultiPointlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic mil.nga.sf.MultiPoint toMultiPoint(List<LatLng> latLngs)
MultiLatLng to a MultiPointlatLngs - lat lngspublic mil.nga.sf.MultiPoint toMultiPoint(List<LatLng> latLngs, boolean hasZ, boolean hasM)
MultiLatLng to a MultiPointlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic MultiPolylineOptions toPolylines(mil.nga.sf.MultiLineString multiLineString)
MultiLineString to a MultiPolylineOptionsmultiLineString - multi line stringpublic mil.nga.sf.MultiLineString toMultiLineString(List<Polyline> polylineList)
Polyline to a MultiLineStringpolylineList - polyline listpublic mil.nga.sf.MultiLineString toMultiLineString(List<Polyline> polylineList, boolean hasZ, boolean hasM)
Polyline to a MultiLineStringpolylineList - polyline listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.MultiLineString toMultiLineStringFromList(List<List<LatLng>> polylineList)
MultiLineStringpolylineList - polyline listpublic mil.nga.sf.MultiLineString toMultiLineStringFromList(List<List<LatLng>> polylineList, boolean hasZ, boolean hasM)
MultiLineStringpolylineList - polyline listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.CompoundCurve toCompoundCurveFromList(List<List<LatLng>> polylineList)
CompoundCurvepolylineList - polyline listpublic mil.nga.sf.CompoundCurve toCompoundCurveFromList(List<List<LatLng>> polylineList, boolean hasZ, boolean hasM)
CompoundCurvepolylineList - polyline listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.MultiLineString toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a MultiLineStringmultiPolylineOptions - multi polyline optionspublic mil.nga.sf.MultiLineString toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a MultiLineStringmultiPolylineOptions - multi polyline optionshasZ - has z flaghasM - has m flagpublic mil.nga.sf.CompoundCurve toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionspublic mil.nga.sf.CompoundCurve toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionshasZ - has z flaghasM - has m flagpublic MultiPolygonOptions toPolygons(mil.nga.sf.MultiPolygon multiPolygon)
MultiPolygon to a MultiPolygonOptionsmultiPolygon - multi polygonpublic mil.nga.sf.MultiPolygon toMultiPolygon(List<Polygon> polygonList)
Polygon to a
MultiPolygonpolygonList - polygon listpublic mil.nga.sf.MultiPolygon toMultiPolygon(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a
MultiPolygonpolygonList - polygon listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.MultiPolygon createMultiPolygon(List<mil.nga.sf.Polygon> polygonList)
Polygon to a MultiPolygonpolygonList - polygon listpublic mil.nga.sf.MultiPolygon createMultiPolygon(List<mil.nga.sf.Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a MultiPolygonpolygonList - polygon listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.MultiPolygon toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions)
MultiPolygonOptions to a MultiPolygonmultiPolygonOptions - multi polygon optionspublic mil.nga.sf.MultiPolygon toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM)
PolygonOptions to a MultiPolygonmultiPolygonOptions - multi polygon optionshasZ - has z flaghasM - has m flagpublic MultiPolylineOptions toPolylines(mil.nga.sf.CompoundCurve compoundCurve)
CompoundCurve to a MultiPolylineOptionscompoundCurve - compound curvepublic mil.nga.sf.CompoundCurve toCompoundCurve(List<Polyline> polylineList)
Polyline to a CompoundCurvepolylineList - polyline listpublic mil.nga.sf.CompoundCurve toCompoundCurve(List<Polyline> polylineList, boolean hasZ, boolean hasM)
Polyline to a CompoundCurvepolylineList - polyline listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.CompoundCurve toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionspublic mil.nga.sf.CompoundCurve toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionshasZ - has z flaghasM - has m flagpublic MultiPolygonOptions toPolygons(mil.nga.sf.PolyhedralSurface polyhedralSurface)
PolyhedralSurface to a MultiPolygonOptionspolyhedralSurface - polyhedral surfacepublic mil.nga.sf.PolyhedralSurface toPolyhedralSurface(List<Polygon> polygonList)
Polygon to a PolyhedralSurfacepolygonList - polygon listpublic mil.nga.sf.PolyhedralSurface toPolyhedralSurface(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a PolyhedralSurfacepolygonList - polygon listhasZ - has z flaghasM - has m flagpublic mil.nga.sf.PolyhedralSurface toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions)
MultiPolygonOptions to a PolyhedralSurfacemultiPolygonOptions - multi polygon optionspublic mil.nga.sf.PolyhedralSurface toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM)
MultiPolygonOptions to a PolyhedralSurfacemultiPolygonOptions - multi polygon optionshasZ - has z flaghasM - has m flagpublic GoogleMapShape toShape(mil.nga.sf.Geometry geometry)
Geometry to a Map shapegeometry - geometrypublic List<GoogleMapShape> toShapes(mil.nga.sf.GeometryCollection<mil.nga.sf.Geometry> geometryCollection)
GeometryCollection to a list of Map shapesgeometryCollection - geometry collectionpublic GoogleMapShape addToMap(GoogleMap map, mil.nga.sf.Geometry geometry)
Geometry to a Map shape and add itmap - google mapgeometry - geometrypublic static GoogleMapShape addShapeToMap(GoogleMap map, GoogleMapShape shape)
map - google mapshape - google map shapepublic static Marker addLatLngToMap(GoogleMap map,
LatLng latLng)
map - google maplatLng - lat lngpublic static Marker addMarkerOptionsToMap(GoogleMap map,
MarkerOptions options)
map - google mapoptions - marker optionspublic static Marker addLatLngToMap(GoogleMap map,
LatLng latLng,
MarkerOptions options)
map - google maplatLng - lat lngoptions - marker optionspublic static Polyline addPolylineToMap(GoogleMap map,
PolylineOptions polyline)
map - google mappolyline - polyline optionspublic static com.google.android.gms.maps.model.Polygon addPolygonToMap(GoogleMap map,
PolygonOptions polygon)
map - google mappolygon - polygon optionspublic static MultiMarker addLatLngsToMap(GoogleMap map, MultiLatLng latLngs)
map - google maplatLngs - lat lngspublic static MultiPolyline addPolylinesToMap(GoogleMap map, MultiPolylineOptions polylines)
map - google mappolylines - multi polyline optionspublic static MultiPolygon addPolygonsToMap(GoogleMap map, MultiPolygonOptions polygons)
map - google mappolygons - multi polygon optionspublic List<GoogleMapShape> addToMap(GoogleMap map, mil.nga.sf.GeometryCollection<mil.nga.sf.Geometry> geometryCollection)
GeometryCollection to a list of Map shapes and add to
the mapmap - google mapgeometryCollection - geometry collectionpublic GoogleMapShapeMarkers addShapeToMapAsMarkers(GoogleMap map, GoogleMapShape shape, MarkerOptions markerOptions, MarkerOptions polylineMarkerOptions, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolylineOptions globalPolylineOptions, PolygonOptions globalPolygonOptions)
map - google mapshape - google map shapemarkerOptions - marker optionspolylineMarkerOptions - polyline marker optionspolygonMarkerOptions - polygon marker optionspolygonMarkerHoleOptions - polygon marker hole optionsglobalPolylineOptions - global polyline optionsglobalPolygonOptions - globale polygon optionspublic List<Marker> addPointsToMapAsMarkers(GoogleMap map, List<LatLng> points, MarkerOptions customMarkerOptions, boolean ignoreIdenticalEnds)
map - google mappoints - pointscustomMarkerOptions - custom marker optionsignoreIdenticalEnds - ignore identical ends flagpublic PolylineMarkers addPolylineToMapAsMarkers(GoogleMap map, PolylineOptions polylineOptions, MarkerOptions polylineMarkerOptions, PolylineOptions globalPolylineOptions)
map - google mappolylineOptions - polyline optionspolylineMarkerOptions - polyline marker optionsglobalPolylineOptions - global polyline optionspublic PolygonMarkers addPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, PolygonOptions polygonOptions, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolygonOptions globalPolygonOptions)
shapeMarkers - google map shape markersmap - google mappolygonOptions - polygon optionspolygonMarkerOptions - polygon marker optionspolygonMarkerHoleOptions - polygon marker hole optionsglobalPolygonOptions - global polygon optionspublic MultiPolylineMarkers addMultiPolylineToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, MultiPolylineOptions multiPolyline, MarkerOptions polylineMarkerOptions, PolylineOptions globalPolylineOptions)
shapeMarkers - google map shape markersmap - google mapmultiPolyline - multi polyline optionspolylineMarkerOptions - polyline marker optionsglobalPolylineOptions - global polyline optionspublic MultiPolygonMarkers addMultiPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, MultiPolygonOptions multiPolygon, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolygonOptions globalPolygonOptions)
shapeMarkers - google map shape markersmap - google mapmultiPolygon - multi polygon optionspolygonMarkerOptions - polygon marker optionspolygonMarkerHoleOptions - polygon marker hole optionsglobalPolygonOptions - global polygon optionspublic List<LatLng> getPointsFromMarkers(List<Marker> markers)
markers - list of markerspublic mil.nga.sf.Geometry toGeometry(GoogleMapShape shape)
shape - google map shapepublic BoundingBox boundingBoxToWebMercator(BoundingBox boundingBox)
boundingBox - bounding box in feature projectionpublic BoundingBox boundingBoxToWgs84(BoundingBox boundingBox)
boundingBox - bounding box in feature projectionpublic BoundingBox boundingBoxFromWebMercator(BoundingBox boundingBox)
boundingBox - bounding box in web mercatorpublic BoundingBox boundingBoxFromWgs84(BoundingBox boundingBox)
boundingBox - bounding box in WGS84