REPROJECT USA Add-In

The Reproject USA Add-In re-projects and edits a geographic area layer that has a global extent. The result is a map layer with the USA on the central meridian. Such area layers are generally for visual purposes. As can be seen in the map below for example, desire lines between cities involving the Americas can be better visualized.

Reprojected map with USA centered

The macro illustrates:

  1. How to use the area and line layer conversion functions
  2. How to use the ChooseFile(), ChooseFileName() and GetTempFile() functions
  3. Various usage of coordinates in adding links and in map projections and scopes
  4. How to use the AddLayerToWorkspace() and DropLayerFromWorkspace() functions
  5. How to add Cancel buttons to progress bars created by GISDK functions
  6. How to use other functions: GetDBInfo(), GetDBLayers(), SetMapRedraw(), GetLayerType()
  7. How to use Macro "G30 new layer default settings"

Installation

  1. Download the file GISDK_ReprojectUSA.ZIP and extract the file ReprojectUSA.RSC. A good place to save the resource file is in the GISDK\Samples folder in the Maptitude program folder.
  2. Choose Tools-GIS Developer's Kit-GISDK Toolbar to open the GISDK toolbar.
  3. Compile this macro in test mode using the first button (Compile)
  4. Run this macro by clicking the second button (Test), typing the macro name "ReprojectUSA", clicking the Macro radio button, and clicking OK. A good geographic file to use with this macro is CCWORLDL.CDF.
Find Us 1172 Beacon St., Suite 300
Newton MA 02461 USA

Home  |  Products  |  Contact  |  Secure Store

Copyright © Caliper Corporation