Skip to content
Open
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
1,347 changes: 1,180 additions & 167 deletions src/rok4/vector.py
100644 → 100755

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion tests/fixtures/ARRONDISSEMENT.cpg

This file was deleted.

Binary file removedtests/fixtures/ARRONDISSEMENT.dbf
Binary file not shown.
1 change: 0 additions & 1 deletion tests/fixtures/ARRONDISSEMENT.prj

This file was deleted.

Binary file removedtests/fixtures/ARRONDISSEMENT.shp
Binary file not shown.
Binary file removedtests/fixtures/ARRONDISSEMENT.shx
Binary file not shown.
Binary file addedtests/fixtures/TM_WORLD_BORDERS-0.3.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions tests/fixtures/TM_WORLD_BORDERS-0.3.prj
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file addedtests/fixtures/TM_WORLD_BORDERS-0.3.shp
Binary file not shown.
Binary file addedtests/fixtures/TM_WORLD_BORDERS-0.3.shx
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/fixtures/filelist.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
file://./data/martinique.gpkg
file://./data/states.geojson
file://./data/TM_WORLD_BORDERS-0.3.shp
Binary file addedtests/fixtures/martinique.gpkg
Binary file not shown.
60 changes: 60 additions & 0 deletions tests/fixtures/states.geojson

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions tests/fixtures/vector.csv

This file was deleted.

8 changes: 0 additions & 8 deletions tests/fixtures/vector.geojson

This file was deleted.

Binary file removedtests/fixtures/vector.gpkg
Binary file not shown.
2 changes: 0 additions & 2 deletions tests/fixtures/vector2.csv

This file was deleted.

99 changes: 99 additions & 0 deletions tests/fixtures/vectorset.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
[
{
"path": "file://./data/martinique.gpkg",
"tables": [
{
"name": "arrondissement",
"count": 4,
"srs": "EPSG:4559",
"bbox": [690574.399999426, 1592426.09999943, 736126.499998242, 1645659.8],
"geometry_columns": ["geom"],
"attributes": {
"fid": "Integer",
"id": "Integer",
"id_geofla": "String",
"code_arr": "String",
"code_chf": "String",
"nom_chf": "String",
"x_chf_lieu": "Integer",
"y_chf_lieu": "Integer",
"x_centroid": "Integer",
"y_centroid": "Integer",
"code_dept": "String",
"nom_dept": "String",
"code_reg": "String",
"nom_reg": "String"
}
},
{
"name": "departement",
"count": 1,
"srs": "EPSG:4559",
"bbox": [690574.399999426, 1592426.09999943, 736126.499998242, 1645659.8],
"geometry_columns": ["geom"],
"attributes": {
"fid": "Integer",
"id": "Integer",
"id_geofla": "String",
"code_dept": "String",
"nom_dept": "String",
"code_chf": "String",
"nom_chf": "String",
"x_chf_lieu": "Integer",
"y_chf_lieu": "Integer",
"x_centroid": "Integer",
"y_centroid": "Integer",
"code_reg": "String",
"nom_reg": "String"
}
}
]
},
{
"path": "file://./data/states.geojson",
"tables": [
{
"name": "states",
"count": 52,
"srs": "EPSG:3857",
"bbox": [-19951818.272319775, 2017836.357428821, -7254560.414595957, 11553642.98126969],
"geometry_columns": ["geom"],
"attributes": {
"id": "String",
"STATE_ABBR": "String",
"STATE_NAME": "String",
"AREA_LAND": "Real",
"AREA_WATER": "Real",
"PERSONS": "Integer",
"MALE": "Integer",
"FEMALE": "Integer"
}
}
]
},
{
"path": "file://./data/TM_WORLD_BORDERS-0.3.shp",
"tables": [
{
"name": "TM_WORLD_BORDERS-0.3",
"count": 246,
"srs": "EPSG:4326",
"bbox": [-179.99999999999997, 180.0, -90.0, 83.62359600000008],
"geometry_columns": ["geom"],
"attributes": {
"FIPS": "String",
"ISO2": "String",
"ISO3": "String",
"UN": "Integer",
"NAME": "String",
"AREA": "Integer",
"POP2005": "Integer64",
"REGION": "Integer",
"SUBREGION": "Integer",
"LON": "Real",
"LAT": "Real"
}
}
]
}
]
Loading