-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CLI with geopackage files (#434)
Apparently the returned column name is not _always_ `"wkb_geometry"`. Closes #433
- Loading branch information
1 parent
3b6e89e
commit a3e125f
Showing
3 changed files
with
16 additions
and
2 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
Binary file not shown.
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,12 @@ | ||
from pathlib import Path | ||
|
||
from lonboard import PathLayer, viz | ||
from lonboard._cli import read_pyogrio | ||
|
||
fixtures_dir = Path(__file__).parent / "fixtures" | ||
|
||
|
||
def test_viz_gpkg(): | ||
table = read_pyogrio(fixtures_dir / "West_Devon_rail.gpkg") | ||
map_ = viz(table) | ||
assert isinstance(map_.layers[0], PathLayer) |