[postgis-users] transformation discrepancy with postgis v. cs2cs

Doug_Newcomb at fws.gov Doug_Newcomb at fws.gov
Fri Mar 26 10:42:52 PDT 2010


aptitude search "string"

Doug Newcomb 
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb at fws.gov
---------------------------------------------------------------------------------------------------------
The opinions I express are my own and are not representative of the 
official policy of the U.S.Fish and Wildlife Service or Dept. of the 
Interior.   Life is too short for undocumented, proprietary data formats.



Paul Ramsey <pramsey at cleverelephant.ca> 
Sent by: postgis-users-bounces at postgis.refractions.net
03/26/2010 01:38 PM
Please respond to
PostGIS Users Discussion <postgis-users at postgis.refractions.net>


To
PostGIS Users Discussion <postgis-users at postgis.refractions.net>
cc

Subject
Re: [postgis-users] transformation discrepancy with postgis v. cs2cs






Does apt have a search function? Probably the proj packagers broke the
grid files out into a different proj-something package?

P

On Fri, Mar 26, 2010 at 10:23 AM, Bryan Keith <bryan at ideotrope.org> wrote:
>>>>
>>>> Something is definitely strange with the PROJ.4 installation on that
>>>> one system. If I had to guess, you compiled PROJ.4 yourself, but
>>>> didn't unzip the gridshift files in the nad folder before ./configure
>>>> ? It should be apparent that the grid shift files are installed with
>>>> the make install command.
>>>
>>>
>>>>
>>>> Try reinstalling the PROJ.4 library with the gridshift files intact,
>>>> and it should affect both PostGIS and cs2cs (since they use the same
>>>> system library).
>>>
>>> Should I just try:
>>>
>>> sudo apt-get install proj
>>
>> I tried this and got the message:
>>
>> proj is already the newest version.
>> proj set to manually installed.
>>
>> Manually installed?  I wonder why that is.
>>
>> Where is it installed?  I search for a nad directory and only found 
this
>> one:
>>
>> /usr/lib/grass/etc/nad
>>
>> I didn't try doing the coordinate conversion in GRASS since I don't 
know
>> how to use GRASS, but the nad directory seems to have the uncompressed
>> grid shift files:
>>
>> -rw-r--r-- 1 root root 1053896 2008-05-29 14:33 alaska
>> -rw-r--r-- 1 root root  264392 2008-05-29 14:33 conus
>> -rw-r--r-- 1 root root    8840 2008-05-29 14:33 FL
>> -rw-r--r-- 1 root root  451976 2008-05-29 14:33 hawaii
>> -rw-r--r-- 1 root root    3528 2008-05-29 14:33 MD
>> -rw-r--r-- 1 root root 1113184 2008-05-29 14:33 ntv1_can.dat
>> -rw-r--r-- 1 root root  318464 2008-05-29 14:33 nzgd2kgrid0005.gsb
>> -rw-r--r-- 1 root root   26696 2008-05-29 14:33 prvi
>> -rw-r--r-- 1 root root   59176 2008-05-29 14:33 stgeorge
>> -rw-r--r-- 1 root root   26696 2008-05-29 14:33 stlrnc
>> -rw-r--r-- 1 root root    7016 2008-05-29 14:33 stpaul
>> -rw-r--r-- 1 root root    4392 2008-05-29 14:33 TN
>> -rw-r--r-- 1 root root    6728 2008-05-29 14:33 WI
>> -rw-r--r-- 1 root root   11080 2008-05-29 14:33 WO
>>
>> I appreciate any suggestions.  I don't really know what I'm doing here.
>
> I tried reinstalling proj:
>
> sudo apt-get --reinstall install proj
>
> Do I need to do anything else to get the grid shift files?  Where should
> they be installed?  In the readme files, they give a cs2cs example, but 
I
> don't get the correct results.  Here's my version:
>
> cs2cs +proj=latlong +datum=NAD27 +to +proj=latlong +datum=NAD83
> -117 30
> 117dW   30dN 0.000
>
> Should be:
> 117d0'2.901"W   30d0'0.407"N 0.00
>
> Clearly I don't have the grid shift files, but I'm not sure where I'm
> supposed to get them or where they're supposed to be.
>
> Bryan
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100326/7bab68ab/attachment.html>


More information about the postgis-users mailing list