CityEngine, driving your models with attributes from a .shp file

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video I'll be demonstrating how you can drive your models of data for cookies so instead it's been done here we have downloaded data from Abbey Street Map and visualize it we will use footprints from the Danish data that we have enriched in another video he talked about how to calculate Eve and which hi and move tops in cookus so we'll be using this data to drive how the models are generated in city engine I'll be illustrating using this Paris rule package so you can have get the Paris rule package from all the portals if you just look for food packages and if you see P and I'll probably be a Paris food package so this is the one and I'll be demonstrating so one thing you have to be aware of is that unless there's no standard for how when you call roof types so sometimes they're called flat moves sometimes they're called terrace truth sometimes whatever so you'll always have to when you want to drive a little package or a rule in in incident it's a good idea to look at what are the parameter what do they call the different things so we will start out by applying this Paris rule set just to a single roof single building so try this triangle on that one so what we can see is that episode you have a level of detail we have a number of floors you have a ground floor height a height a tie Rick so that is a bit from the tiles so door was window elements we have the year so that's something that controls the architecture of it's over heavier and say a modern building it will change its its look depending on a year that I chose so it has a year pad it has a roof and here we can have a hip gable and sad gamble and terrorist so these are the names that they use for the rooftops which types of roof does that so we have to make sure that the names that we use are the same as these because the basic of this is that any of these modeling attributes can be managed by controlled by a attribute in the data set so mean to trick is that down here it says connect an attribute so I can connect to a data set that's on the line so let's create a data set that in gugus that can match some of these attributes here and help us generate our model uncurious on the video on calculating 3d building data and kouga's he created this data set here into your package and you have let's test openings attribute table so we have this lots of standard attributes from the Danish cadastre what's interesting is what do we call all of these different layer types of name of boot doctor so hip and steep and flat I think there's the ones I've been using and they're not really called that in the model so we have a little updating to do so principle is first select ah so I can see all of those that are based on their I move top ever move class being equal to then I call them hip yeah so they are selected and what I want to do with them is that I want to change them to hip in lowercase so update field move top tip in lowercase update that's right so that was all of them and there was I called steep I can't say they were the ones that be called men sad so chains steep and just to check what they are called in the modeling so here they are called and sadhya so we will update them to sad and update field and I guess that's fine so no only one yes and sad okay make sure spelling is correct here so that's hip and then sad and flat what's the last one here so where they have my select there I was also a threat select them and update them don't need that anymore our update where we will set them to I think they were called and let's make sure that the aim is correct so they were not terrorists but Terrace and update them so now I have basically updated all of my attributes to match my values in my Marvel so finished save the data to my date do data base make sure I have nothing selected and export my data to a format that they can read and that would be shaped format good shape and are discarding buildings buildings make sure that the coordinate system is the same as a coordinate system in your city engine and that's it one the export that's done go to city engine and city in Jim you can now get rid of our footprints from OpenStreetMap and instead evil use a shape importer this is one of the importers made you can go outside your workspace so then you have to first place my data in the workspace I guess a import I want to input a shape file and browse to where I've stored it on my computer load it coordinate systems and we'll and have all of my buildings loaded from my shake file here they are selected at the moment so while they select I might as well just take my Paris ruled pack and drag on to one of them so that's applied it will start generating the morale and cause that not necessarily super fantastic so I why I'm just working I will turn off models and what mean I want to do is that we want to change the settings yeah I want to have high detail floor what I don't know how many floors is but I do know how tall the buildings are so given that the floor heights it can calculate the number of laws so this one I can sit as a connected attribute so now it will ask me to where do I want to get the data and unless that there's if there had been a attribute that been named height it will automatically have found it this case I'll have to go out and see yeah so these are my shake buildings and the height is my max height from when I did my calculations so now they set and you can see that changes mini ezra's is it that comes from my attribute and I want to say if I had a nice beautiful layer I could use that but I had a attribute for my rooftop so I'll just say that connector as if you're again select the layer so my shapes buildings and select my move class attribute and so if you have more attributes so you had the yeah and height of the floors and all of these are things you could set them again from the model so I'm happy and let's see what this looks like you so now my boys are finished generating and weekend here I have this one that had statically modelled my toe we'll just get rid of that so so now I have all of my coming here model using the Paris boom pack of course I haven't set the year two of the buildings I could have a van had that knowledge but I have set the roof type and the height of the buildings from Mike Yugi's data so they will have different heights as you can see and different types of roofs so all of this basically demonstrates the use of taking a data set Incubus making sure that if you have named attributes such as in a case of our mortals here we had we had the roof type and and the material if that has to match make sure that the names are spelled exactly the same both places then you can export the data to a shape format so export features to shape that's making sure that the coordinate systems are the same as in your city engine and in city engine this is one of the cities we don't have to drag it into your workspace first but you go to your importer and then you use the shape importer and then you use that to generate your models in order to make sure that the attributes get set correctly go to enormous set your attributes in your inspector window and then in the drop-down choose connect attribute and then locate the attribute in your shapefile and that's it so hope you found it useful and hope to see you in an hour video so
Info
Channel: Geoinformatics
Views: 790
Rating: 5 out of 5
Keywords:
Id: 2TQM5MV4bck
Channel Id: undefined
Length: 14min 56sec (896 seconds)
Published: Mon May 04 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.