Converting a Sketchup model to CityGML format: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Introduction==
[[File:SketchUpLogo1.jpg]]<br>
* UPDATE: We recommend to add texture or color to your model for better visibility, and to use SRID 28992 (Amersfoort - RD) as projection in the Netherlands for proper scaling at import in {{software}}.
* Please note that [[SketchUp]] Pro and its extension CityEditor both require paid licenses. Both do offer a free evaluation period of one month. This article is a quick description of a specific use case, and not in depth documentation for [[SketchUp]] Pro or CityEditor.


* Please note that Sketchup Pro and its extension CityEditor both require paid licenses. Both do offer a free evaluation period of one month. This article is a quick description of a specific use case, and not in depth documentation for Sketchup Pro or CityEditor.  
* This article describes a use case as a proof-of-concept and we do invite you to experiment further.


This article describes a use case as a proof-of-concept and we do invite you to experiment further.
It is possible to import models into the {{software}} as a [[CityGML]] (.gml) file.  In order to export a [[SketchUp]] model as such a .gml file, we use a third party plugin (CityEditor) found in the Extensions Warehouse in the [[SketchUp]] PRO version, which is required to be able to use extensions. This extension converts the [[SketchUp]] model into a proper CityGML file. There are also other plugins available, such as GEORES etc., but these have not been tested (yet).
 
It is possible to import models into the Tygron Geodesign Platform as a CityGML (.gml) file.  In order to export a Sketchup model as such a .gml file, we use a third party plugin (CityEditor) found in the Extensions Warehouse in the Sketchup PRO version, which is required to be able to use extensions. This extension converts the Sketchup model into a proper CityGML file. There are also other plugins available, but these are not tested (yet).  


==Setting up the Extension==
==Setting up the Extension==
[[File:CityEditorLogo1.jpg]]<br>
[[File:CityEditorLogo1.jpg|right]]
1. Visit https://www.3dis.de and download the CityEditor extension.<br>
1. Visit https://www.3dis.de and download the CityEditor extension.<br>
2. Install the extension through the Extension Manager in Sketchup.<br>
2. Install the extension through the Extension Manager in Sketchup.<br>
3. The newly installed extention should now be available under the Extentions Menu on the top bar of Sketchup.<br>
3. The newly installed extention should now be available under the Extentions Menu on the top bar of [[SketchUp]].<br>


==Preparing a model in Sketchup==
==Preparing a model in SketchUp==
1. Have a model loaded in Sketchup.<br>
# Have a model loaded in [[SketchUp]].
2. Ensure that all faces of the model are at least grouped.<br>
# Ensure that all faces of the model are at least grouped.
3. Take note of where the model will be placed in the real world (Google Maps coordinates).<br>
# Give the group a texture or color for better visibility, the model may turn black otherwise, when importing in {{software}}.
4. Select Window > Model Info > Geo Location.<br>
# Take note of where the model will be placed in the real world (Google Maps coordinates).
5. Select 'Set Manual Location...'.<br>
# Select Window > Model Info > Geo Location.
6. Fill in the coordinates from Google Maps and the Country and Location names.<br>
# Select Window > Model Info > Units, and ensure all units are in meters (other units can cause scaling issues).
7. Confirm the selections and save the Sketchup project.<br>
# Select 'Set Manual Location...'.
# Fill in the coordinates from Google Maps and the Country and Location names.
# Confirm the selections and save the [[SketchUp]] project.


==Preparing the model in City Editor==
==Preparing the model in City Editor==
1. Select Extensions > CityEditor > Model Info > Update Model Georeference.<br>
# Select Extensions > CityEditor > Model Info > Update Model Georeference.
2. Enter the proper origin coordinates for X and y and the desired elevation Z. <br>
# Enter the proper origin coordinates for X and y and the desired elevation Z.
3. Enter the required SRID 3857 and select Use SU georeference.<br>
# Enter the required SRID 28992 and select Use SU georeference (transformed to specified CRS).
4. Now the X and Y coordinates will be transposed and all data is visible under Model Info.<br>
# Now the X and Y coordinates will be transposed and all geo data is now visible under Model Info.
 
<gallery>
File:ModelInfo1.jpg|300px|Select Extensions > CityEditor > Model Info > Update Model Georeference.
File:GeoLocation1.jpg|300px|Enter the required SRID 28992 and select Use SU georeference (transformed to specified CRS).
</gallery>


