<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt'>
<p>Hello,</p>
<p><br /></p>
<p>looks like the following quote is the main reason to avoid the "auto" implementations unless the method used for the source material is well known:</p>
<p><br /></p>
<p>"However, it is often convenient or necessary to measure a series of locations on a single grid when some are located in two adjacent zones."</p>
<p><br /></p>
<p>source:</p>
<p>https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system#Overlapping_grids</p>
<p><br /></p>
<p>Janne.</p>
<p><br /></p>
<p>-------------------------</p>
<p><br /></p>
<p>Robb Main kirjoitti 2018-10-29 17:30:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">When converting many lat,long coordinates to UTM, is there some way to setup cs2cs to calculate the UTM zone based on the longitude of the source cordinate system, rather than having to specify the zone on the command line?
<div>&nbsp;</div>
<div>What I'm looking for is something like: instead of this:</div>
<div>&nbsp; cs2cs&nbsp;+proj=latlong&nbsp;+data=NAD83&nbsp;+to +proj=utm&nbsp;+zone=10&nbsp;+datum=NAD27 ./input.data</div>
<div>you could instead specify:</div>
<div>
<div>&nbsp; cs2cs&nbsp;+proj=latlong&nbsp;+data=NAD83&nbsp;+to +proj=utm&nbsp;+zone=auto +datum=NAD27 ./input.data</div>
where 'zone=auto' might tell the algorithm to figure the zone out based on longitude of the input coordinate. This would ensure the output data would be correct, even if the input data file contains coordinates that span multiple UTM zones.</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Proj mailing list<br /> <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br /> <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank" rel="noopener noreferrer">http://lists.maptools.org/mailman/listinfo/proj</a></div>
</blockquote>
<p><br /></p>
</body></html>