question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow Non-Earth Coordinates System

See original GitHub issue

While testing TiTiler with an S3 hosted COG and I am running into some (not unexpected) issues with the fact that the data are of another body (Europa in this case. Also tested Mars).

I am seeing the following error when attempting to hit the /cog/bounds endpoint.

File "rasterio/_err.pyx", line 215, in rasterio._err.exc_wrap_pointer
rasterio._err.CPLE_NotSupportedError: Cannot find coordinate operations from 'PROJCRS["Equirectangular EUROPA",BASEGEOGCRS["GCS_EUROPA",DATUM["D_EUROPA",ELLIPSOID["EUROPA_localRadius",1560800,0,LENGTHUNIT["metre",1,ID["EPSG",9001]]]],PRIMEM["Reference_Meridian",0,ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]],CONVERSION["unnamed",METHOD["Equidistant Cylindrical (Spherical)",ID["EPSG",1029]],PARAMETER["Latitude of 1st standard parallel",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",180,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]' to 'EPSG:4326'

Speaking with the devs over on that project it sounds like this could be an issues with how the bounds are being computed. The morecantile project pulls a transformation object from pyproj. I wonder if a similar solution might be viable here so that the coordinate transformation can be generated?

Also, here is the direct link to the data if anyone is interested! https://asc-jupiter.s3-us-west-2.amazonaws.com/europa/galileo_voyager/controlled_mosaics/11ESCOLORS01-02_GalileoSSI_Equi-cog.tif

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentsaragocommented, Sep 29, 2021

FYI, for now rio-tiler will still error on non-earth images. I hope to finish my work over #429 later today.

1reaction
jlauracommented, Sep 29, 2021

@vincentsarago Awesome! Looks like I need to use the docs here - using a custom tms with the example that you used above and I should be good to go.

I’ll give that a look this evening (UTC-7) and report back on the discussion over on TiTiler.

Much appreciate the information and rapid assist!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-Earth System in QGIS? - GIS Stack Exchange
I work with the same kind of things all the time and the way I do it is create a custom projection. Go...
Read more >
Converting a map in non-earth projection to a real-world ...
Open 'MIF A' via notepad, and paste the line from 'MIF B' into the corresponding location. Screenshot below illustrates this.
Read more >
Non-Earth - Bentley - Product Documentation
This coordinate system can be defined to allow you to manipulate data without possible loss of precision due to transform to/from lat/long coordinates....
Read more >
Specify a coordinate system—ArcGIS Pro | Documentation
Specify the coordinate systems of maps and scenes ... On the Map Properties dialog box, click the Coordinate Systems tab. The buttons below...
Read more >
8. Coordinate Reference Systems - QGIS Documentation
Start QGIS · In Project ▻ Properties… ▻ CRS check No projection (or unknown/non-Earth projection) · Load two layers of the same area...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found