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.

Does to_wkt use PROJ version to determine WKT version to use?

See original GitHub issue

I’m in the process of converting the pyresample project to use WKT internally by calling CRS.to_wkt(). We’ve had issues in the past with other projects where we would pass pyproj.CRS.to_wkt() to rasterio’s CRS object. Rasterio seemed to depend on the version of GDAL installed (GDAL 3 -> WKT2 supported, otherwise WKT1). So I’m wondering, does pyproj’s support of WKT2 depend on the version of PROJ? Is there ever a chance for a user to install current pyproj with an old-ish PROJ and get errors when to_wkt tries to convert to WKT2?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
djhoesecommented, Apr 16, 2020

Great.pyproj >= 2.3 is probably what pyresample will require so this looks good. Thanks again.

0reactions
snowman2commented, Apr 16, 2020

Is it coded in pyproj or does it come from PROJ?

It comes from PROJ

Does the minimum version of PROJ required by pyproj support WKT2 so this could never happen?

Correct

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understand EPSG, WKT and Other CRS Definition Styles
Using the PROJ.4 syntax, you specify the complete set of parameters including the ellipse, datum, projection units and projection definition ...
Read more >
OGC WKT Coordinate System Issues — GDAL documentation
PostGIS - Keeps WKT in the spatial_ref_sys table, but it is up to clients to translate to PROJ.4 format for actual use. I...
Read more >
CRS - pyproj 3.5.0.dev0 documentation - GitHub Pages
A pythonic Coordinate Reference System manager. New in version 2.0.0. See: proj_create(). The functionality is based on other fantastic projects:.
Read more >
FAQ — PROJ 9.1.1 documentation
How do I calculate distances/directions on the surface of the earth? What is the best format for describing coordinate reference systems? Which CRS...
Read more >
Switch from PROJ.4 format to WKT format for CRS
As a result I have to try and determine the epsg number and use ... to WKT as a canonical representation (as in...
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