Skip to content

g.proj.identify

Autoidentifies EPSG code from WKT CRS definition.

g.proj.identify [-pws] [wkt=name] [epsg=integer] [--verbose] [--quiet] [--qq] [--ui]

Example:

g.proj.identify

grass.script.run_command("g.proj.identify", wkt=None, epsg=None, flags=None, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("g.proj.identify")

Parameters

wkt=name
    Name of input file with WKT definition
epsg=integer
    Input EPSG code
-p
    Print projection info in Proj4 format
-w
    Print projection info in WKT format
-s
    Save as default EPSG in the current location
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

wkt : str, optional
    Name of input file with WKT definition
    Used as: input, file, name
epsg : int, optional
    Input EPSG code
flags : str, optional
    Allowed values: p, w, s
    p
        Print projection info in Proj4 format
    w
        Print projection info in WKT format
    s
        Save as default EPSG in the current location
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

g.proj.identify allows to automaticaly identify the EPSG code from a given Well-Know Text (WKT) projection string stored in a file. The user can also print the EPSG code of the current location. The conversion from a given EPSG code to WKT and proj4 is supported.

EXAMPLE

# print EPSG code of current Location - use without parameters
g.proj.identify

# identify EPSG code from WKT definition stored in file 'myproj.wkt'
g.proj.identify wkt=myproj.wkt

# print WKT and proj4 for given EPSG code, independent from current location
g.proj.identify -p -w epsg=4326

SEE ALSO

g.proj, m.proj, r.proj, v.proj

AUTHORS

Matej Krejci, OSGeoREL at the Czech Technical University in Prague, developed during Google Summer of Code 2015 (mentor: Martin Landa)

SOURCE CODE

Available at: g.proj.identify source code (history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819