VERIFIED SOLUTION i
X

Resolve MapBasic application returning Longitude/Latitude coordinates despite all tables being in British National Grid

Issue

MapBasic application is returning Longitude/Latitude coordinates despite all tables being in British National Grid

Cause

By default, MapBasic uses a Longitude/Latitude coordinate system. This means that when geographic functions (such as the CentroidX( ) function and the ObjectNodeX( ) function) return x- or y-coordinate values, the values represent longitude or latitude degree measurements by default.

Resolution

UPDATED: September 14, 2017


To resolve use the "Set Coordsys" statement after opening the table. For example:

Set CoordSys Table <Table_Name>

TIP: Use "Note SessionInfo(1)" to query the sessions coordinate system

In MapInfo Professional the default session projection can be changed by going to Options > Preferences > Map Window > Projection > Session Projection. The session projection for this session can also be changed by going to Map > Options > Projection.

Environment Details

product affected: MapInfo Pro™, MapBasic

Downloads

  • No Downloads