Class Topology
- java.lang.Object
-
- com.microstrategy.web.app.maps.topology.Topology
-
public class Topology extends java.lang.Object
Topology class process the polygon and break a polygon into arc to build topology.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<GeoPath>
allPaths
protected java.util.List<LatLng>
allPoints
protected ArcIndexer
arcIndexer
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>
pathArcMap
protected GeoPointFactory
pointFactory
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>
shapePathMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
addEdge(int startId, int endId)
protected int
addEdge(int startId, int endId, int start2, int end2)
void
addPolygon(GeoPolygon polygon, int id)
void
addShape(MultiGeoPolygon shape, int id)
void
buildArcs()
Build the topology based on all the paths.protected java.util.List<GeoPoint>
createGeoPoints(java.util.List<LatLng> latLngs)
MultiGeoPolygon
getShape(int id)
MultiGeoPolygon
getShape(int id, LineSimplification simplification)
MultiGeoPolygon
getShape(java.util.ArrayList<java.lang.Integer> shapeIds, LineSimplification simplification)
Merge multiple shapes into one geoshape.
-
-
-
Field Detail
-
pointFactory
protected GeoPointFactory pointFactory
-
shapePathMap
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> shapePathMap
-
pathArcMap
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pathArcMap
-
allPaths
protected java.util.List<GeoPath> allPaths
-
arcIndexer
protected ArcIndexer arcIndexer
-
allPoints
protected java.util.List<LatLng> allPoints
-
-
Method Detail
-
addPolygon
public void addPolygon(GeoPolygon polygon, int id)
-
addShape
public void addShape(MultiGeoPolygon shape, int id)
-
buildArcs
public void buildArcs()
Build the topology based on all the paths.
-
addEdge
protected int addEdge(int startId, int endId)
-
addEdge
protected int addEdge(int startId, int endId, int start2, int end2)
-
getShape
public MultiGeoPolygon getShape(int id)
-
getShape
public MultiGeoPolygon getShape(java.util.ArrayList<java.lang.Integer> shapeIds, LineSimplification simplification)
Merge multiple shapes into one geoshape.- Parameters:
shapeIds
-simplification
-- Returns:
-
getShape
public MultiGeoPolygon getShape(int id, LineSimplification simplification)
-
-