8.12 Working with Maps

There are several ways to import geographic data into Origin. If you work with NetCDF files, Origin's NetCDF Connector is a good place to start. There is also a Shapefile Connector for direct import of shapefile data.

Additionally, OriginLab makes available, two cost-free Apps that allow you to download map data to use as a base map for scatter plots, bubble-charts and the like.

Contents

Data: Connect to File: NetCDF

OriginLab added significant support for import and analysis of NetCDF files to Origin 2021b.


Additional Resources:

Data: Connect to File: Shapefile


Additional Resources:

Maps Online (App)

Origin's Maps Online App is a free add-on available from the ; or by opening the App Center (F10) and searching on "maps".

This is an older App but it remains useful for adding a base map image to an Origin graph window. Users can then overlay a scatter plot, bubble plot or other plot type, on the base map.


Additional Resources:

Google Map Import (App)

Origin's Google Map Import App is another free add-on available from the OriginLab File Exchange; or by opening the App Center (F10) and searching on "maps".

Like Maps Online, this App predates the more powerful NetCDF and Shapefile import Connectors but, it is another way to easily add a base map to an Origin graph window. This App uses the popular Google Maps database, allowing you to reliably add consistent-looking base maps for any place on earth. As with Maps Online, the user can then overlay scatter plots, bubble maps, etc.


Additional Resources:

Adding Boundary Information to Maps

There are several ways you can add map outlines to your graphs:

With the Insert Menu

When the following conditions are met, you can insert map boundaries to your Contour or Image Plot:


Additional Resources:

map folder and legend entry

In Origin 2022b, inserting map boundaries simultaneously added (1) a visible "Map Data" folder to the root project folder and (2) a line plot legend entry for the boundaries (e.g. "World"). Both were hidden for Origin 2023. Roll back to the previous behavior by of these system variables = 1 (e.g. @MDF=1).


In addition, you can access the hidden map boundary worksheet in one of two ways:

  1. After inserting the boundaries, go to Object Manager and , click on the line plot for inserted boundaries and use the Mini Toolbar Go to Source Sheet button.

or

  1. Using the LabTalk command.

With the Shapefile Connector

If a particular map is not available from the Insert menu, you can use the Shapefile Connector to import polygon data and add it to an existing contour or image plot.

  1. Click Data: Connect to File: Shapefile and import your .shp file.
  2. Select XY columns (Lon/Lat), hover near the right edge of your selection and and drag it to the graph window.


Additional Resources:

With Import Shapefile (App)

The Import Shapefile App predates the Shapefile Connector and would not be recommended at all but for the fact that it works with another free Origin App -- -- to add a colormap to shapefile polygons (as of version 2021b, the Shapefile Connector does not work with the Colormap App).


Additional Resources