2

I have an image that is a satellite picture, and with php gd I want to distort it so I can overlay it on a leaflet.js map. To make it a bit more simple, I have a grid of points, 16x16 which bind the image to the coordinates, like I chopped the image to 256 pieces and found appropriate coordinates for corners of each of those pieces.

It's tedious and inefficient to draw 256 pieces simultaneously, hence I'd like to process the image on the server-side. Is it even possible to do it with just PHP's GD library or is it necessary to reinforce the arsenal? The projection I'm using (and would like to stick with) is standard leaflet.js EPSG:3857. How do I even start about such a task ?

1 Answer 1

2

You would need to georeference (that's the term) image with QGIS. See my answer to this question for tutorial links.

2
  • I guess I'll have to learn more about QGIS then, I'll try that and approve Your answer when I succeed, allright ? Oh, and thanks by the way :) Sep 8, 2014 at 9:28
  • OK, from what I gather QGIS is a standalone software, used by a human. What I need to do is to build a script that will do georeferencing on the server-side on its own, based on known data, on the fly. Sep 8, 2014 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.