Skip to content

Commit

Permalink
remove arbitrary SRID from local crawlers
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Dec 15, 2023
1 parent bda783d commit 0e7d299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geospaas_harvesting/providers/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def get_normalized_attributes(self, dataset_info, **kwargs):
# Find coverage to set number of points in the geolocation
if nansat_object.vrt.dataset.GetGCPs():
nansat_object.reproject_gcps()
normalized_attributes['location_geometry'] = shapely.set_srid(shapely.from_wkt(
nansat_object.get_border_wkt(n_points=n_points)), 4326)
normalized_attributes['location_geometry'] = shapely.from_wkt(
nansat_object.get_border_wkt(n_points=n_points))

json_dumped_dataset_parameters = n_metadata.get('dataset_parameters', None)
if json_dumped_dataset_parameters:
Expand Down Expand Up @@ -185,7 +185,7 @@ def _get_geometry_wkt(self, dataset):
flags=['buffered']))
else:
raise ValueError("Could not determine the spatial coverage")
geometry = shapely.set_srid(MultiPoint(points).convex_hull, 4326)
geometry = MultiPoint(points).convex_hull
return geometry.wkt

def _get_raw_attributes(self, dataset_path):
Expand Down

0 comments on commit 0e7d299

Please sign in to comment.