Giter VIP home page Giter VIP logo

Comments (2)

olt avatar olt commented on June 1, 2024

MapProxy transforms the BBOX as a polygon of 16 points. Transforming only the min and max points from 4326 to 32644 is not sufficient, since the lower-right point is lower then the lower-left point after transformation and points in between are even lower.

In [2]: SRS(4326).transform_to(SRS(32644), [71, 50])
Out[2]: (-216025.31786614168, 5586720.844934666)

In [3]: SRS(4326).transform_to(SRS(32644), [87, 50])
Out[3]: (929865.50242276, 5555901.55421828)

In [4]: SRS(4326).transform_bbox_to(SRS(32644), [71,50,87,54], with_points=4)
Out[4]: (-216025.31786614168, 5555901.55421828, 929865.50242276, 6029925.906709535)

In [5]: SRS(4326).transform_bbox_to(SRS(32644), [71,50,87,54], with_points=16)
Out[5]: (-216025.31786614168, 5540547.369936054, 929865.50242276, 6029925.906709535)

from mapproxy.

drnextgis avatar drnextgis commented on June 1, 2024

@olt, thanks for response. I guess this feature should be reflected in MapProxy docs.

from mapproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.