I have the following geojson that I would like to convert to MapInfo tab with ogr2ogr: ogr2ogr -f "MapInfo Tab" output.tab input.geojson
geojson:
{
"type":"FeatureCollection",
"crs":{
"type":"name",
"properties":{
"name":"urn:ogc:def:crs:EPSG:3857"
}
},
"features":[
{
"type":"Feature",
"geometry":{
"type":"LineString",
"coordinates":[[-7551132, 6293816],[-7560916, 6260489]],
},
"properties":{
"id":36
}
}
]
}
However, the output MapInfo Tab does not include the projection defined in the geojson.
Using ogrinfo on output.tab: ogrinfo -ro -al output.tab
Layer name: output
Geometry: Line String
Feature Count: 1
Extent: (-7560915.990000, 6260488.995000) - (-7551132.000000, 6293815.995000)
Layer SRS WKT:
PROJCS["unnamed",
GEOGCS["unnamed",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563],
TOWGS84[0,0,0,0,0,0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["Meter",1.0]]
id: Integer (0.0)
OGRFeature(output2):1
id (Integer) = 36
Style = PEN(w:1px,c:#000000,id:"mapinfo-pen-2,ogr-pen-0")
LINESTRING (-7551132.0 6293815.995,-7560915.99 6260488.995)