Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
905486d
omit some empty values from XML too
dschep Jan 18, 2023
d278431
repo name
dschep Jan 18, 2023
359dfe6
Merge pull request #1 from onXmaps/dschep/omit
dschep Jul 17, 2023
e879abc
Add json struct tags for marshal/unmarshal to json
allanglen Jul 17, 2023
fb61059
Merge pull request #2 from onXmaps/aglen/tag-json-serialization
allanglen Jul 17, 2023
9314cc6
don't omit changeset id from node/way/relation XML&JSON
dschep Aug 8, 2023
e5e7b71
Merge pull request #3 from onXmaps/dschep/no-omit-changeset-id
dschep Aug 8, 2023
5c39143
replace!
dschep Aug 8, 2023
8624a11
Revert "repo name"
dschep Aug 8, 2023
6a44dd9
Merge pull request #4 from onXmaps/dschep/no-omit-changeset-id
dschep Aug 8, 2023
d99be96
name
dschep Aug 8, 2023
d6e6e2e
Add initial encoder implementation
larsbeck Sep 1, 2023
c2da18d
Fix module references
larsbeck Sep 1, 2023
3b71c2a
Use getters for default values
larsbeck Sep 1, 2023
a6a7508
Write correct osmType to blob
larsbeck Sep 1, 2023
86cc279
Writing some info about header sizes
larsbeck Sep 1, 2023
53ca237
More output
larsbeck Sep 1, 2023
99a5385
Write size as binary.BigEndian
larsbeck Sep 1, 2023
833d1d4
Add encoder tests
larsbeck Sep 2, 2023
7589006
Protect write by lock
larsbeck Sep 2, 2023
b51b739
Protect WriteObject by lock
larsbeck Sep 2, 2023
e559d41
Flush if entity type changed
larsbeck Sep 2, 2023
fc1139b
Deactivate tags and denseinfo
larsbeck Sep 2, 2023
80feaae
Readd tags
larsbeck Sep 2, 2023
768d6e3
Fix tags
larsbeck Sep 2, 2023
f47a975
Write 0 in any case
larsbeck Sep 2, 2023
42429ab
Add denseinfo
larsbeck Sep 2, 2023
fad147b
Rearrange fields
larsbeck Sep 2, 2023
44f1f4e
Rename writer to encoder
larsbeck Sep 6, 2023
1df8bae
Alter the url formatting for replication to allow extract areas
kmacgugan Jan 19, 2024
7b65620
Merge pull request #5 from onXmaps/km/replica-url
kmacgugan Jan 22, 2024
3b34953
Revert import to paulmach to see if it works with replace
kmacgugan Jan 23, 2024
08dc908
Merge pull request #6 from onXmaps/km/revert-import
kmacgugan Jan 23, 2024
ba80e06
Replace paulmach imports with onXmaps
kmacgugan Feb 1, 2024
7926875
Merge pull request #7 from onXmaps/km/replaceimports
kmacgugan Feb 1, 2024
940adf1
remove replace
kmacgugan Feb 1, 2024
09d7386
Fix some unterminated imports
kmacgugan Feb 6, 2024
f504b91
remove dir from replication server url
michalnicp Jan 13, 2025
60b9cd1
remove min hour day abstraction
michalnicp Feb 17, 2025
3b8e7e3
add GetDiff
michalnicp Feb 18, 2025
c59d53d
fix tests
michalnicp Feb 18, 2025
d17ec3e
Merge pull request #8 from onXmaps/michal/geofabrik-replicate
michalnicp Feb 21, 2025
7365bd4
Merge remote-tracking branch 'upstream/master' into dschep
dschep Aug 28, 2025
a4964c0
Merge remote-tracking branch 'nextmv-io/add-osm-pbf-encoder' into dschep
dschep Aug 29, 2025
664dc5d
update encode too
dschep Aug 29, 2025
dc69a80
import
dschep Aug 29, 2025
56137ed
err
dschep Aug 29, 2025
9ab703e
update tests (broken before merge of encoder, fixes before and after …
dschep Aug 29, 2025
ed727e0
test proving problems :sob:
dschep Sep 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions annotate/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package annotate
import (
"context"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/internal/core"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/internal/core"
)

// Change will annotate a change into a diff. It will use the
Expand Down
2 changes: 1 addition & 1 deletion annotate/change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

func TestChange_create(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions annotate/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package annotate
import (
"context"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/internal/core"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/internal/core"
"github.com/onXmaps/osm/annotate/shared"

"github.com/paulmach/orb"
"github.com/paulmach/orb/planar"
Expand Down
2 changes: 1 addition & 1 deletion annotate/edgecases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

func TestEdgeCase_childCreatedAfterParent(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions annotate/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/internal/core"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/internal/core"
)

// NoHistoryError is returned if there is no entry in the history
Expand Down
2 changes: 1 addition & 1 deletion annotate/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"github.com/paulmach/osm/annotate/internal/core"
"github.com/onXmaps/osm/annotate/internal/core"
)

func TestMapErrors(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions annotate/geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"math"
"time"

"github.com/onXmaps/osm"
"github.com/onXmaps/osm/internal/mputil"
"github.com/paulmach/orb"
"github.com/paulmach/orb/geo"
"github.com/paulmach/osm"
"github.com/paulmach/osm/internal/mputil"
)

func wayPointOnSurface(w *osm.Way) orb.Point {
Expand Down Expand Up @@ -52,7 +52,7 @@ func wayCentroid(w *osm.Way) orb.Point {
return point
}

// orientation will annotate the orientation of multipolygon relation members.
// orientation will annotate the the orientation of multipolygon relation members.
// This makes it possible to reconstruct relations with partial data in the right direction.
// Return value indicates if the result is 'tainted', e.g. not all way members were present.
func orientation(members osm.Members, ways map[osm.WayID]*osm.Way, at time.Time) bool {
Expand Down
2 changes: 1 addition & 1 deletion annotate/geo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/xml"
"testing"

"github.com/onXmaps/osm"
"github.com/paulmach/orb"
"github.com/paulmach/osm"
)

func TestWayPointOnSurface(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions annotate/internal/core/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/shared"
)

// A Datasourcer is something that acts like a datasource allowing us to
Expand Down
4 changes: 2 additions & 2 deletions annotate/internal/core/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/shared"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion annotate/internal/core/datasourcer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

var _ Datasourcer = &TestDS{}
Expand Down
2 changes: 1 addition & 1 deletion annotate/internal/core/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

// NoHistoryError is returned if there is no entry in the history
Expand Down
4 changes: 2 additions & 2 deletions annotate/internal/core/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package core
import (
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/shared"
)

// A Parent is something that holds children. ie. ways have nodes as children
Expand Down
4 changes: 2 additions & 2 deletions annotate/internal/core/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/shared"
)

type findVisibleTestCase struct {
Expand Down
4 changes: 2 additions & 2 deletions annotate/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package annotate
import (
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/internal/core"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/internal/core"
)

// Option is a parameter that can be used for annotating.
Expand Down
2 changes: 1 addition & 1 deletion annotate/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"sync"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

// RelationHistoryDatasourcer is an more strict interface for when we only need the relation history.
Expand Down
2 changes: 1 addition & 1 deletion annotate/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

func TestChildFirstOrdering(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions annotate/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/internal/core"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/internal/core"
"github.com/onXmaps/osm/annotate/shared"
)

// HistoryAsChildrenDatasourcer is an advanced data source that
Expand Down
2 changes: 1 addition & 1 deletion annotate/relation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"github.com/onXmaps/osm"
"github.com/paulmach/orb"
"github.com/paulmach/osm"
)

func TestRelation(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion annotate/shared/child.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package shared
import (
"time"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

// A Child represents a node, way or relation that is a dependent for
Expand Down
6 changes: 3 additions & 3 deletions annotate/way.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"time"

"github.com/paulmach/osm"
"github.com/paulmach/osm/annotate/internal/core"
"github.com/paulmach/osm/annotate/shared"
"github.com/onXmaps/osm"
"github.com/onXmaps/osm/annotate/internal/core"
"github.com/onXmaps/osm/annotate/shared"
)

// NodeHistoryDatasourcer is an more strict interface for when we only need node history.
Expand Down
5 changes: 3 additions & 2 deletions annotate/way_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"context"
"encoding/xml"
"fmt"
"io/ioutil"
"os"
"reflect"
"testing"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

func TestWays(t *testing.T) {
Expand Down Expand Up @@ -131,7 +132,7 @@ func BenchmarkWays(b *testing.B) {
}

func loadTestdata(tb testing.TB, filename string) *osm.OSM {
data, err := os.ReadFile(filename)
data, err := ioutil.ReadFile(filename)
if err != nil {
tb.Fatalf("unable to open file: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func TestChange_MarshalXML(t *testing.T) {
t.Fatalf("xml marshal error: %v", err)
}

expected := `<osmChange version="0.6" generator="osm-go" copyright="copyright1" attribution="attribution1" license="license1"><create><node id="123" lat="0" lon="0" user="" uid="0" visible="false" version="0" changeset="0" timestamp="0001-01-01T00:00:00Z"></node></create></osmChange>`
expected := `<osmChange version="0.6" generator="osm-go" copyright="copyright1" attribution="attribution1" license="license1"><create><node id="123" lat="0" lon="0" user="" uid="0" visible="false" changeset="0" timestamp="0001-01-01T00:00:00Z"></node></create></osmChange>`
if !bytes.Equal(data, []byte(expected)) {
t.Errorf("incorrect marshal, got: %s", string(data))
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/paulmach/osm
module github.com/onXmaps/osm

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion internal/mputil/mputil.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package mputil
import (
"time"

"github.com/onXmaps/osm"
"github.com/paulmach/orb"
"github.com/paulmach/osm"
)

// Segment is a section of a multipolygon with some extra information
Expand Down
2 changes: 1 addition & 1 deletion internal/mputil/mputil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/onXmaps/osm"
"github.com/paulmach/orb"
"github.com/paulmach/osm"
)

func TestMultiSegment_LineString(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions json.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
//
// import (
// jsoniter "github.com/json-iterator/go"
// "github.com/paulmach/osm"
// "github.com/onXmaps/osm"
// )
//
// var c = jsoniter.Config{
Expand All @@ -36,7 +36,7 @@ var CustomJSONMarshaler interface {
//
// import (
// jsoniter "github.com/json-iterator/go"
// "github.com/paulmach/osm"
// "github.com/onXmaps/osm"
// )
//
// var c = jsoniter.Config{
Expand Down
4 changes: 2 additions & 2 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type Node struct {
User string `xml:"user,attr" json:"user,omitempty"`
UserID UserID `xml:"uid,attr" json:"uid,omitempty"`
Visible bool `xml:"visible,attr" json:"visible"`
Version int `xml:"version,attr" json:"version,omitempty"`
ChangesetID ChangesetID `xml:"changeset,attr" json:"changeset,omitempty"`
Version int `xml:"version,attr,omitempty" json:"version,omitempty"`
ChangesetID ChangesetID `xml:"changeset,attr" json:"changeset"`
Timestamp time.Time `xml:"timestamp,attr" json:"timestamp"`
Tags Tags `xml:"tag" json:"tags,omitempty"`

Expand Down
4 changes: 2 additions & 2 deletions node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestNode_MarshalJSON(t *testing.T) {
t.Fatalf("marshal error: %v", err)
}

if !bytes.Equal(data, []byte(`{"type":"node","id":123,"lat":0,"lon":0,"visible":false,"timestamp":"0001-01-01T00:00:00Z"}`)) {
if !bytes.Equal(data, []byte(`{"type":"node","id":123,"lat":0,"lon":0,"visible":false,"changeset":0,"timestamp":"0001-01-01T00:00:00Z"}`)) {
t.Errorf("incorrect json: %v", string(data))
}
}
Expand All @@ -80,7 +80,7 @@ func TestNode_MarshalXML(t *testing.T) {
t.Fatalf("xml marshal error: %v", err)
}

expected := `<node id="123" lat="0" lon="0" user="" uid="0" visible="false" version="0" changeset="0" timestamp="0001-01-01T00:00:00Z"></node>`
expected := `<node id="123" lat="0" lon="0" user="" uid="0" visible="false" changeset="0" timestamp="0001-01-01T00:00:00Z"></node>`
if !bytes.Equal(data, []byte(expected)) {
t.Errorf("incorrect marshal, got: %s", string(data))
}
Expand Down
4 changes: 2 additions & 2 deletions osm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestOSM_MarshalJSON(t *testing.T) {
t.Fatalf("marshal error: %v", err)
}

if !bytes.Equal(data, []byte(`{"version":"0.6","generator":"osm-go","elements":[{"type":"node","id":123,"lat":0,"lon":0,"visible":false,"timestamp":"0001-01-01T00:00:00Z"},{"type":"way","id":456,"visible":false,"timestamp":"0001-01-01T00:00:00Z","nodes":[]},{"type":"relation","id":789,"visible":false,"timestamp":"0001-01-01T00:00:00Z","members":[]},{"type":"changeset","id":10,"created_at":"0001-01-01T00:00:00Z","closed_at":"0001-01-01T00:00:00Z","open":false},{"type":"user","id":16,"name":"","img":{"href":""},"changesets":{"count":0},"traces":{"count":0},"home":{"lat":0,"lon":0,"zoom":0},"languages":null,"blocks":{"received":{"count":0,"active":0}},"messages":{"received":{"count":0,"unread":0},"sent":{"count":0}},"created_at":"0001-01-01T00:00:00Z"},{"type":"note","id":15,"lat":0,"lon":0,"date_created":null,"date_closed":null,"comments":null}]}`)) {
if !bytes.Equal(data, []byte(`{"version":"0.6","generator":"osm-go","elements":[{"type":"node","id":123,"lat":0,"lon":0,"visible":false,"changeset":0,"timestamp":"0001-01-01T00:00:00Z"},{"type":"way","id":456,"visible":false,"changeset":0,"timestamp":"0001-01-01T00:00:00Z","nodes":[]},{"type":"relation","id":789,"visible":false,"changeset":0,"timestamp":"0001-01-01T00:00:00Z","members":[]},{"type":"changeset","id":10,"created_at":"0001-01-01T00:00:00Z","closed_at":"0001-01-01T00:00:00Z","open":false},{"type":"user","id":16,"name":"","img":{"href":""},"changesets":{"count":0},"traces":{"count":0},"home":{"lat":0,"lon":0,"zoom":0},"languages":null,"blocks":{"received":{"count":0,"active":0}},"messages":{"received":{"count":0,"unread":0},"sent":{"count":0}},"created_at":"0001-01-01T00:00:00Z"},{"type":"note","id":15,"lat":0,"lon":0,"date_created":null,"date_closed":null,"comments":null}]}`)) {
t.Errorf("incorrect json: %v", string(data))
}
}
Expand Down Expand Up @@ -281,7 +281,7 @@ func TestOSM_MarshalXML(t *testing.T) {
t.Fatalf("xml marshal error: %v", err)
}

expected := `<osm version="0.7" generator="osm-go-test" copyright="copyright1" attribution="attribution1" license="license1"><node id="123" lat="0" lon="0" user="" uid="0" visible="false" version="0" changeset="0" timestamp="0001-01-01T00:00:00Z"></node></osm>`
expected := `<osm version="0.7" generator="osm-go-test" copyright="copyright1" attribution="attribution1" license="license1"><node id="123" lat="0" lon="0" user="" uid="0" visible="false" changeset="0" timestamp="0001-01-01T00:00:00Z"></node></osm>`

if !bytes.Equal(data, []byte(expected)) {
t.Errorf("incorrect marshal, got: %s", string(data))
Expand Down
2 changes: 1 addition & 1 deletion osmapi/changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

// Changeset returns a given changeset from the osm rest api.
Expand Down
2 changes: 1 addition & 1 deletion osmapi/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"time"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

// BaseURL defines the api host. This can be change to hit
Expand Down
2 changes: 1 addition & 1 deletion osmapi/live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"

"golang.org/x/time/rate"
)
Expand Down
2 changes: 1 addition & 1 deletion osmapi/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

// Map returns the latest elements in the given bounding box.
Expand Down
2 changes: 1 addition & 1 deletion osmapi/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/paulmach/osm"
"github.com/onXmaps/osm"
)

func TestMap_urls(t *testing.T) {
Expand Down
Loading