-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle empty geometry collection (#592)
* moved empty geometry collection check to the atlas package so all providers can benefit. * Added test case to atlas for empty geometry collection Reworked the TestEncode function to match the new testing convention. * added emptycollection test provider closes #429
- Loading branch information
Showing
6 changed files
with
252 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package emptycollection | ||
|
||
import "github.com/go-spatial/geom" | ||
|
||
type layer struct { | ||
name string | ||
geomType geom.Geometry | ||
srid uint64 | ||
} | ||
|
||
func (l layer) Name() string { | ||
return l.name | ||
} | ||
|
||
func (l layer) GeomType() geom.Geometry { | ||
return l.geomType | ||
} | ||
|
||
func (l layer) SRID() uint64 { | ||
return l.srid | ||
} |
Oops, something went wrong.