-
Notifications
You must be signed in to change notification settings - Fork 110
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
Added tutorial for Delaunay triangulation #67
base: main
Are you sure you want to change the base?
Conversation
@inomag can you remove the Code of conduct from this PR? |
You also need to install |
@MridulS Thanks. On it. |
I cancelled the checks as it looks like there are some dependencies not available as a wheel and github actions were trying to compile and build them. But you can look at the output https://output.circle-artifacts.com/output/job/2ce60e89-c068-41aa-902e-6f19ac0ce7b4/artifacts/0/site/_build/html/content/geospatial/delaunay/index.html |
Thanks @MridulS - I think we should take a closer look at the dependencies because IME depending on unsupported/poorly maintained dependencies for tutorials is a real nightmare. I haven't had time to look into the details, but in this case is there a reason not to use |
Yeah we should try not to depend on so many things in this repo. There is something GDAL like hanging around in the GitHub actions logs and well I want to be sane right now so will have a look later 😅 |
Yes @rossbar, using |
Of course, sorry for the silly question. Generally I would prefer scipy over other libraries, but if the whole point of the example is to demonstrate |
Also, regarding the unsuccessful builds, do you have any suggestions what changes should I make? |
There's nothing to be done in the short term - the builds are failing because some of the dependencies (I didn't bother to check which exactly) don't provide wheels for Python 3.10. This means that to use those libraries, they have to be build from source in CI, which may a) require additional custom setup in the CI scripts and b) take a long time. In a perfect world, we would limit dependencies to those that are reliably maintained and provide wheels for the latest Python on all major platforms. We'll need to have a larger discussion at some point about the maintainability of the examples. |
Ok thanks. For now, build is successful. Also, I am interested in applying for GSOC in |
Feel free to mention that :) but these aren't necessarily a technical problem. It's more about creating policies around when and where to stop adding more dependencies! |
Yes, its not an issue. Instead, we need to check the dependencies we are about to include in the requirements. Though I have mentioned it in my proposal, its more of a sleuthing task while creating the notebook. |
|
||
### Voronoi Frames with Real World Dataset | ||
|
||
This example shows how to build a delaunay graph (plus its dual, the set of Voronoi polygons) from a set of points. For this, we will use the dataset of train stations in Singapore. The methods shown here can also work directly with polygonal data using their centroids as representative points. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@inomag where is this dataset from? Can you add a link?
Added a tutorial for delaunay triangulation and generating voronoi frames using PySAL library. I had earlier proposed creating notebooks for all algorithms mentioned in Geo spatial Examples in Gallery section. Therefore, submitting this notebook for any suggestions and corrections.
Video Link
@rossbar @MridulS @dschult