In the case study that I have been working on the challenge was to share a 3D representation of an entire city among users.
I have done a number of projects with CityEngine and considered using the 3D webscenes for this, however I found a couple of limitations:
- CityEngine uses Python scripting to import cities with a diameter of about 13km. The city in this case study has a diameter of more than 40km.
- The final compressed webscene (.3ws) has to be downloaded before being viewed. Best practice limits this file to 30 MB
I eventually (after a lot of research and blog reading) decided to try and host my 3D Basemap on ArcGIS Server as a Globe Service.
The Workflow:
The data consisted of 3 types of building features:- Photo-realistic multipatch features of buildings
- Digitized 2D building footprints
- 2D cadastral properties
Step 1: Converting the .3ds building files to multipatches is a whole blog post on its own. I will explain this in a bit more detail later. (Hint: The Import 3D files tool + Blood Sweat and Tears). As the focus of this blog is hosting a city on ArcGIS for Server, just know that the textured buildings were finally converted to multipatch features. It is also importatnt to know that the Buildings were set to their correct z-values during the conversion process.
Step 2: The 2D Building footprints were provided with the correct z-values through the Interpolate Shape tool. The footprints were then extruded to their height attributes in ArcScene and converted to multipatches by using the Layer 3D to Feature Class tool.
Step3: At this point the remaining areas of the city had still had to be represented by building footprints. Due to the lack of data, generic "fictional" footprints had to be generated in order to flood the rest of the urban area.
To generate these footprints I used CityEngine. The 2D cadastral data first had to be divided into 7 regions (due to the fact that the total area of the city is too large for CE).
The properties contained attributes describing its zoning characteristics as well as restrictions. Using these attributes as guide lines for building shapes (L-shape, O-shape and U-shape) and heights, buildings could be generated procedurally in CityEngine. The procedural rule was based (and borrowed from) on the rules found in Tutorial 8: Mass Modeling at the CityEngine Resource Center.
The result was 7 regions of procedurally generated (fictional) buildings ( +800 000).
The buildings were then combined before merging with the "real" digitized building footprints.
Step 4: The final step was to add each of the multipatches (textured as well as extruded footprints) to ArcGlobe. I decided to create 2 globe service. The first one would show the Textured buildings and the second one would be the footprints.
Publishing a globe service was much easier than I anticipated. Once the multipatches are added to ArcGlobe simply remove all elevation and image layers (the standard ArcGlobe layers); click on File > Share As... > Service... Next fill in the relevant information in the Service Editor > Analyze and Publish your globe service.
Once the Service Publishing Result has popped up, you can open a new ArcGlobe and access the data straight from your ArcGIS Server.
The final result is two Globe services which is hosted locally and can be shared to other users, thereby creating a online 3D Basemap of the City.
Publishing a globe service was much easier than I anticipated. Once the multipatches are added to ArcGlobe simply remove all elevation and image layers (the standard ArcGlobe layers); click on File > Share As... > Service... Next fill in the relevant information in the Service Editor > Analyze and Publish your globe service.
Once the Service Publishing Result has popped up, you can open a new ArcGlobe and access the data straight from your ArcGIS Server.
The final result is two Globe services which is hosted locally and can be shared to other users, thereby creating a online 3D Basemap of the City.
City globe services |
Hi Carl,
ReplyDeleteIm an architect by profession and working on doing similarly a 3d basemap for my hometown Mombasa in Kenya https://www.youtube.com/watch?v=dZhOnShGjKw. I was wondering if you can help me out as im pretty new at this. im using the 3d basemap to further demonstrate these technologies in the form of tutorials..so its a learn as you teach process. My biggest challenge has been getting lidar/aerial data. Gis data is verly little here so its a lot of work but hoping to see some rewards at the end of it. Would appreciate your help
Hello. I am wondering how you get the photo-realistic texture for the buildings. Was it an manual task or you figure out other way to do it? Thank you, Sheyla
ReplyDelete