Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-25 Thread Frans Knibbe | Geodan
I am trying to understand what is happing with GDAL ticket 481 (http://trac.osgeo.org/gdal/ticket/481). If I understand correctly, the old way was to guess the right Mapinfo SRS definition by string matching. This should have been replaced by first trying to match the EPSG code. Assuming that a

Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-25 Thread Frans Knibbe | Geodan
Hello Sig, I have just tried that. Only with the ESRI WKT, because the OGC WKT already had the space between 'Bessel' and '1841'. This change neither had the desired effect. Greetings, Frans On 2012-05-25 12:23, Luca Sigfrido Percich wrote: Frans, try to replace also SPHEROID["Bessel_1841"

Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-25 Thread Luca Sigfrido Percich
Frans, try to replace also SPHEROID["Bessel_1841" with SPHEROID["Bessel 1841" in your prj file. I'm still following the idea that the problem lies with unmatched names in mitab_spatialref.cpp. Sig Il giorno gio, 24/05/2012 alle 14.42 +0200, Frans Knibbe | Geodan ha scritto: > Hi Chaitanya,

Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-25 Thread Frans Knibbe | Geodan
Hello Luca, Thank you for your suggestion, but it does not seem to work. I tried in in different ways: editing the prj file of the shapefile and specifying an alternative prj file with the a_srs option. I also tried both ESRI WKT and OGC WKT. And I also tried 'DATUM["D_Netherlands_Bessel"' in

Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-24 Thread Luca Sigfrido Percich
Hi Frans, Il giorno gio, 24/05/2012 alle 14.42 +0200, Frans Knibbe | Geodan ha scritto: > The SRS that I am using is a projection (EPSG:28992, to be precise), > so I think geographic (unprojected) mode is not applicable. I will try > to update ticket 481. I checked in my c:\program files\Mapinfo

Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-24 Thread Frans Knibbe | Geodan
Hi Chaitanya, The SRS that I am using is a projection (EPSG:28992, to be precise), so I think geographic (unprojected) mode is not applicable. I will try to update ticket 481. Regards, Frans On 2012-05-24 13:31, Chaitanya kumar CH wrote: Frans, Add the option "-a_srs WGS84" to ogr2ogr comm

Re: [gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-24 Thread Chaitanya kumar CH
Frans, Add the option "-a_srs WGS84" to ogr2ogr command. It should force geographic mode. If that doesn't solve your issue, please go through the discussion on this topic at ticket 481. http://trac.osgeo.org/gdal/ticket/481 On Thu, May 24, 2012 at 4:35 PM, Frans Knibbe | Geodan < frans.kni...@ge

[gdal-dev] ogr2ogr shapefile to mapinfo tab: no SRS.

2012-05-24 Thread Frans Knibbe | Geodan
Hello, I wonder if someone can help me with a nasty problem with using ogr2ogr to convert shapefile to Mapinfo tab format. Whatever I try, I can not get the output to have a correct definition of the SRS. Ogrinfo always reports the output having a NonEarth SRS. The input shapefile has a *.pr