Class Topology


  • public class Topology
    extends java.lang.Object
    Topology class process the polygon and break a polygon into arc to build topology.
    • Field Detail

      • 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
      • allPoints

        protected java.util.List<LatLng> allPoints
    • Method Detail

      • addPolygon

        public void addPolygon​(GeoPolygon polygon,
                               int id)
      • buildArcs

        public void buildArcs()
        Build the topology based on all the paths.
      • createGeoPoints

        protected java.util.List<GeoPoint> createGeoPoints​(java.util.List<LatLng> latLngs)
      • addEdge

        protected int addEdge​(int startId,
                              int endId)
      • addEdge

        protected int addEdge​(int startId,
                              int endId,
                              int start2,
                              int end2)
      • getShape

        public MultiGeoPolygon getShape​(java.util.ArrayList<java.lang.Integer> shapeIds,
                                        LineSimplification simplification)
        Merge multiple shapes into one geoshape.
        Parameters:
        shapeIds -
        simplification -
        Returns: