Merge branch 'change_in_geopandas_importer' into 'master'

Temporary fixed in geopandas importer

See merge request Guille/hub!35
This commit is contained in:
Guillermo Gutierrez Morote 2022-11-21 16:36:10 +00:00
commit e68830a16b
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class GeometryFactory:
"""
GeometryFactory class
"""
def __init__(self, file_type, path=None, data_frame=None):
def __init__(self, file_type, path, data_frame=None):
self._file_type = '_' + file_type.lower()
self._path = path
self._data_frame = data_frame

View File

@ -36,7 +36,7 @@ class TestGeometryFactory(TestCase):
def _get_geojson(self, file):
file_path = (self._example_path / file).resolve()
self._city = GeometryFactory('gpandas', file_path).city_debug
self._city = GeometryFactory('gpandas', path=file_path).city
self.assertIsNotNone(self._city, 'city is none')
return self._city

View File

@ -10,7 +10,7 @@
},
"properties": {
"geom": {"type": "Polygon", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG::4326"}}, "coordinates": [[[3849322.0855625975, 6060583.24800576], [3849326.3956304314, 6060584.796717078], [3849327.0180495544, 6060583.089519385], [3849333.725799462, 6060585.837955164], [3849328.71788522, 6060598.03498192], [3849317.850609142, 6060593.57976506], [3849322.0855625975, 6060583.24800576]]]},
"height_mean": 13.0790429485,
"height": 13.0790429485,
"year_built": 2000
}
}