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.

Interoperability with shapely affinity module

See original GitHub issue

Shapely’s affinity module expects a tuple with the (a, b, d, e, xoff, yoff) order. I suggest adding a method to the Affine class to improve interoperability with shapely. Let me know if that’s an interesting proposal and I’ll send a PR.

Loïc

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mwtoewscommented, Nov 12, 2019

I’d still prefer to_shapely to keep the term simple and within the Python realm of things. (Also, the ST_ prefix used by PostGIS generally means “spatial type”, in case anyone is curious).

0reactions
jtbakercommented, May 10, 2020

Thanks for following up, @mwtoews!

I should have looked a little closer at the source here in the repo - I just sort of assumed since the method wasn’t showing up in my fresh pip install, and this issue was still open that it wasn’t in yet.

I’ll just install from source here on git for the time being. Thanks for your work on this useful package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interoperability with shapely affinity module · Issue #51 - GitHub
Shapely's affinity module expects a tuple with the (a, b, d, e, xoff, yoff) order. I suggest adding a method to the Affine...
Read more >
The Shapely User Manual — Shapely 2.0.0 documentation
affinity module, which return transformed geometries by either directly supplying coefficients to an affine transformation matrix, or by using a specific, named ...
Read more >
Shapely Documentation - Read the Docs
Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. It is using.
Read more >
shapely 1.4.3 - PyPI
Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. It is based on the widely deployed GEOS (the...
Read more >
Python, shapely library: is it possible to do an affine operation ...
Shapely's affinity module supports affine transformations on any geometry, for example: from shapely import affinity from shapely.geometry ...
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