CanvasMap
Getting Started Tutorials 3D Reference

Class CMProj4WebService extends CMProj4Grid

CMProj4WebService

Projector class that uses a web service that communicates with the Proj4 engine to create projection grids.
The class uses the CMProjInfo.js file for information on the available projection methods and parameters.


Copyright (C) 2020, Humboldt State University, Jim Graham

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see
.

Settings Group: Projection

Setting Name Type Options Default Comments
LongitudeOfOrigin Longitude Of Origin CMTYPE_FLOAT 0 CMProj4Grid that is used to dynamically move the Longitude of origin. This is not sent to the web service and is handled in CMProj4Grid.
DynamicBoundingBox Dynamic Bounding Box CMTYPE_BOUNDS null
lon_0 Longitude Of Origin CMTYPE_FLOAT null, Min:-180,Max:180 typically, longitude of origin
lon_1 First Meridian CMTYPE_FLOAT -40, Min:-180,Max:180 first longitude
lon_2 Second Merdian CMTYPE_FLOAT 40, Min:-180,Max:180 second longitude
lonc Lonigidude of central point CMTYPE_FLOAT 0, Min:-180,Max:180
lat_ts Latitude Of True Scale CMTYPE_FLOAT 0, Min:-90,Max:90 latitude of true scale
lat_0 Latitude Of Origin CMTYPE_FLOAT 0, Min:-90,Max:90 typically, latitude of origin
lat_1 First Parallel CMTYPE_FLOAT 20, Min:-90,Max:90 first latitude for conics
lat_2 Second Parallel CMTYPE_FLOAT 40, Min:-90,Max:90 second latitude for conics
h Height of Satellite above the earth CMTYPE_FLOAT 35785831.0 , Min:1,Max:1000000000
n n CMTYPE_FLOAT 2 , Min:1,Max:5 undocumented
m m CMTYPE_FLOAT 3 , Min:1,Max:5 undocumented
M M CMTYPE_FLOAT 0.5 , Min:0.001,Max:5 greater than 0
W W CMTYPE_FLOAT 1 , Min:0.001,Max:5 greater than 0
south South CMTYPE_BOOLEAN false
lsat Satellite CMTYPE_ENUMERATED 1, 2, 3, 4, 5 1
path Path CMTYPE_INTEGER 1, Min:1,Max:253
alpha Alpha CMTYPE_FLOAT 1, Min:0,Max:360 angle of rotational pole
tilt Tilt CMTYPE_FLOAT 1, Min:0,Max:360
azi Azimuth CMTYPE_FLOAT 1, Min:0,Max:360
o_lat_p Latitude of New Pole CMTYPE_FLOAT 90, Min:-90,Max:90 moves latitude for oblique projections
BoundingBox BoundingBox CMTYPE_BOUNDS null clip bounding box for projection grids
Type Type CMTYPE_STRING Cylindrical
Method Method CMTYPE_STRING Robinson Robinson only those projection methods that work well are exposed at this time.
DegreeSpacing DegreeSpacing CMTYPE_INTEGER 10
DistanceDistortionMax DistanceDistortionMax CMTYPE_FLOAT null

Static Functions

ReturnsFunctionThrows
GetProjectionCodeFromProjectionName()
GetProjectionIndexFromProjectionCode()
GetProjectionIndexFromSettingsName()
GetControlInformation()
GetPreferedGeographicBounds()
GetProjectionInfoFromProjectionCode()

Static Functions

GetProjectionCodeFromProjectionName()

@static

GetProjectionIndexFromProjectionCode()

@static

GetProjectionIndexFromSettingsName()

@static

GetControlInformation()

Returns projection information specified in the ProjInfo object (typically from including CMProjInfo.js)

GetPreferedGeographicBounds()

Returns a geographic bounds that will make the specified projection look too

GetProjectionInfoFromProjectionCode()

Return one of the elements in the ProjInfo projection array.