Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
refactored all package imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tingold committed May 21, 2020
1 parent 0da9609 commit c21d451
Show file tree
Hide file tree
Showing 117 changed files with 176 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go:
- 'tip'

install:
- go get -v github.com/paulmach/orb/...
- go get -v github.com/planetfederal/orb/...
- go install -v
- go test -i ./...

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
orb [![Build Status](https://travis-ci.org/paulmach/orb.svg?branch=master)](https://travis-ci.org/paulmach/orb) [![Coverage Status](https://coveralls.io/repos/github/paulmach/orb/badge.svg?branch=master)](https://coveralls.io/github/paulmach/orb?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/paulmach/orb)](https://goreportcard.com/report/github.com/paulmach/orb) [![Godoc Reference](https://godoc.org/github.com/paulmach/orb?status.svg)](https://godoc.org/github.com/paulmach/orb)
orb [![Build Status](https://travis-ci.org/paulmach/orb.svg?branch=master)](https://travis-ci.org/paulmach/orb) [![Coverage Status](https://coveralls.io/repos/github/paulmach/orb/badge.svg?branch=master)](https://coveralls.io/github/paulmach/orb?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/planetfederal/orb)](https://goreportcard.com/report/github.com/planetfederal/orb) [![Godoc Reference](https://godoc.org/github.com/planetfederal/orb?status.svg)](https://godoc.org/github.com/planetfederal/orb)
======

Package `orb` defines a set of types for working with 2d geo and planar/projected geometric data in Golang.
Expand Down
2 changes: 1 addition & 1 deletion clip/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
orb/clip [![Godoc Reference](https://godoc.org/github.com/paulmach/orb/clip?status.svg)](https://godoc.org/github.com/paulmach/orb/clip)
orb/clip [![Godoc Reference](https://godoc.org/github.com/planetfederal/orb/clip?status.svg)](https://godoc.org/github.com/planetfederal/orb/clip)
========

Package orb/clip provides functions for clipping lines and polygons to a bounding box.
Expand Down
2 changes: 1 addition & 1 deletion clip/clip.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package clip

import (
"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

// Code based on https://github.com/mapbox/lineclip
Expand Down
2 changes: 1 addition & 1 deletion clip/clip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func TestInternalLine(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions clip/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package clip_test
import (
"fmt"

"github.com/paulmach/orb"
"github.com/paulmach/orb/clip"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/clip"
)

func ExampleGeometry() {
Expand Down
2 changes: 1 addition & 1 deletion clip/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"math"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

// Geometry will clip the geometry to the bounding box using the
Expand Down
2 changes: 1 addition & 1 deletion clip/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package clip
import (
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func TestGeometry(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion clip/smartclip/around_bound.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package smartclip
import (
"sort"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

// aroundBound will connect the endpoints of the linestring provided
Expand Down
2 changes: 1 addition & 1 deletion clip/smartclip/around_bound_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func TestNexts(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions clip/smartclip/smart.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"sort"

"github.com/paulmach/orb"
"github.com/paulmach/orb/clip"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/clip"
)

// Geometry will do a smart more involved clipping and wrapping of the geometry.
Expand Down
2 changes: 1 addition & 1 deletion clip/smartclip/smart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func TestSmartClip(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion clip/smartclip/util_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package smartclip

import (
"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

var flips = []string{
Expand Down
2 changes: 1 addition & 1 deletion encoding/mvt/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
encoding/mvt [![Godoc Reference](https://godoc.org/github.com/paulmach/orb?status.svg)](https://godoc.org/github.com/paulmach/orb/encoding/mvt)
encoding/mvt [![Godoc Reference](https://godoc.org/github.com/planetfederal/orb?status.svg)](https://godoc.org/github.com/planetfederal/orb/encoding/mvt)
============

Package mvt provides functions for encoding and decoding
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/clip.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package mvt

import (
"github.com/paulmach/orb"
"github.com/paulmach/orb/clip"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/clip"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/clip_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package mvt

import (
"github.com/paulmach/orb"
"github.com/paulmach/orb/geojson"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/geojson"
"reflect"
"testing"
)
Expand Down
8 changes: 4 additions & 4 deletions encoding/mvt/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package mvt_test
import (
"log"

"github.com/paulmach/orb/encoding/mvt"
"github.com/paulmach/orb/geojson"
"github.com/paulmach/orb/maptile"
"github.com/paulmach/orb/simplify"
"github.com/planetfederal/orb/encoding/mvt"
"github.com/planetfederal/orb/geojson"
"github.com/planetfederal/orb/maptile"
"github.com/planetfederal/orb/simplify"
)

func ExampleMarshal() {
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"reflect"

"github.com/paulmach/orb"
"github.com/paulmach/orb/encoding/mvt/vectortile"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/encoding/mvt/vectortile"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/geometry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"reflect"
"testing"

"github.com/paulmach/orb"
"github.com/paulmach/orb/encoding/mvt/vectortile"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/encoding/mvt/vectortile"
)

func TestGeometry_Point(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions encoding/mvt/layer.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package mvt

import (
"github.com/paulmach/orb/geojson"
"github.com/paulmach/orb/maptile"
"github.com/paulmach/orb/project"
"github.com/planetfederal/orb/geojson"
"github.com/planetfederal/orb/maptile"
"github.com/planetfederal/orb/project"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"io/ioutil"
"strconv"

"github.com/paulmach/orb/encoding/mvt/vectortile"
"github.com/paulmach/orb/geojson"
"github.com/planetfederal/orb/encoding/mvt/vectortile"
"github.com/planetfederal/orb/geojson"

"github.com/gogo/protobuf/proto"
"github.com/pkg/errors"
Expand Down
8 changes: 4 additions & 4 deletions encoding/mvt/marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"reflect"
"testing"

"github.com/paulmach/orb"
"github.com/paulmach/orb/encoding/mvt/vectortile"
"github.com/paulmach/orb/geojson"
"github.com/paulmach/orb/maptile"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/encoding/mvt/vectortile"
"github.com/planetfederal/orb/geojson"
"github.com/planetfederal/orb/maptile"
)

func TestMarshalMarshalGzipped_Full(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions encoding/mvt/projection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"math"
"math/bits"

"github.com/paulmach/orb"
"github.com/paulmach/orb/internal/mercator"
"github.com/paulmach/orb/maptile"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/internal/mercator"
"github.com/planetfederal/orb/maptile"
)

type projection struct {
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/projection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package mvt
import (
"testing"

"github.com/paulmach/orb/maptile"
"github.com/paulmach/orb/project"
"github.com/planetfederal/orb/maptile"
"github.com/planetfederal/orb/project"
)

func TestNonPowerOfTwoProjection(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions encoding/mvt/simplify.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package mvt

import (
"github.com/paulmach/orb"
"github.com/paulmach/orb/planar"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/planar"
)

// Simplify will run all the geometry of all the layers through the provided simplifer.
Expand Down
6 changes: 3 additions & 3 deletions encoding/mvt/simplify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mvt
import (
"testing"

"github.com/paulmach/orb"
"github.com/paulmach/orb/geojson"
"github.com/paulmach/orb/simplify"
"github.com/planetfederal/orb"
"github.com/planetfederal/orb/geojson"
"github.com/planetfederal/orb/simplify"
)

func TestLayerSimplify(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
encoding/wkb [![Godoc Reference](https://godoc.org/github.com/paulmach/orb?status.svg)](https://godoc.org/github.com/paulmach/orb/encoding/wkb)
encoding/wkb [![Godoc Reference](https://godoc.org/github.com/planetfederal/orb?status.svg)](https://godoc.org/github.com/planetfederal/orb/encoding/wkb)
============

This package provides encoding and decoding of [WKB](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary)
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/binary"
"io"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func readCollection(r io.Reader, bom binary.ByteOrder) (orb.Collection, error) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/collection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wkb
import (
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/line_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"math"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func readLineString(r io.Reader, bom binary.ByteOrder) (orb.LineString, error) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/line_string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wkb
import (
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"math"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func readPoint(r io.Reader, bom binary.ByteOrder) (orb.Point, error) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/point_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wkb
import (
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/polygon.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"math"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func readPolygon(r io.Reader, bom binary.ByteOrder) (orb.Polygon, error) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/polygon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wkb
import (
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"fmt"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func TestScanNil(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/wkb.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/binary"
"io"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkb/wkb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

func TestMarshal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkt/wkt.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"fmt"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

// MarshalString returns a WKT representation of the Geometry if possible.
Expand Down
2 changes: 1 addition & 1 deletion encoding/wkt/wkt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wkt
import (
"testing"

"github.com/paulmach/orb"
"github.com/planetfederal/orb"
)

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

0 comments on commit c21d451

Please sign in to comment.