Your SlideShare is downloading. ×
GRPUG Shapely Presentation by Ben DeMott
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

GRPUG Shapely Presentation by Ben DeMott

1,151
views

Published on

This is a fairly brief presentation on Shapely which is a Python library to help build programs that deal with geometry efficiently. In this presentation I also show how RTREE another python library …

This is a fairly brief presentation on Shapely which is a Python library to help build programs that deal with geometry efficiently. In this presentation I also show how RTREE another python library can be used with shapely to speed up searches when there are a large set of objects in the geometric scene.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,151
On Slideshare
0
From Embeds
0
Number of Embeds
18
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. About Me Blog ­ and where you can find the examples: http://bendemott.blogspot.com/ What is my job? Lead Developer at Riders Discount in Holland, MI Hobbies Python, OpenGL Games, Motorcycles    
  • 2. Python: Shapely and Matplotlib Dependencies Shapely RTREE (fast) Matplotlib    
  • 3. Dependencies Matplotlib ­ http://matplotlib.sourceforge.net/ Shapely ­ http://gispython.org/shapely/docs/1.2/  http://pypi.python.org/pypi/Shapely/1.2.4 RTREE ­ http://pypi.python.org/pypi/Rtree/    
  • 4. Install (Ubuntu) Shapely $ apt­get install python­shapely Matplotlib  $ apt­get install python­ matplotlib python­numpy RTREE – (compile from src – package is broken) $ sudo apt­get install   libspatialindex­dev  libspatialindex­1    
  • 5. Shapely Shape­Objects   
  • 6. Visualizing Objects line string   
  • 7. Visualizing Objects linear ring   
  • 8. Visualizing Objects   
  • 9. Visualizing Objects   
  • 10. Visualizing Objects   
  • 11. Visualizing Objects  Polgyons   
  • 12. Visualizing Objects unions   
  • 13. Shapely Object Properties shapely_properties.py   
  • 14. Shapely Boolean Operations   
  • 15. Additional Booleans   
  • 16. Shapely Geometric Operations    
  • 17. RTREE Introduction RTree Searches and Stores Bounding­Boxes  Capable of 3­dimensional Indexes All objects placed into the index are identified by a  ”name” Good for fast bounding box searches, and finding  nearest neighbor    
  • 18. RTREE Search rtree_area_example.py   
  • 19. Matplotlib Introduction Uses specific modules to plot various types of  charts and graphs Confusing Class Structure You can plot just about anything you can dream up Not very efficient, but can output real­time    
  • 20. Styles Styles are represented by strings  r red line, g green line, y yellow line  ro red dots as markers, r. smaller red dots, r+ red  pluses  r­­ red dashed line, g^ green triangles, bs blue  squares  rp red pentagons, r1, r2, r3, r4     
  • 21. Pretty Pictures (ooo aaaa)   
  • 22. Pretty Pictures (ooo aaaa)   
  • 23. Pretty Pictures (ooo aaaa)   
  • 24. Pretty Pictures (ooo aaaa)   
  • 25. Basic Plotting Example rtree_area_example.py   
  • 26. Results   
  • 27. Radius Search Plot shapely_radius_plot.py   
  • 28. Results   
  • 29. Dijkstra Plot   
  • 30. Intersection   

×