Closed aashish24 closed 6 years ago
dear @pvskarthikeya not in pure client-side code, but if you are willing to use python code, we have some examples. @jbeezley do we have any small-code example?
There are two components to this:
@pvskarthikeya another option I want to mention is that if you have a geotiff, its very easy to run sample app from here (https://github.com/OpenGeoscience/ktile) that servers geotiff as tiles. Look at the example here: https://github.com/OpenGeoscience/KTile/tree/master/examples/geotiff
Okay. @aashish24. Sorry If I get this wrong. I have never worked with GeoTIFF format. So, here my task is to write a Python Script to serve that image as a png or jpg mapped on top of a map using the coordinates from the image. I have never done this kind of work before. So do you think, I can still so this?
@pvskarthikeya yes if you know python then we can help. Just look at this code here: https://github.com/OpenGeoscience/KTile/blob/master/examples/geotiff/server.py
If you can install ktile and have the examples working, then I can help with the next step.
@aashish24 Yup. Was able to run the example. http://localhost:8080/geotiff/0/0/0.png
shows the following image. Dont know if this is the expected output.
@pvskarthikeya seems okay was the image white? Once you have this up and running you can point geojs to use the base URL for the layer
@aashish24 HI! yes it was white. Sorry could not reply earlier. I will try to figure this out as soon as possible. Thank you.
@pvskarthikeya are you still interested in finishing this? Thanks
This was added to the Girder large_image plugin via https://github.com/girder/large_image/pull/237. See the geojs viewer in large_image for the implementation.
Hey! Is this still available. Can I do it?