CoordSysStringToPRJ$() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Converts MapBasic Coordinate System clause into an PRJ string. PRJ string format is used to describe MapInfo Coordinate Systems in mapinfow.prj file. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

CoordSysStringToPRJ$( coordsys_string )

coordsys_string is a MapBasic CoordSys clause. PRJ string is an alternative definition of Coordinate System used in the mapinfow.prj file; for example, CoordSys Clause of "Earth Projection 1, 104" will return a PRJ string of "1,104".

Return Value

string

Description

The CoordSysStringToPRJ$() function is used to convert a MapBasic CoordSys clause into an integer EPSG value.

Example

The following example displays PRJ string for Earth Projection 1, 104 Coordinate System.

print CoordSysStringToPRJ$("Earth Projection 1, 104")

See Also:

CoordSys clause