-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django raster for panorama view of big images #48
Comments
Since your image is not a GEO-Tiff file, probably it does not contain a proper projection definition. For django-raster to work, the input files need to be GeoTiff files or similar, which have a projection stored internally or as a metadata file that comes with the geographical image. But maybe you don't need to tile your image in the first place. If the image is not too large, you could try the following directly in Leaflet, without tiling the image first: https://leafletjs.com/examples/crs-simple/crs-simple.html If your image is too big and that does not work for you, you could try to assign coordinates to the file. Maybe https://gdal.org/programs/gdal_edit.html could work for you. You can simply choose any bounding box in a projection of your choice and assign that to the file. If you do this right, django-raster should be able to parse it. |
Thanks for your response, @yellowcap!
I successfully added a
Unfortunately, I'm unable to view anything with leaflet. It just outputs an empty screen. It seems to be a problem in the raster serving layer. I've opened a random tile and it has:
I picked my |
@yellowcap it'll be very helpful if you send an example/tutorial with processing a raster file with django-raster and opening it in the leaflet (or any map viewer). Thank you! |
I'm trying to implement panoramic view of big images (not geo-related).
This is an example of what I would like to do: http://www.precipoint.com/o8-oil-microscope-scanner/
From the example above I see that they use leaflet.js and images with
.gtif
format.It seems that all of the machinery from
django-raster
could be reused.The first question: is it the right choice to use django raster for this?
The second question. When uploading an image via the admin website (I set up srid to 3857), the following exception occurs:
Before that I usually see:
And after the server returns 500 I see sometimes (probably, because the directory is deleted):
How to overcome that?
The text was updated successfully, but these errors were encountered: