<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I've been having trouble creating Mapinfo files with correct coordinate system header information for NZ projections based on NZGD2000. Currently the trunk version of ogr2ogr is creating Mapinfo files with a WGS84 datum (the default) within the coordsys definition when it should not be. I think the reason for this is the OGRSpatialReference datum name does exactly not match any entries in the asDatumInfoList within mitab_spatialref.cpp.</DIV>
<DIV> </DIV>
<DIV>I have attached a patch that adds the NZGD2000 datum name as currently loaded into the OGRSpatialReference from WKT. This is not a clean solution as it adds a new entry for a datum definition that already exists. But I see this sort of hack has been done in the past so at least it is consistent!</DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV>Jeremy</DIV>
<DIV>
<HR>
<DIV>This message contains information, which is confidential and may be subject
to legal privilege. <BR>If you are not the intended recipient, you must not
peruse, use, disseminate, distribute or copy this message.<BR>If you have
received this message in error, please notify us immediately (Phone 0800 665 463
or <A href="mailto:sinfo@linz.govt.nz">info@linz.govt.nz</A> ) and destroy the
original message.</DIV>
<DIV>LINZ accepts no responsibility for changes to this email, or for any
attachments, after its transmission from LINZ.</DIV>
<DIV> </DIV>
<DIV><STRONG>Thank you.</STRONG> <BR></DIV>
<HR>
</DIV>
</BODY></HTML>