-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add handling of AOI as computational region, GRASS map or GeoJSON #3
Comments
What about using GRASS raster or vector maps as aoi too? |
I think the way to do that would be to:
I don't think that is really clean, but I couldn't find a way to reproject the Vector in Python on the go... Can you refere me to any references, if any, that could help reach a cleaner approach, or if this is good enough I will implement it... |
I would use something along these lines: It adds GDAL (osr/ogr) as an external dependency, but that should be OK. |
Thanks. I have been trying to use it, but there is some trouble because Shapely uses (longitude, latitude), while GDAL uses (latitude, longitude)... We could easily convert one to the other, but the problem is that when I try to reproject a vector from EPSG:4326 to EPSG:3358, I do have to convert the shapely object from (longitude, latitude) to (latitude, longitude), but when I try to reproject the other way around (from EPSG:3358 to EPSG:4326), I don't need to.... So apart from this case, I think that there might be other edge cases, that might cause other problems... (Also there is some slight errors with the coordinates, but I think it just a precision problem). Also, I am still not sure why I don't need to convert the coordinates order, when converting from EPSG:3358 to EPSG:4326. What about we use a similar implementation like in i.sentinel.download. Or if this doesn't have a major drawbacks?
|
Implemented it in a very similar way to i.sentinel.download method. OSGeo#1097 |
@ninsbl Regarding the GeoJSON file support, during the last meeting we discussed that if a user have a GeoJSON file, it can first be imported as a vector map, and that vector map could then be used to get the AOI, and so that would be a way to use GeoJSON indirectly. |
Closing this issue. |
Note that the code is not tested...
The text was updated successfully, but these errors were encountered: