Using Projector Grids

How to use the class SpaProjectorGrids to create optimized bounding polygons.

Definitions

Settings

Projection Settings

ProjSettings

Proj settings as documented in proj.org. These are sent directly to the proj projection engine with three exceptions:

 

Drawing Settings

Notes:

Using The Pre-Created Files

Proj parameters:

/Archive/2020/ProjectionGrids/aea/

/Archive/2020/ProjectionGrids/aea/ for now

File names and paths cannot be greater than 255 characters

Grid parameters:

BB=-180_-90_180_90

 

Using the Web Service

 

Usng the Libraires

 

1. Create the SpaProjectorGrids() object

TheProjectorGrids=SpaProjectorGrids()

2. Get the default projector settings from SpaProjectorGrids


ProjectorGridSettings=TheProjectorGrids.GetDefaultSettings()

3. Modify the settings as desired

 

4. Set the settings into the SpaProjectorGrids object

TheProjectorGrids.SetSettings(SpaProjectorGrids,ProjectorGridSettings)

5. Setup the Proj parameters

 

6. Set the proj projection code and the proj parameters into the SpaProjectorGrids object


TheProjectorGrids.Setup(ProjectionCode,ProjParameters)

7. Setting up the drawing settings for the final image

 

8. Save the projected image to disk.

TheProjectorGrids.SaveProjImage(DrawSettings,ImageFilePath,CountriesFilePath)