This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from PDOK/local-gpkg
add support for local geopackage
- Loading branch information
Showing
5 changed files
with
74 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
main | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
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 |
---|---|---|
@@ -1,15 +1,37 @@ | ||
# gpkg-to-featureinfo-texthtml | ||
Generate HTML feature-info templates for Mapserver from GPKG | ||
|
||
## Build | ||
To build the application, make sure you have GoLang (v1.11+) installed. | ||
`go build` | ||
|
||
## Test | ||
`go test main.go` | ||
To test the application, make sure you have GoLang (v1.11+) installed. | ||
`go test` | ||
|
||
## Build | ||
`go build main.go` | ||
## Usage with sources | ||
You can use either an URL where a Geopackage can be downloaded or use a local Geopackage. | ||
|
||
Example with an URL: | ||
`go run main.go -gpkg-url http://csu338.cs.kadaster.nl:8080/geopackages/afvalwater2016/1/afvalwater.gpkg` | ||
|
||
Example with a local file: | ||
`go run main.go -gpkg-path /home/user/downloads/afvalwater.gpkg` | ||
|
||
## Usage with binary (Linux) | ||
You can use either an URL where a Geopackage can be downloaded or use a local Geopackage. | ||
|
||
Example with an URL: | ||
`gpkg-to-featureinfo-texthtml -gpkg-url http://csu338.cs.kadaster.nl:8080/geopackages/afvalwater2016/1/afvalwater.gpkg` | ||
|
||
## Usage | ||
`go run main.go -gpkgurl http://csu338.cs.kadaster.nl:8080/geopackages/afvalwater2016/1/afvalwater.gpkg` | ||
Example with a local file: | ||
`gpkg-to-featureinfo-texthtml -gpkg-path /home/user/downloads/afvalwater.gpkg` | ||
|
||
## Usage with binary (Windows) | ||
You can use either an URL where a Geopackage can be downloaded or use a local Geopackage. | ||
|
||
`main.exe -gpkgurl http://csu338.cs.kadaster.nl:8080/geopackages/afvalwater2016/1/afvalwater.gpkg` | ||
Example with an URL: | ||
`gpkg-to-featureinfo-texthtml.exe -gpkg-url http://csu338.cs.kadaster.nl:8080/geopackages/afvalwater2016/1/afvalwater.gpkg` | ||
|
||
Example with a local file: | ||
`gpkg-to-featureinfo-texthtml.exe -gpkg-path /home/user/downloads/afvalwater.gpkg` |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
module gpkg-to-featureinfo-texthtml | ||
|
||
require github.com/mattn/go-sqlite3 v1.10.0 | ||
|
||
go 1.13 |
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