From CAD to DB

363 views
306 views

Published on

Slides from a Geocamp 2013 talk about what Geokettle is and how we used it to migrate data from AutoCAD to an Oracle database.

Original HTML slides at http://bit.ly/from-cad-to-db

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
363
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

From CAD to DB

  1. 1. From CAD to DBFOSS4G to the rescue!May 25th, , ÓbidosGeocamp 2013http://bit.ly/from-cad-to-db
  2. 2. Jorge SanzWorking atHacking at:yProdevelop@xurxosanzgvSIGOSGeo OSGeo-esGeoinquietos ValenciaOSM
  3. 3. AgendaThe world is complicatedOur use caseFirst part: AutoCADSecond part: GeoKettleConclusions
  4. 4. The world is complicatedOn harbours we have draughtsmen,surveyors, civil engineersHigh skills on technical drawings, surveying, etcAlmost 0 (zero) knowledge on GIS or databasesThey live inside AutoCAD
  5. 5. The world is complicated...but harbours want to use GIS to managetheir space (€€€)emergencies (real or simulated)industrial and environmental sensorsreal time moving elements
  6. 6. World is complicated...so they usually implement GIS at some leveland our loved draughtsman haveto load THEIR data into the GIS
  7. 7. One use caseWe have a space management applicationCartography is maintained in DWG formatWe have to load that datainto an Oracle databaseThe draughtsman has to be able to load it as hedoes changes on the cartography
  8. 8. RequirementsOn demand executionFrom AutoCAD (really, those guys live inside it)Some feedback of the processTolerant to messy drawings
  9. 9. Our last approachUse GeoKettle to migrate dataExecuted as an AutCAD tool
  10. 10. First part: AutoCAD
  11. 11. First part: AutoCAD
  12. 12. First part: AutoCAD1. Saves the drawing as a DXF2. Launches a GeoKettle Job3. Presents the results
  13. 13. Second part: GeoKettle
  14. 14. What is Kettle?ExtractionTransformationLoad
  15. 15. Bulding blocksStep: minimum element, a taskTransformation: chain of stepsJob: sequential execution and coordination ofjobs and trans.
  16. 16. Three user interfaces:Spoon: Graphical User InterfaceKitchen: CLI to execute jobsPan: CLI to execute transformationsCarte: web
  17. 17. Spoon: tranformation
  18. 18. Spoon: job
  19. 19. GeoKettleTechical fork of KettleJavaMultiplatformLGPLIntegrates: GDAL/OGR/...Uses JTS and GeoToolsSteps for GI: analysis, projections, OGC services,...
  20. 20. GeoKettle
  21. 21. Our process
  22. 22. Delete index
  23. 23. Delete index
  24. 24. Count geometries
  25. 25. Load DXF into Database
  26. 26. Get geometry type
  27. 27. Polygonize
  28. 28. Polygonize
  29. 29. Filter, refine and load
  30. 30. Count geometries after load
  31. 31. Finish the job
  32. 32. Finish the job 1/3Set the correct SRS
  33. 33. Finish the job 2/3Fix invalid geometries
  34. 34. Finish the job 3/3Create a new index
  35. 35. Present results
  36. 36. Et voilà!
  37. 37. RemarksGeoKettle is a powerful tool to manipulate dataIt is a specialized desktop GIS to automateprocesses that will be executed many timesIt is mainly focused on powers users withknowledge on SQL, JavaScript, OGR/GDAL,...
  38. 38. From CAD to DBThanks!!http://bit.ly/from-cad-to-db
  39. 39. Happy Towel Day!!!
  40. 40. References, now Pentaho Data Integrationat SpatialyticsKettleGeoKettle
  41. 41. Pictures, ,Draughtsman Genoa accident at The Telegraphstylish gifs from topito
  42. 42. This content is under alicense.Creative CommonsAttribution-NonCommercial-ShareAlike 3.0unported

×