Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
235374f
vector.py : revue suite retour de Théo pour nouvelle implémentation d…
fbacquelot May 28, 2025
9c4d6c2
vector.py : suppression d'un import
fbacquelot May 28, 2025
030d4c4
test_vector.py : création des tests avec VectorSet
fbacquelot May 28, 2025
0c255ef
vector.py : mise en forme du skeleton du programme vector.py
fbacquelot Jun 13, 2025
4f894a8
vector.py : deux usages pour le chargement des données vecteur (en co…
fbacquelot Jun 13, 2025
3b4fc8d
vector.py : rajout du path relatif donnant accès au fichier shapefile…
fbacquelot Jun 13, 2025
a62d8f5
vector.py : chargement des données vecteur dans la partie main du pro…
fbacquelot Jun 13, 2025
49a1e5f
vector.py : rajout des types des arguments d'entrées et de sorties de…
fbacquelot Jun 13, 2025
d1c3559
vector.py : ajout d'un commentaire dans la partie 'main()'
fbacquelot Jun 13, 2025
055058a
vector.py : option json pour ogrinfo en ligne de commande
fbacquelot Jun 13, 2025
c0474d1
vector.py : description des arguments d'entrée et de sortie du constr…
fbacquelot Jun 13, 2025
9f461ed
vector.py : orthographe
fbacquelot Jun 13, 2025
7787cbb
vector.py : mise à jour de la liste des valeurs de srs uniques des ta…
fbacquelot Jun 13, 2025
5a9b48e
test_vector.py : mise à jour Table à la place de Layer
fbacquelot Jun 13, 2025
63d32c1
vector.py : import des librairies gdal et ogr
fbacquelot Jun 13, 2025
2cfcd5e
vector.py : esthétique
fbacquelot Jun 16, 2025
16cb56d
vector.py : mise dans l'ordre croissant des codes srs uniques des tables
fbacquelot Jun 16, 2025
65d2c5a
vector.py : rajouter l'instanciation des objets liés aux classes 'Vec…
fbacquelot Jun 16, 2025
41a970f
fichiers tests unitaires déplacés dans le sous-dossier 'unit_tests'
fbacquelot Jun 17, 2025
55c4d19
test_* : suppression de ces fichiers de tests unitaires car ils ont é…
fbacquelot Jun 17, 2025
a715dff
__init__.py & test_*.py : déplacement au bon endroit des tests unitaires
fbacquelot Jun 17, 2025
5f030d3
vector.py : mise à jour des classes et des méthodes associées
fbacquelot Jun 17, 2025
3745de0
suppression des fichiers car ils ont été déplacés dans le bon dossier
fbacquelot Jun 17, 2025
320e6bd
test_vector.py : ajout commentaire dans la docstring
fbacquelot Jun 17, 2025
fadf4f6
vector.py : ajout de la méthode 'get_data_str' de 'rok4.storage'
fbacquelot Jun 18, 2025
77cc3fe
test_vector.py : ajout des tests unitaires si les fichiers de données…
fbacquelot Jun 18, 2025
267be42
vector.py : chargement des données vecteur => construction des classe…
fbacquelot Jun 19, 2025
c602cf2
test_vector.py : suppression de tests inutiles
fbacquelot Jun 19, 2025
532a39d
test_vector.py : ajout de test pour tester que vector.from_file() ren…
fbacquelot Jun 19, 2025
54899c4
test_vector.py : esthétique
fbacquelot Jun 19, 2025
da2cbaf
vector.py : construction du jeu de données vecteur à partir du descri…
fbacquelot Jun 19, 2025
2e1e78e
vector.py & test_vector.py : couverture des tests passée à 63% reste …
fbacquelot Jun 19, 2025
43539c2
vector.py : revue du typage de tables
fbacquelot Jun 25, 2025
20380bd
test_vector.py : ajout des tests unitaires pour les méthodes 'from_fi…
fbacquelot Jun 25, 2025
cb326b7
vector.py & test_vector.py : manque quelques tests + couverture des t…
fbacquelot Jun 26, 2025
f4449b5
test_vector.py : quelques petites corrections dans le test 'test_vect…
fbacquelot Jun 26, 2025
acbacd2
test_vector.py : correction des tests de la classe 'VectorSet()' pou…
fbacquelot Jul 2, 2025
c898d45
rok4 : suppression dossier 'rok4' de l'environnement virtuel
fbacquelot Jul 7, 2025
2556195
test_vector.py : ajout de quelques tests d'intégration dans la foncti…
fbacquelot Jul 7, 2025
1798cbe
test_vector.py : insertion d'une en-tête au programme de tests et d'u…
fbacquelot Jul 7, 2025
b1aee5b
test_vector.py : ajout de la docstring aux deux fonctions suivantes d…
fbacquelot Jul 7, 2025
c044fac
test_vector.py : ajout de la docstring manquante dans les fonctions d…
fbacquelot Jul 8, 2025
3dffdd6
test_vector.py : esthétique => mise sur plusieurs lignes du contexte …
fbacquelot Jul 8, 2025
a3e03be
vector.py : première version suite issues #97 "Module de chargement d…
fbacquelot Jul 28, 2025
a450b26
filelist.txt : nouveau jeu de données d'entrées
fbacquelot Jul 28, 2025
a209d2e
[pre-commit.ci] Corrections automatiques appliquées par les git hooks.
pre-commit-ci[bot] Jul 29, 2025
86d485d
test_vector.py : tests à revoir car le code a été remis à plat suite …
fbacquelot Jul 29, 2025
8dc8267
Merge branch 'feature/vectorsets' of github.com:rok4/core-python into…
fbacquelot Jul 29, 2025
7aef72d
vector.py: première version cf : issues #97 suite nouvelle implémenta…
fbacquelot Jul 31, 2025
0238350
test_vector.py: première version => tests non encore réalisés cf : is…
fbacquelot Jul 31, 2025
6a91032
feat(dossier rok4/tests) car inutiles
fbacquelot Jul 31, 2025
294cfdf
vector.py: première version cf : issues #97 suite nouvelle implémenta…
fbacquelot Jul 31, 2025
d8d2a6b
test_vector.py: première version => tests non encore réalisés cf : is…
fbacquelot Jul 31, 2025
23809d5
Merge branch 'feature/vectorsets_stashed_commits' of github.com:rok4/…
fbacquelot Jul 31, 2025
f9e6a9d
test_vector.py: première version => tests non encore réalisés cf : is…
fbacquelot Jul 31, 2025
ccca42d
vector.py : typage + docstring
fbacquelot Jul 31, 2025
ad7606f
.vector.py : première version cf: issues #97 & test_vector.py: premiè…
fbacquelot Jul 31, 2025
84efc7e
Merge branch 'feature/vectorsets' of github.com:rok4/core-python into…
fbacquelot Jul 31, 2025
d66707a
[pre-commit.ci] Corrections automatiques appliquées par les git hooks.
pre-commit-ci[bot] Jul 31, 2025
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
984 changes: 811 additions & 173 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 removed tests/fixtures/ARRONDISSEMENT.dbf
Binary file not shown.
1 change: 0 additions & 1 deletion tests/fixtures/ARRONDISSEMENT.prj

This file was deleted.

Binary file removed tests/fixtures/ARRONDISSEMENT.shp
Binary file not shown.
Binary file removed tests/fixtures/ARRONDISSEMENT.shx
Binary file not shown.
Binary file added tests/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 number Diff line number Diff 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 added tests/fixtures/TM_WORLD_BORDERS-0.3.shp
Binary file not shown.
Binary file added tests/fixtures/TM_WORLD_BORDERS-0.3.shx
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/fixtures/filelist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tests/fixtures/states.geojson
tests/fixtures/martinique.gpkg
tests/fixtures/TM_WORLD_BORDERS-0.3.shp
Binary file added tests/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 removed tests/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 number Diff line number Diff 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