Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
166 changes: 166 additions & 0 deletions tests/classes/a5.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,169 @@ def test_a5_geo_polygon_compact(self):
],
standalone_mode=False,
)

def test_a5_linestring_run(self):
a5(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"17",
"-c",
"0",
],
standalone_mode=False,
)

def test_a5_linestring_keep_attrs(self):
a5(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"-k",
],
standalone_mode=False,
)

def test_a5_linestring_compaction(self):
a5(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"-co",
"-id",
"t50_fid",
],
standalone_mode=False,
)

def test_a5_linestring_geo_point(self):
a5(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"--geo",
"point",
],
standalone_mode=False,
)

def test_a5_linestring_geo_polygon(self):
a5(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"--geo",
"polygon",
],
standalone_mode=False,
)

def test_a5_point_run(self):
a5(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"17",
"-c",
"0",
],
standalone_mode=False,
)

def test_a5_point_keep_attrs(self):
a5(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"-k",
],
standalone_mode=False,
)

def test_a5_point_compaction(self):
a5(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"-co",
"-id",
"t50_fid",
],
standalone_mode=False,
)

def test_a5_point_geo_point(self):
a5(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"--geo",
"point",
],
standalone_mode=False,
)

def test_a5_point_geo_polygon(self):
a5(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"17",
"-c",
"0",
"--geo",
"polygon",
],
standalone_mode=False,
)
166 changes: 166 additions & 0 deletions tests/classes/geohash.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,169 @@ def test_geohash_geo_polygon_compact(self):
],
standalone_mode=False,
)

def test_geohash_linestring_run(self):
geohash(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"6",
"-c",
"0",
],
standalone_mode=False,
)

def test_geohash_linestring_keep_attrs(self):
geohash(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"-k",
],
standalone_mode=False,
)

def test_geohash_linestring_compaction(self):
geohash(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"-co",
"-id",
"t50_fid",
],
standalone_mode=False,
)

def test_geohash_linestring_geo_point(self):
geohash(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"--geo",
"point",
],
standalone_mode=False,
)

def test_geohash_linestring_geo_polygon(self):
geohash(
[
TEST_LINESTRING_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_LINESTRING_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"--geo",
"polygon",
],
standalone_mode=False,
)

def test_geohash_point_run(self):
geohash(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"6",
"-c",
"0",
],
standalone_mode=False,
)

def test_geohash_point_keep_attrs(self):
geohash(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"-k",
],
standalone_mode=False,
)

def test_geohash_point_compaction(self):
geohash(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"-co",
"-id",
"t50_fid",
],
standalone_mode=False,
)

def test_geohash_point_geo_point(self):
geohash(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"--geo",
"point",
],
standalone_mode=False,
)

def test_geohash_point_geo_polygon(self):
geohash(
[
TEST_POINT_FILE_PATH,
str(TEST_OUTPUT_PATH),
"--layer",
TEST_POINT_LAYER_NAME,
"-r",
"6",
"-c",
"0",
"--geo",
"polygon",
],
standalone_mode=False,
)
Loading
Loading