Skip to content

Commit f05a4a8

Browse files
committed
bigger area
1 parent 1204257 commit f05a4a8

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

bin/main

-80 Bytes
Binary file not shown.

data/cleaned.geojson

+1-1
Large diffs are not rendered by default.

geojson-cleaner/geojson-cleaner.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ func main() {
5555
// var x1 = -0.072729
5656
// var y1 = 51.494244
5757

58-
var x0 = -0.2362015075657382
59-
var y0 = 51.55145812759912
60-
var x1 = 0.04214541122192372
61-
var y1 = 51.45916353545195
58+
var x0 = -0.36782289147757297
59+
var y0 = 51.54263503347468
60+
var x1 = 0.05026614032905741
61+
var y1 = 51.41472350391919
6262

6363
for i := 0; i < len(geojson.Features); i++ {
6464
isLineString := geojson.Features[i].Geometry.Type == "LineString"

parse-geojson.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"io/ioutil"
77
"os"
8-
"unsafe"
98
)
109

1110
// Property Geojson Property
@@ -57,7 +56,7 @@ func createGraph(geojson GeoJSON) Graph {
5756
prev = &node
5857
}
5958
}
60-
fmt.Println("geojson Graph created with", len(graph.edges), "nodes and", graph.numEdges, "edges. Size of", unsafe.Sizeof(graph))
59+
fmt.Println("geojson Graph created with", len(graph.edges), "nodes and", graph.numEdges, "edges")
6160
return graph
6261
}
6362

0 commit comments

Comments
 (0)