-
Notifications
You must be signed in to change notification settings - Fork 34
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
Intersect between SpatialLines and AbstractRaster
#233
Comments
Can you explain a little more what you mean? Its not something I've done. Give me an example of the data you have and what the result should be. |
Taking geopotential height as example: The Input:
The expected Output:
Do you have any suggestion how to implement this function, and which package or which function should be used? |
Im just working on line clipping and distance from a line literally right now. So Rasters.jl should be able to do that in a few weeks... If you want to write the distance from a line algorithm that would be a huge help. I already have a PR mostly done for pixels that overlap a line. GeoInterface.jl for lines, and maybe NearestNeighbors.jl ? |
To further clarify, is your line 2d or 3d? |
It is a really good news. I'd like to involve in. Could you tell me where is the function working in process? |
Great! Be good to have some help. Its a work in progress, on my my There is a basic but fast 2d line drawing algorithm here, like a graphics method where we just take the angle of the line and bump x/y int counters along it to burn the line into the raster: https://github.com/rafaqz/Rasters.jl/blob/methods_cleanup/src/polygon_ops.jl#L156-L208 That's what will be used to |
dear @rafaqz and @kongdd, |
Hey thanks! but there's a lot of code in that file... could you link the specific lines? |
not simple with my old phone now..., i'll be back tomorrow, bye |
after some commits (@DavideFavaro) I found the function bouncing from noise pollution to light pollution here: https://github.com/DavideFavaro/Tirocinio/blob/be1c5c2fd79fe9bc15f28cfa363389d7860cf645/Porting/Porting%20Envifate/Envifate/src/Tools/do_light.jl#L403, but the profiles and distances sections start here (we deliberately neglected to rasterize the segments, because in our case study we intend to use this also for the comparison between segments and vectors, for example to verify the attenuation of the sound intensity with respect to different land uses): https://github.com/DavideFavaro/Tirocinio/blob/be1c5c2fd79fe9bc15f28cfa363389d7860cf645/Porting/Porting%20Envifate/Envifate/src/Tools/Noise.jl#L751 |
Dear @rafaqz
Any idea how to calculate the intersection between SpatialLines and
AbstractRaster
?It is valuable for cross section analysis, e.g., https://unidata.github.io/MetPy/latest/examples/cross_section.html.
Regards.
The text was updated successfully, but these errors were encountered: