Specifying a new CSys when exporting - 2023

MapInfo Pro Release Notes

Product
MapInfo > MapInfo Pro Advanced
MapInfo > License Server Utility
MapInfo > MapInfo EasyLoader
MapInfo > MapBasic
MapInfo > MapInfo Pro
Version
2023
Language
English
Portfolio
Locate
Product family
MapInfo
Product name
MapInfo Pro
Title
MapInfo Pro Release Notes
First publish date
1985

For the MapInfo 3D visualization changes (see MapInfo 3D for details), the tables should be in the Longitude/ Latitude (WGS 84)[ epsg:4326]: CoordSys Earth Projection 1, 104 projection. Use the optional CoordSys clause in the MapBasic export statement to change the CoordSys of a given tab file.

MapBasic Export Statement
Export table

	Into file_name 
	[ Type 
		{ "MIF" |
		"DBF" [ Charset char_set ] |
		"ASCII" [ Charset char_set ] [ Delimiter "d " ] [ Titles ] |
		"CSV" [ Charset char_set ] [ Titles ]
		"OGR" [ Charset char_set ] [ Driver driver_name ] 
			[ Drivercreateoptions driver_create_options ] 
			[ Layercreateoptions layer_create_options ] 
			[Background [Into Variable var_name] 
			[Calling calling_sub_with_one_param_and_errortrap]]
 } ]
	[ Overwrite ] 
      CoordSys Earth

	[ Projection type, 
		datum, 
		unitname 
		[ , origin_longitude ] 
		[ , origin_latitude ] 
		[ , standard_parallel_1 [ , standard_parallel_2 ] ] 
		[ , azimuth ] 
		[ , scale_factor ]
		[ , false_easting ] 
		[ , false_northing ]
		[ , range ] ] 
	[ Affine Units unitname, A, B, C, D, E, F ]
	[ Bounds ( minx, miny) ( maxx, maxy ) ]

For example,

Export "jfk_Vertical_Polygon_Object" Into "<path>\ShapeMZ\ShapeMZ\JFK\jfk_Vertical_Polygon_Object.geojson" 
	Type "OGR" Driver "GeoJSON"  Layercreateoptions "ID_GENERATE=NO"  Background  
	CharSet "UTF-8" Overwrite CoordSys Earth Projection 1, 104

Using the CoordSys clause in the Export statement, you can change the coordinate system of any table to the desired coordinate system.