==Exporting the model from Sketchup with City Editor==
==Exporting the model from SketchUp with City Editor==
1. Select Extensions > CityEditor > Export > CityGML...<br>
# Select Extensions > CityEditor > Export > CityGML...
2. Name your file as desired and add .gml as extension, to force the format to .gml (and not the default .xml).<br>
# Name your file as desired and add .gml as extension, to force the format to .gml (and not the default .xml).
3. On the next panel, on the General tab, you can optionally fill in a name and description for the model.<br>
# On the next panel, on the General tab, you can optionally fill in a name and description for the model.
4. On the CityGML Options tab, set version to 2.0, LoD to lod2 and Generate only absolutely nexessary IDs.<br>
# On the CityGML Options tab, set version to 2.0, LoD to lod2 and Generate only absolutely nexessary IDs.
5. On the Coord. System tab, have Orientation on Easting-Northing and Coordinate System on Load from Model (Check box).<br>
# On the Coord. System tab, have Orientation on Easting-Northing and Coordinate System on Load from Model (Check box).
6. On the Textures Tab, set up a proper path for any texture files, if needed.<br>
# On the Textures Tab, set up a proper path for any texture files, if needed.
7. Start Export.<br>
# Start Export.
{{article end
|seealso=
*[[CityGML]]
}}
[[Category:How-to's]][[Category:CityGML]]

Latest revision as of 13:53, 21 December 2023

SketchUpLogo1.jpg

  • UPDATE: We recommend to add texture or color to your model for better visibility, and to use SRID 28992 (Amersfoort - RD) as projection in the Netherlands for proper scaling at import in Tygron Platform.
  • Please note that SketchUp Pro and its extension CityEditor both require paid licenses. Both do offer a free evaluation period of one month. This article is a quick description of a specific use case, and not in depth documentation for SketchUp Pro or CityEditor.
  • This article describes a use case as a proof-of-concept and we do invite you to experiment further.

It is possible to import models into the Tygron Platform as a CityGML (.gml) file. In order to export a SketchUp model as such a .gml file, we use a third party plugin (CityEditor) found in the Extensions Warehouse in the SketchUp PRO version, which is required to be able to use extensions. This extension converts the SketchUp model into a proper CityGML file. There are also other plugins available, such as GEORES etc., but these have not been tested (yet).

Setting up the Extension

CityEditorLogo1.jpg

1. Visit https://www.3dis.de and download the CityEditor extension.
2. Install the extension through the Extension Manager in Sketchup.
3. The newly installed extention should now be available under the Extentions Menu on the top bar of SketchUp.

Preparing a model in SketchUp

  1. Have a model loaded in SketchUp.
  2. Ensure that all faces of the model are at least grouped.
  3. Give the group a texture or color for better visibility, the model may turn black otherwise, when importing in Tygron Platform.
  4. Take note of where the model will be placed in the real world (Google Maps coordinates).
  5. Select Window > Model Info > Geo Location.
  6. Select Window > Model Info > Units, and ensure all units are in meters (other units can cause scaling issues).
  7. Select 'Set Manual Location...'.
  8. Fill in the coordinates from Google Maps and the Country and Location names.
  9. Confirm the selections and save the SketchUp project.

Preparing the model in City Editor

  1. Select Extensions > CityEditor > Model Info > Update Model Georeference.
  2. Enter the proper origin coordinates for X and y and the desired elevation Z.
  3. Enter the required SRID 28992 and select Use SU georeference (transformed to specified CRS).
  4. Now the X and Y coordinates will be transposed and all geo data is now visible under Model Info.

Exporting the model from SketchUp with City Editor

  1. Select Extensions > CityEditor > Export > CityGML...
  2. Name your file as desired and add .gml as extension, to force the format to .gml (and not the default .xml).
  3. On the next panel, on the General tab, you can optionally fill in a name and description for the model.
  4. On the CityGML Options tab, set version to 2.0, LoD to lod2 and Generate only absolutely nexessary IDs.
  5. On the Coord. System tab, have Orientation on Easting-Northing and Coordinate System on Load from Model (Check box).
  6. On the Textures Tab, set up a proper path for any texture files, if needed.
  7. Start Export.

See also