From 3ea002c60e325340ea72122ed2e68703dbabce38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Baebler?= Date: Sat, 23 Dec 2023 11:52:25 +0100 Subject: [PATCH] gofmt --- gursShp2geoJson.go | 4 ++-- gursShp2geoJson_test.go | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gursShp2geoJson.go b/gursShp2geoJson.go index 5ce3333..52cab0c 100644 --- a/gursShp2geoJson.go +++ b/gursShp2geoJson.go @@ -279,8 +279,8 @@ func processRecord(shapeReader *shp.Reader) (*geojson.Feature, string, string) { 10 D_OD D 8 Datum veljavnosti 11 DV_OD D 8 Datum vnosa v bazo 12 STATUS C 1 Status veljavnosti zapisa (V – veljavno stanje) - 13 CEN_E ali Y_C N 6.0 E (D96/TM) ali Y (D48/GK) koordinata centroida hišne številke - 14 CEN_N ali X_C N 6.0 N (D96/TM) ali X (D48/GK) koordinata centroida hišne številke + 13 CEN_E ali Y_C N 6.0 E (D96/TM) ali Y (D48/GK) koordinata centroida hišne številke + 14 CEN_N ali X_C N 6.0 N (D96/TM) ali X (D48/GK) koordinata centroida hišne številke */ labela := shapeReader.Attribute(4) diff --git a/gursShp2geoJson_test.go b/gursShp2geoJson_test.go index a3c2f64..4d24af1 100644 --- a/gursShp2geoJson_test.go +++ b/gursShp2geoJson_test.go @@ -117,18 +117,18 @@ func assertBetween(t *testing.T, testedValue, lowBound, upperBound int) { } /* -func TestAll(t *testing.T) { - ReadLookups() - ProcessOne("data/temp/HS-epsg4326/HS-epsg4326.shp") -} - -func BenchmarkAll(b *testing.B) { - b.ReportAllocs() - ReadLookups() - for n := 0; n < b.N; n++ { + func TestAll(t *testing.T) { + ReadLookups() ProcessOne("data/temp/HS-epsg4326/HS-epsg4326.shp") } -} + + func BenchmarkAll(b *testing.B) { + b.ReportAllocs() + ReadLookups() + for n := 0; n < b.N; n++ { + ProcessOne("data/temp/HS-epsg4326/HS-epsg4326.shp") + } + } */ func BenchmarkReadShapefile(b *testing.B) { if testing.Short() {