r-geoflow / geoflow

Tools to Orchestrate Geospatial (Meta)Data Management Workflows and Manage FAIR Services
https://github.com/r-geoflow/geoflow/wiki
Other
41 stars 14 forks source link

GeographicBoundingBox needs to be converted to WGS 84 (EPSG:4326) when projected in other SRS #282

Closed eblondel closed 1 year ago

eblondel commented 1 year ago

The GMD schema restrains the EX_GeographicBoundingBox element to be specified in WGS 84. The spatial bounding box, defined from the geoflow SpatialCoverage should be converted to WGS 84 (EPSG:4326) if defined in another SRS.

eblondel commented 1 year ago

@juliepierson @mrouan @wheintz i've imlemented a converter for bbox when this one is not in WGS 84 (EPSG:4326). Can you test it?

juliepierson commented 1 year ago

Works ok for us !

eblondel commented 1 year ago

Cool!

juliepierson commented 1 year ago

Hi @blondel, not sure if this is related but I'm trying to import a geotiff in EPSG:2154, I get this message in geoserver when I try to visualize it : The request bounding box has zero area: SRSEnvelope[0.0 : 0.0, 0.0 : 0.0]

In XML, native bb and latlon bb are empty : `

0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ` Also, despite having 5 bands, the geotiff is not imported as a coverage view. Sorry if this is in the wrong place, but maybe it is related !
eblondel commented 1 year ago

Can you send me the geotiff?

juliepierson commented 1 year ago

Thanks, I'll send you a link via email.

eblondel commented 1 year ago

i've pushed some tentative fix. Let me know

juliepierson commented 1 year ago

Thanks, will try it on monday morning ! Have a nice weekend

juliepierson commented 1 year ago

Just tried, I get this error : Error in if (self$srid != 4326) { : l'argument est de longueur nulle Erreur dans withVisible(...elt(i)) : Workflow failed during execution, check logs at: /home/pierson/Travail/projets/indigeo/import_avec_r/geoflow/jobs/20230116092320/job-logs.txt

And here are the last lines of the log file : [geoflow][workflow-maraisbreton][INFO] sourceZip = FALSE: source files will be uploaded [geoflow][workflow-maraisbreton][INFO] Read GeoTIFF '/home/pierson/Travail/projets/indigeo/import_avec_r/geoflow/jobs/20230116092320/entities/tempid2/data/2022-06-13_MaraisBreton_MS.tif' [geoflow][workflow-maraisbreton][INFO] Overwriting entity bounding box with Geotiff bounding box [geoflow][workflow-maraisbreton][INFO] Reset Geoserver API manager [geoflow][workflow-maraisbreton][INFO] Reset Geonetwork API manager [geoflow][workflow-maraisbreton][INFO] Reset CSW client

eblondel commented 1 year ago

do you have a srid set initially in your table (SpatialCoverage)?

juliepierson commented 1 year ago

No, do you want me to test with that ? like srid:2154 ?

eblondel commented 1 year ago

yes please, just to test if the rest works.

juliepierson commented 1 year ago

It works ! Thanks !

eblondel commented 1 year ago

Great, thanks for your feedback :-)