Spatial Manager for ZWCAD
Documentation

Publish to Google Earth

Export all or part of the objects in the visible Layers from ZWCAD and their data to a KML or KMZ file.

Export the current drawing status (Publish) to Google Earth

Regardless of the advanced export capabilities of Spatial Manager™ for ZWCAD which can be found in the “Professional” edition, the “Standard” and “Professional” editions of the application include a specific command (SPMCREATEKML) designed to export all or part of the entities in the drawing and their data to a KML or KMZ file (Google Earth) through a one-click operation. This exportation process considers the current layers organization and the properties of the layers and entities.

  • The elements in the KML/KMZ file will assume the colors, line weights, etc. of the entities in the drawing. A subdivision based on the type(s) of the entities in the layers will also be created for each layer, allowing you a high level of visibility control in Google Earth.
  • The values for the NAME and DESCRIPTION of the elements in the KML/KMZ file will be automatically taken from the data fields “Name” and “Description” if those exist.
  • The Text entities will display their content as a label in Google Earth (automatic field “TxtString”).
Export to Google Earth (KML/KMZ) command
Export to Google Earth (KML/KMZ) command

The exported (KML/KMZ) file can now be opened in Google Earth. As an extra, if Google Earth is installed on the computer where the export process was performed, you can even open it using a button in the export report window. Nevertheless, upon completion of the export process you can open the file location directly.

Open file in Google Earth (if installed) or open file location
Open file in Google Earth (if installed) or open file location
The file in Google Earth
The file in Google Earth

You can export all the entities in a drawing, a selection of entities (Manual, by Query, or by Table), or all the entities in a layer.

  • Notes:
    • When choosing the option to export all entities in the drawing, those entities that are in locked, off or frozen layers will not be included. If the entities are selected by any means before exporting and the option to export the selected entities is chosen, they will be exported even if they are in locked, off or frozen layers.
Publish to Google Earth (KML/KMZ) parameters window
Publish to Google Earth (KML/KMZ) parameters window

You can choose whether, for entities with elevation or 3D values in their geometry, they are considered 2D (Flat, only their XY coordinates are taken) or 3D. In case Z-values are taken into account in the export, you can decide how the vertical relation of the entities with respect to the terrain (Altitude) is taken into consideration.

3D Entities to Google Earth (KML/KMZ)
3D Entities to Google Earth (KML/KMZ)

You can also specify a fill transparency for entities that can be opaque (Hatches, Faces, Polyfaces, etc.).

As an additional parameter, you can select the option to fill the closed polylines as if they were polygons. Note that if you check this option, and a polyline is already filled in the drawing (using a Hatch, for example), you will get two polygon elements for this polyline in the exported KML/KMZ file.

Filling closed polylines in Google Earth
Filling closed polylines in Google Earth

In addition, if the set of entities to be published includes any ZWCAD raster images, you can reduce their size by a percentage while processing. This can help you solve some of the problems in Google Earth concerning large images, which cause them to be missed or cropped.

Reducing the size of images when publishing
Reducing the size of images when publishing

The application needs to know the coordinate system (CRS) of the drawing for exporting, as in most cases this will be necessary to perform an automatic coordinate transformation to the CRS used in Google Earth. You will see a warning window if the process cannot be carried out and you may need to assign a CRS to the drawing.

'SPMSETCRS' command in the Spatial Manager™ for AutoCAD ribbon
'SPMSETCRS' command in the Spatial Manager™ for AutoCAD ribbon

You can read about CRSs, the CRS Catalog, and the Transformation of coordinates.


Disclaimer:
  • Some components shown here (providers, names, window styles, etc.) may differ slightly from those on your computer.
  • Certain features require Internet access. If you experience issues, check with your network administrator about a possible Proxy server. You can configure the Proxy settings in the application options.
  • Some geographic data providers (Geocode, image maps, etc.) may require a user account, which you can set up in the Service Provider API Keys section of the application options.