Class Topology
- java.lang.Object
 - 
- com.microstrategy.web.app.maps.topology.Topology
 
 
- 
public class Topology extends java.lang.ObjectTopology 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>allPathsprotected java.util.List<LatLng>allPointsprotected ArcIndexerarcIndexerprotected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>pathArcMapprotected GeoPointFactorypointFactoryprotected 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 intaddEdge(int startId, int endId)protected intaddEdge(int startId, int endId, int start2, int end2)voidaddPolygon(GeoPolygon polygon, int id)voidaddShape(MultiGeoPolygon shape, int id)voidbuildArcs()Build the topology based on all the paths.protected java.util.List<GeoPoint>createGeoPoints(java.util.List<LatLng> latLngs)MultiGeoPolygongetShape(int id)MultiGeoPolygongetShape(int id, LineSimplification simplification)MultiGeoPolygongetShape(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)
 
 - 
 
 -