<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6617.47">
<TITLE>Losing projection info when running transformation method for the 2nd time.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
<BR><FONT SIZE=2 FACE="Arial">i'am writing a program with perform transformations on map files.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">This program is written in vb.net and i had to create a bridge(dll) between </FONT>
<BR><FONT SIZE=2 FACE="Arial">gdal/ogr and the .net platform (with managed c++) and it works pretty well</FONT>
<BR><FONT SIZE=2 FACE="Arial">(any problem of compilation with visual c++).</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The program takes a file in entry (mapinfo or esri), performs transformations (add/remove/rename fields),</FONT>
<BR><FONT SIZE=2 FACE="Arial">recopies features (like ogr2ogr) and saves the new file as a mapinfo file.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">OK so my program works and do what i want, but only one time per execution...</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have to translate a thousand of files like that and only the first file is correct,</FONT>
<BR><FONT SIZE=2 FACE="Arial">I need to re-launch the program to translate correctly only one file...</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The other files that the first can't be opened with mapinfo due to corrupted data???</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">So I search for the origin of the problem and I've found that the 2nd file haven't the good</FONT>
<BR><FONT SIZE=2 FACE="Arial">projection info.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">->first file(wkt): -> projection lambert II carto (for france)</FONT>
<UL>
<P><FONT SIZE=2 FACE="Arial">PROJCS["NTF_Lambert_II_étendu",GEOGCS["GCS_NTF",DATUM["NTF",SPHEROID["Clarke_188</FONT>
<BR><FONT SIZE=2 FACE="Arial">0_IGN",6378249.2,293.46602]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.01745329251</FONT>
<BR><FONT SIZE=2 FACE="Arial">99433]],PROJECTION["Lambert_Conformal_Conic_1SP"],PARAMETER["False_Easting",6000</FONT>
<BR><FONT SIZE=2 FACE="Arial">00.0],PARAMETER["False_Northing",2200000.0],PARAMETER["Central_Meridian",2.33722</FONT>
<BR><FONT SIZE=2 FACE="Arial">91667],PARAMETER["Standard_Parallel_1",45.8989188889],PARAMETER["Standard_Parall</FONT>
<BR><FONT SIZE=2 FACE="Arial">el_2",47.6960144444],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin</FONT>
<BR><FONT SIZE=2 FACE="Arial">",46.8],UNIT["Meter",1.0]]</FONT>
</P>
</UL>
<P><FONT SIZE=2 FACE="Arial">->2nd file(wkt) (only openable with ogr)</FONT>
<UL>
<P><FONT SIZE=2 FACE="Arial">GEOGCS["unnamed",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563],TOWGS</FONT>
<BR><FONT SIZE=2 FACE="Arial">84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]</FONT>
</P>
</UL>
<P><FONT SIZE=2 FACE="Arial">all the other files get this projection info until I stop the program and re-lauch it.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I think Maybe I miss to delete/clean something the first time?</FONT>
<BR><FONT SIZE=2 FACE="Arial">Is it normal that the file is created when I delete the datasource? >delete poODS;</FONT>
<BR><FONT SIZE=2 FACE="Arial">Have you any idea about the origin of this problem?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thank you...</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Paul De Vlieger</FONT>
</P>
</BODY>
</HTML>