[Proj] cs2cs returns error then 0s with datum conversion
Mikael Rittri
Mikael.Rittri at carmenta.com
Wed Jan 12 04:31:48 EST 2011
Eric wrote:
> Maybe someday an enterprising soul will convert cs2cs to use National Geodetic Survey's
> current correction file format directly...
Or maybe Frank would be willing to convert these files (conus, alaska, etc.)
to the NTv2 format (and publish them), since he has already developed tools
for that conversion, and since cs2cs already understands that format.
(See http://lists.maptools.org/pipermail/proj/2010-August/005330.html )
Of course, this would help only if the NTv2 format is unaffected by
the 32-bit/64-bit issue. I don't know for certain if that's true.
Mikael Rittri
Carmenta
Sweden
http://www.carmenta.com
-----Original Message-----
From: proj-bounces at lists.maptools.org [mailto:proj-bounces at lists.maptools.org] On Behalf Of Eric Miller
Sent: Tuesday, January 11, 2011 11:10 PM
To: proj at lists.maptools.org
Subject: Re: [Proj] cs2cs returns error then 0s with datum conversion
I'm going to guess that your binary NAD files (conus, etc.) do not match your architecture. If your Proj.4 binaries are 64-bit, you need 64-bit NAD files. Likewise, if you have 32-bit binaries, you need 32-bit NAD files. You can confirm that is the problem by using cs2cs with +towgs84 parameters instead of +nadgrids.
The NAD *.lla files are converted to platform specific binary data structures during the build process (via nad2bin.exe). Maybe someday an enterprising soul will convert cs2cs to use National Geodetic Survey's current correction file format directly...
--
Eric G. Miller
Staff Programmer
CA Dept. of Fish & Game
>>> On 1/11/2011 at 11:47 AM, "R. Jay Flaming" <jflaming at uw.edu> wrote:
> I'm trying to de-arcgis a script I have written in python for
> processing some database coordinates by using proj to replace the ESRI
> geoprocessor. I have installed proj4 and I call it from subprocess
> popen.
> Proj itself works fine, but cs2cs is not working for me, either in
> python or directly from the command line. No matter what I enter, if
> I use a nad27 to nad83 conversion or vice versa, the first pair of
> coordinates I enter return asterisks, and all further requests yield
> 0s.
> Windows 7, 64 bit workstation, with Proj installed to the default
> directory (c:\proj). I've set the path.
> I'm sure I'm missing something simple... can anyone help?
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~
> R. Jay Flaming
> Digital Archaeology Research Laboratory, University of Washington
> jay.flaming at gmail.com ~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
_______________________________________________
Proj mailing list
Proj at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj
More information about the Proj
mailing list