locationtech / geotrellis

GeoTrellis is a geographic data processing engine for high performance applications.
http://geotrellis.io
Other
1.34k stars 360 forks source link

There seems to be a bug in crs #3501

Closed yang162132 closed 1 year ago

yang162132 commented 1 year ago

image I create a gt catalog for tiff with crs(EPSG:4490), but when I read it by GeoTrellisRasterSource,it seem in crs(EPSG:4019)

4823427410e71aa4b3e65ff38f45a1c
yang162132 commented 1 year ago

I Guess by the metada.json only save proj4 for crs

a1ef3ab20f55defa6444341c3836b1f

EPSG:4019 and EPSG:4490 hava the same proj.4 string

yang162132 commented 1 year ago

image image

pomadchin commented 1 year ago

Hello @yang162132, unfortunately it is not really a bug, but a feature. There is not much we can do when rely on proj4 strings. The right solution is most likely to use WKT2 CRS representation, but that's a significant separate chunk of work.

yang162132 commented 1 year ago

你好@yang162132,不幸的是,它并不是真正的错误,而是一个功能。当依赖 proj4 字符串时,我们无能为力。正确的解决方案最有可能使用 WKT2 CRS 表示,但这是一项重要的独立工作。 By the way, when I ditched EPSG:4490 and switched to EPSG:4326, another problem occurred, Imatadate.json "extent":{"xmin":104.26474802744501,"ymin":35.21886419452063,"xmax":107.71963960409457,"ymax":39.401297179680384} and "bounds":{"minKey":{"col":808,"row":287},"maxKey":{"col":818,"row":311}}} image image The extents and bounds doesn't seem to conform

pomadchin commented 1 year ago

Hey @yang162132, I don't think I was able to understand your message properly, but these two different projections may mean different transformations. Unfortunately due to their proj4 string representation and the fact GT relies on it makes it impossible to differentiate between projections for the reader.

yang162132 commented 1 year ago

@pomadchin
I don't mean that, I have given up using EPSG:4490, just press the normal WGS84, but the position of the TMS image is still abnormal

pomadchin commented 1 year ago

@yang162132 could you make a separate issue with a more detailed descirption?

The input, transformation, and the expected vs actual results?