Reinaldo Escada Chohfi wrote:
Hello Frank and List,
We waited for the release of GDAL 1.7.0 to see if we could output MapInfo
Fiels (.tab or .mif/mid) with SRS information.
We still can not output .tab or .mif/mid files with SRS information.
Could you please check the test code below to see what's missing or wrong?
...
void main()
{
OGRSpatialReference oSRS;
// oSRS.SetWellKnownGeogCS( "EPSG:4326" );
oSRS.importFromMICoordSys( "CoordSys Earth Projection 1, 104" );
...
OGRLayer *poLayer;
poLayer = poDS->CreateLayer( "test01", NULL, wkbPoint, NULL );
Reinaldo,
I don't see any sign that you are doing anything with the spatial
reference. You need to pass the OGRSpatialReference* into CreateLayer()
as the second argument.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev