Skip to content

Commit

Permalink
Quasi finalisation import contraintes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Sep 15, 2023
1 parent 6a58c00 commit dfd3d7b
Show file tree
Hide file tree
Showing 42 changed files with 5,048 additions and 134 deletions.
349 changes: 223 additions & 126 deletions netads/processing_netads/data/import_impacts.py

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions netads/processing_netads/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
from qgis.PyQt.QtGui import QIcon

from netads.processing_netads.data.import_communes import ImportCommunesAlg

# from netads.processing_netads.data.import_impacts import ImportImpactsAlg
# from netads.processing_netads.data.import_parcelles import ImportParcellesAlg
from netads.processing_netads.data.import_impacts import ImportImpactsAlg
from netads.processing_netads.data.import_parcelles import ImportParcellesAlg
from netads.processing_netads.data.load_layers import LoadLayersAlgorithm
from netads.processing_netads.database.create import CreateDatabaseStructure
from netads.processing_netads.database.upgrade import UpgradeDatabaseStructure
Expand All @@ -22,8 +21,8 @@ def loadAlgorithms(self):
self.addAlgorithm(UpgradeDatabaseStructure())
# Data
self.addAlgorithm(ImportCommunesAlg())
# self.addAlgorithm(ImportImpactsAlg())
# self.addAlgorithm(ImportParcellesAlg())
self.addAlgorithm(ImportImpactsAlg())
self.addAlgorithm(ImportParcellesAlg())
self.addAlgorithm(LoadLayersAlgorithm())

def id(self): # NOQA: A003
Expand Down
4 changes: 3 additions & 1 deletion netads/tests/base_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
QgsProviderRegistry,
)

from netads.processing_netads.provider import NetAdsProvider as ProcessingProvider
from netads.processing_netads.provider import (
NetAdsProvider as ProcessingProvider,
)
from netads.tests.base import BaseTestProcessing

__copyright__ = "Copyright 2023, 3Liz"
Expand Down
8 changes: 8 additions & 0 deletions netads/tests/fixtures/commune.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "FeatureCollection",
"name": "communes",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "name": "Albert", "insee": "80016" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 2.6, 50.05 ], [ 2.7, 50.05 ], [ 2.7, 50 ], [ 2.6, 50 ], [ 2.6, 50.05 ] ] ] ] } }
]
}
1 change: 1 addition & 0 deletions netads/tests/fixtures/plui/248000747_INFO_PCT_20201109.CPG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
1 change: 1 addition & 0 deletions netads/tests/fixtures/plui/248000747_INFO_PCT_20201109.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["false_easting",700000.0],PARAMETER["false_northing",6600000.0],PARAMETER["central_meridian",3.0],PARAMETER["standard_parallel_1",44.0],PARAMETER["standard_parallel_2",49.0],PARAMETER["latitude_of_origin",46.5],UNIT["Meter",1.0]]
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit dfd3d7b

Please sign in to comment.