preloader
image

OGI-IT Sketchup Tools

The OGI-IT SketchUp tools were developed to enable the import of high-precision terrain data into SketchUp as a 3D mesh.
They also support exporting the edges of a SketchUp group (e.g., a house model) back into a GIS environment. Using a mobile app, these exported edges can be projected onto the actual terrain.

A suitable open-source GIS application for this is QGIS, which also has a companion mobile app called QField. QField supports GNSS antennas with RTK and can achieve centimeter-level accuracy.

The following workflow demonstrates how to use the GeoJSON import and export features.

Preparing the data with QGIS

Let ChatGPT search for some sample data for you, or use the provided one. I used ChatGPT to get data from data.gv.at

  • Coordinate system: EPSG:4326 (WGS 84)
  • Heights: Meter above sea level
  • Data source: Digitales Geländemodell (DGM) Österreich
  • License: Creative Commons Attribution 4.0 International (CC BY 4.0)

Using QGIS add this data layer to a new project:

Ogi-it-su-tools Beschreibung

Since these data uses WGS84 coordinates, we need to transfer into a projection using meters.

Ogi-it-su-tools Beschreibung-1

Ogi-it-su-tools Beschreibung-2

Verify that in the lower right corner EPSG31255 is shown:

Ogi-it-su-tools Beschreibung-3

Reassure that there are Z coordinates in the data layer, by temporarily adding this virtual column to the attribute table of the data layer:

Ogi-it-su-tools Beschreibung-4

The expression to get the z value is $z:

Ogi-it-su-tools Beschreibung-5

Ogi-it-su-tools Beschreibung-6

We need to export a point serving as the SketchUp origin point (0,0,0). I’ll call it reference point REFP. Therefore, select a single point only and export it into a GeoJSON file. To better see the selected point you can increase the zoom level to, e.g., 300% (see lower right edge of the following picture):

Ogi-it-su-tools Beschreibung-7

Ogi-it-su-tools Beschreibung-8

Ogi-it-su-tools Beschreibung-9

It is important to choose the project coordinate system (EPSG:31255), include the Z dimension, and click on “Include selected objects only”. So the GeoJSON file contains this point only.

Ogi-it-su-tools Beschreibung-10

We now use Delaunay Triangulation to create a polygon mesh. Use the toolbox (Gears icon below):

Ogi-it-su-tools Beschreibung-11

In the search bar, type “delaunay”:

Ogi-it-su-tools Beschreibung-12

It is important to use v.delaunay from GRASS, since the other one is only 2D. Don’t write the output into a temporary file, since it will be 2D. Write the v.delaunay result into a GeoJSON file. This file can’t be used directly since it is in WGS84. Therefore, load this v.delaunay result into QGIS and then export it in the correct projection as GeoJSON. Here are the steps as screenshots:

Ogi-it-su-tools Beschreibung-13

After entering the file name, the tool window “disappears” behind the main QGIS window … click on it to bring it back on top:

Ogi-it-su-tools Beschreibung-14

Run the v.delaunay tool:

Ogi-it-su-tools Beschreibung-15

Close the Delaunay Triangulation window.

Export the result as GeoJSON by right-clicking on the layer:

Ogi-it-su-tools Beschreibung-16

When exporting, it is important to use the project coordinate system (here EPSG:31255) and include Z dimensions:

Ogi-it-su-tools Beschreibung-17

Ogi-it-su-tools Beschreibung-18

Import the GeoJSON terrain data into Sketchup

Open SketchUp with the installed extension:

Ogi-it-su-tools Beschreibung-19

Open the Info to see that there is no reference point in the project:

Ogi-it-su-tools Beschreibung-20

Load the reference point:

Ogi-it-su-tools Beschreibung-21

Ogi-it-su-tools Beschreibung-22

Verify that the information was read via Info:

Ogi-it-su-tools Beschreibung-23

Now you can import the mesh:

Ogi-it-su-tools Beschreibung-24

Ogi-it-su-tools Beschreibung-25

Ogi-it-su-tools Beschreibung-26

After clicking on “Zoom to All”:

Ogi-it-su-tools Beschreibung-27

Export house edges to GIS

Now draw a house in SketchUp:

Ogi-it-su-tools Beschreibung-28

Leave the house selected:

Ogi-it-su-tools Beschreibung-29

Export the group to GeoJSON:

Ogi-it-su-tools Beschreibung-30

Import into QGIS (to get the house better visible, I increased the zoom to 350%):

Oги-it-su-tools Beschreibung-31

  • Date

    28.04.2025
  • Categories

    Sketchup, QGIS, QField, GeoJSON, GNSS, RTK