Closed ridoo closed 1 year ago
Ok, here are my findings so far:
cpg
nor cst
extension is a supported co-file for shapefile import handler and the export was not default-encoded properly (here is a bit more history context on this). This error is not raised to the UI and I had to debug to find out. cpg
to the allowed optional extensions of the shapefile handler and then I get the error from geoserver as noted above The whole stacktrace:
19 Sep 07:37:48 WARN [org.geoserver] - Error decode epsg code: EPSG:6258
org.opengis.referencing.NoSuchIdentifierException: No transform for classification "Colombia Urban".
at org.geotools.referencing.operation.DefaultMathTransformFactory.lambda$getProvider$1(DefaultMathTransformFactory.java:267)
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
... [cut for brevity]
Caused by: org.opengis.referencing.NoSuchIdentifierException: No transform for classification "Colombia Urban".
at org.geotools.referencing.operation.DefaultMathTransformFactory.lambda$getProvider$1(DefaultMathTransformFactory.java:267)
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
It seems that GeoServer gets confused with EPSG:6258 and EPSG:6258 (Datum)!
@gannebamm Could you please check the data if the mis-configuration comes directly from wrong metadata. I would have to understand this a bit better before filing a GeoServer issue
Some more info for this particular dataset. The PRJ states:
GEOGCS["ETRS89",
DATUM["European Terrestrial Reference System 1989",
SPHEROID["GRS 1980",
6378137.0,
298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0],
AUTHORITY["EPSG","6258"]],
PRIMEM["Greenwich",
0.0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",
0.017453292519943295],
AXIS["Geodetic longitude",
EAST],
AXIS["Geodetic latitude",
NORTH],
AUTHORITY["EPSG","4258"]]
So, the dataset itself is in EPSG:4258, and the other EPSGS are for the DATUM and PRIMEM, respectively. If downloaded as gpkg, this information is read adequately in QGIS. For some reason, our dev instance is not accepting it, though.
After reprojecting it to EPSG:25832, it will load correctly: wuchsbezirke_new_crs_25832.zip
I really wonder who came to the idea to point EPSG:6258
either to ETRS89 Datum and MAGNA-SIRGAS / Mitu urban grid.
However, to gain more knowledge on this, I asked the GeoServer community. Maybe I overlook something here.
Regarding to cpg
/cst
-files I created an issue at the geonode-importer and offered a PR.
After reprojecting it to EPSG:25832, it will load correctly: wuchsbezirke_new_crs_25832.zip
The reprojected zip gets uploaded without error. Thanks for testing.
@gannebamm Andrea Aime had a look at the issue I created, but says that GeoServer never resolves Datums. For now, I have no idea why the wrong CRS is picked from. The prj-file looks ok to me. However, as re-projecting the dataset worked out, I suggest to close this issue for now. If there are any more updates on the GeoServer issue, I will ping into here again
I tried to upload Wuchbezirke to GeoServer only (skipping GeoNode importer) and it worked out without any issue. Seems that I would have to dig deeper into the uploader code to isolate the actual problem.
@gannebamm @matthesrieke Feel free to re-open this issue if you would like me to investigate further on this.
Reported by @ahmdthr while uploading Wuchsbezirke 2011.
Failed with message
tuple.index(x): x not in tuple. Request: 75122b9b-2610-410e-bdaa-e638ba42b0e6
. Complete error response:Geoserver error log:
EDIT:
EPSG:6258 seems a bit weird for Wuchsbezirke dataset which is located in Germany.Note the difference between EPSG:6258 and EPSG:6258 (Datum)!However, I am sure I downloaded the dataset directly from Thuenen Atlas instance last year. Will have to further investigate tomorrow.