<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">



<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Thanks Guys..</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">The following command helped me achieve it.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:black">ogr2ogr -dsco FORMAT=GML3 -t_srs &quot;EPSG:4283&quot; -f &quot;GML&quot; &lt;output.xml&gt; &lt;input.MID&gt;</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Even Rouault [via OSGeo.org] [mailto:ml-node&#43;<a href="/user/SendEmail.jtp?type=node&node=7120230&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>]
<br>
<b>Sent:</b> Thursday, 22 December 2011 8:10 PM<br>
<b>To:</b> Sundaram, Shrikant<br>
<b>Subject:</b> Re: Conversion of MapInfo to GML using ogr2ogr - lat/long format issue</span></p>
</div>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Hi, <br>
<br>
&gt; I am getting the results in long/lat format but I need them in lat/long <br>
&gt; format. <br>
&gt; <br>
&gt; Reading through some material on the net I set the below environment <br>
&gt; variables as well but to no use. <br>
&gt; <br>
&gt; GDAL_DRIVER_PATH=C:Program FilesGDALbingdalplugins <br>
&gt; GML_CONSIDER_EPSG_AS_URN=YES <br>
<br>
You can remove GML_CONSIDER_EPSG_AS_URN which has only an influence when reading <br>
GML, not writing GML. </p>
<div>
<p class="MsoNormal"><br>
&gt; <br>
&gt; Does someone have any tips or tricks on how to generate or convert the <br>
&gt; coordinates into lat/long format? <br>
&gt; <br>
&gt; Here is the command I used. <br>
&gt; <br>
&gt; ogr2ogr -t_srs &quot;EPSG:4283&quot; -f &quot;GML&quot; &nbsp;output.XML input.MID <br>
&gt; <br>
&gt; Current Output <br>
&gt; ---- <br>
&gt; ...&lt;gml:coordinates&gt;115.879512,-31.9709 115.880008,-31.970772 <br>
&gt; 115.880448,-31.970646 .... <br>
&gt; ----- </p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
By default, the GML driver writes GML2.1 geometries, that traditionnaly didn't <br>
honour EPSG axis ordering rules. <br>
<br>
If you add -dsco FORMAT=GML3 , then you will have GML3 geometries, and by <br>
default the coordinates for a SRS like EPSG:4283 will be written in lat/long <br>
order (because the default value of the dataset creation option GML3_LONGSRS is <br>
YES). <br>
<br>
For more details on those 2 creations options, you can refer to <br>
<a href="http://gdal.org/ogr/drv_gml.html" target="_top" rel="nofollow" link="external">http://gdal.org/ogr/drv_gml.html</a><br>
<br>
Best regards, <br>
<br>
Even <br>
_______________________________________________ <br>
gdal-dev mailing list <br>
<a href="/user/SendEmail.jtp?type=node&amp;node=7117977&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
</p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" align="center" style="color:#CCCCCC">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;; color:#444444">If you reply to this email, your message will be added to the discussion below:</span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;; color:#444444"><a href="http://osgeo-org.1803224.n2.nabble.com/Conversion-of-MapInfo-to-GML-using-ogr2ogr-lat-long-format-issue-tp7117273p7117977.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/Conversion-of-MapInfo-to-GML-using-ogr2ogr-lat-long-format-issue-tp7117273p7117977.html</a>
</span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;; color:#666666">To unsubscribe from Conversion of MapInfo to GML using ogr2ogr - lat/long format issue,
<a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&amp;breadcrumbs=instant&#43;emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt; font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">NAML</span></a>
</span></p>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Subject to local law, communications with Accenture and its affiliates including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal
 compliance with Accenture policy.<br>
______________________________________________________________________________________<br>
<br>
www.accenture.com<br>
</font>



        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Conversion-of-MapInfo-to-GML-using-ogr2ogr-lat-long-format-issue-tp7117273p7120230.html">RE: Conversion of MapInfo to GML using ogr2ogr - lat/long format issue</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/GDAL-Dev-f2022644.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>