Wooshum Posted February 7, 2017 Share Posted February 7, 2017 (edited) Hi All, If you need to work with Geo-Spatial data on a regular basis like I do, you might be interested in the GeoJSON Importer (SOP HDA) that I have started developing. You can grab it from here: https://github.com/danleesmith/HOU_GeoTools Some basic Info on the Importer: Houdini Geographic Tools Custom Python GeoJSON importer Digital Asset for Houdini (HDA). This importer reads GeoJSON files only. GeoJSON is quickly becoming the standard geo-spatial interchange format and can store point, line and polygonal features with associated attributes. The GeoJSON standard can be found here: http://geojson.org/ Limitations This importer only works with projected coordinate systems. An explanation of the difference between projected and geographic coordinate systems can be found here: http://tech.ced.uga.edu/kb/articles/difference-beteween-projected-and-geographic-coordinate-system The importer also requires that any NULL or EMPTY attributes, which are allowable in many GIS systems, are mapped to -9999. This will ensure that when the attributes are written in Houdini they can be stored as either 0 for numbers and '' for strings. NOTE: Polygon/Primitive Holes (known as donuts in GIS) have not been implemented in the importer at this stage. Data Prep To prepare you data and convert your spatial files to GeoJSON I recommend using QGIS: http://www.qgis.org/en/site/ OR if you can get your hands on a licence give FME a go: http://www.safe.com/ Usage This HDA is a SOP based asset. 'GeoJSON File channel' is used to point to the desired GeoJSON File for importing. If you want to import many GeoJSON files in the right location relative to each other just drop down a new Import GeoJSON node, toggle on 'Use Reference Features' and point the 'Reference Features' channel to the desired Import GeoJSON node. The attached images show the Importer in action. I hope you find this useful and please send through any suggestions you have! Edited February 7, 2017 by Wooshum 3 Quote Link to comment Share on other sites More sharing options...
jordibares Posted March 5, 2017 Share Posted March 5, 2017 (edited) Very generous of you... looks great and knowing how obscure and convoluted GIS is this surely wlll be a great asset. Thanks... I hope I have a bit of time to play with geospatial data soon. Any resource you recommend to get some sample data? thanks Edited March 5, 2017 by jordibares Quote Link to comment Share on other sites More sharing options...
smoluck Posted January 29, 2021 Share Posted January 29, 2021 Hi Wooshum. It seems you've removed that HDA prroject from the links you've shared. I'm looking for those for one research project. Can you PM me in order to get it back please. Have a nice day. Quote Link to comment Share on other sites More sharing options...
Wooshum Posted January 31, 2021 Author Share Posted January 31, 2021 A note to all, the original GitHub repo has been removed due to inactivity. I have dumped the underlying python import script into a GIST here: https://gist.github.com/danleesmith/8a7d5b07f604c471f02d24ae51ed97ea From a production point of view I moved to using a custom transformer in FME that writes out the geometry and attributes to a Houdini .geo file directly. The benefit of this process is that FME can ingest pretty much any GIS format (and more). This simplifies the process on the Houdini end. You can check this out here: https://github.com/danleesmith/fmehougeo Quote Link to comment Share on other sites More sharing options...
ArtHoudini Posted September 17 Share Posted September 17 Thanks a lot Wooshum for this information. I am trying to load some geometry from a geojson file using Houdini-Geospatial-Tools but I get a curved geometry and not matching the lat and lon of the data I already have in my scene. I am super Houdini noob and I was wondering what I am doing wrong. It would be great to have the geo/map flat (hope you can see in the picture it is slightly curved) and match the coordinates Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.