Title: Message
I actually need the output in Decimal Degrees, the problem seems to be converting from EN to LL within the batch script.  I keep getting EN coordinates output despite the changes I've made to the get algorithm topleft (from eastings|northings to latitude|longitude) and set algorithm coordsys to ll.  I'm guess this is because the batch script is reading the coordinates from the ERS file and not from the geoposition function within ERM.
 
I may have found a way to convert the EN coordinates in a text file to LL using Maps3D, but I'll have to wait a few days to test that out.  It's too bad I couldn't find a way to do it in ERM, I thought I was getting really close with the togeo utility, but at 3am last night I had to give up and look for either another solution or some help.  Too bad Eric hasn't offered one of his batch script writing course in Vancouver, BC in the last few years.  Thanks again for the utility Lance, it works really slick.
 
Adam
 
 
----- Original Message -----
Sent: Friday, May 03, 2002 10:22 AM
Subject: RE: togeo utility use in batch script

or you can just add code to convert the output decimal degrees to degrees minutes and seconds.  the rundown....(taken from about.com)
 
1. The whole units of degrees will remain the same (i.e. in 121.135� longitude, start with 121�).
2. Multiply the decimal by 60 (i.e. .135 * 60 = 8.1).
3. The whole number becomes the minutes (8').
4. Take the remaining decimal and multiply by 60. (i.e. .1 * 60 = 6).
5. The resulting number becomes the seconds (6"). Seconds can remain as a decimal.
 
Take your three sets of numbers and put them together, using the symbols for degrees (�), minutes ('), and seconds (") (i.e. 121�8'6" longitude)
 
 
yeah!  more text parsing and converting to numbers!  that will probably eat a lot of CPU cycles and memory, though.
 
 
-----Original Message-----
From: Adam Inglis [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 11:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: togeo utility use in batch script

Hi All,
 
Does anyone have an example of how to integrate the togeo utility program shipped with ERM into a batch script?  Thanks to Lance I have a batch script that will provided me the bounding coordinates of ERS datasets in East/North.  Unfortunately, converting the output coordinates to Lat/Long seems to be more complicated than changing the get algorithm topleft from eastings|northings to latitude|longitude.  I also tried adding the set algorithm coordsys to ll, with no luck.  The coordinate values are still returned as the local projected coordinates, and not as geographical.  My only option seems to be to use the togeo utility to convert the coordinates in the batch script before they are output the text file.  Any help would be greatly appreciated.
 
Best Regards,
 
============================
Adam Inglis
Remote Sensing Specialist
Spatial Mapping Ltd.
1655 Knight Avenue
Victoria, BC, Canada
V8P 1L4
 
http://www.spatialmapping.com
email: [EMAIL PROTECTED]
phone: 250 519 0294
fax: 250 519 0294
============================
 
----- Original Message -----
From: "Mike Dunne" <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 12:43 AM
Subject: RE: utm29 to utm30 using the ermapper formulas

> Hi,
> The map to map process consists of two steps -
> 1. togeo (i.e. UTM -> LatLong)
> 2. fromgeo (i.e. LatLong -> UTM)
>
> To do a point conversion you can use the utility programs
> shipped with ER Mapper -
> togeo
> fromgeo
> gdt_conv
> gdt_conv_cmd.
>
> The last two do both steps (e.g. UTM29 -> UTM30).
> You could integrate these into a batch script to apply them
> to a collection of points.
>
> good luck
> Mike
>
>
> > -----Original Message-----
> > From:
[EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Antonio Jos�
> > Rodr�guez P�rez
> > Sent: Monday, 11 June 2001 2:59 PM
> > To:
[EMAIL PROTECTED]
> > Subject: utm29 to utm30 using the ermapper formulas
> >
> >
> > Hullo all!
> >
> > I am trying to find the formulas that the geocoding wizard
> > tool uses to make the map to map projection. I am interested
> > on the formula "utm29 to utm30"  to produce a text file
> > output with thousand of points that will be located over the
> > reprojected imaged (utm30).
> > Does somebody know how to get them?
> >
> > Thank you in advanced.
> > Antonio Jos� Rodr�guez P�rez
> > Dap SA. Seville.
> >
> >
> > -----------------------------------------------------------
> >
> > To make changes to your subscription, please visit our
> > website,
http://www.ermapper.com/technicl/ermapperl/index.htm
> >
> >
>
> -----------------------------------------------------------
>
> To make changes to your subscription, please visit our website,
http://www.ermapper.com/technicl/ermapperl/index.htm
>

Reply via email to