Command: project

Syntax

project { <elist> ... } | <points>

Description

Apply mapping projections to entities or points.

Parameters

Switches

Notes

If either the -from or -to projection is null, this command does nothing.

If the -from and -to projections are identical, but the corresponding units values are different, this command will merely perform an appropriate scale operation.

The from projections must be ones with inverse procedures, i.e. with the ability to transform from Cartesian to longitude/latitude and vice-versa.

Sub-entities of compounds may be manipulated in isolation from their parent entities.

Examples

Project all entities in the these group.

project -from=amg55, -to=amg56

Project two entities into the current projection.

project fred, my.face, -from=merc_10

Read from file and project an array of points.

point pps[]
pfile myfile.dat,-op=pps
project pps,-from=ll_proj,-to=ukng

Project window corners into a new bounding box.

point corns[] = mywin.corners
project corns,-from=ll_proj,-to=ukng,-b

See Also

Commands:

entity, group

Identifiers:

current_filter (filter), epsg# (projection), ll_proj (projection), mapping (projection), srid# (projection), these (group), units (string)