public void init(string path)
    {
        gisdata = GISparser.LoadOSM(path);
        this.clearCache();
        map.clearSegmentCache();

        /*qt = new GISquadtree(null);
         * qt.size = new Vector2d(1, 1);
         * qt.position = new Vector2d(0, 0);
         * foreach (var way in gisdata.wayContainer)
         * {
         *  qt.insert(way);
         * }  */
    }
 public void init(string path)
 {
     gisdata = GISparser.LoadOSM(path);
     this.clearCache();
     map.clearSegmentCache();
     uzytecznePunkty = new List <GISnode>();
     dostepneNazwy   = new Dictionary <string, string>();
     foreach (var node in gisdata.nodeContainer)
     {
         string output = null;
         node.tags.TryGetValue("amenity", out output);
         if (output != null)
         {
             uzytecznePunkty.Add(node);
             try
             {
                 dostepneNazwy.Add(output, output);
             } catch
             {
             }
         }
     }
 }
Beispiel #3
0
    //qt = new GISquadtree(null);

    public void loadFile(string text)
    {
        gisdata = GISparser.LoadOSM(text);
    }
Beispiel #4
0
 public void loadFile(string text)
 {
     gisdata = GISparser.LoadOSM(text);
     setPlaneSize();
     setPlane();
 }