[Proj] Projection conversion problem

Damian Rakowski damian.rakowski at yahoo.com
Tue Jun 28 10:43:21 EST 2016


Thank you for your reply. That's true i can convert it using scripts, 
but I was thinking about different use case. I had a hope that thanks to 
proj integration in postgis I could define new coordinate system with 
proper proj configuration string (similar to this one: 
http://spatialreference.org/ref/epsg/4326/postgis/), and use such 
encoded coordinates directly in postgis.

Best Regards,

Damian

W dniu 2016-06-27 o 20:14, Hermann Peifer pisze:
> On 2016-06-27 11:43, Damian Rakowski wrote:
>> I have coordinates in WGS84 like:
>>
>> 2.2945 48.858222
>>
>> and I need to transform them to WGS84-like projection with different
>> unit - encoded on integer.
>> Basically what I need to do is to transform coordinates in the following
>> way:
>>
>> floor(coordinate * 2^32/360)
>> 2^32/360 = 11930464,711111111111111111111111
>>
>>
>> After conversion I expect to get the following coordinates:
>>
>> 27374451 582901293
>>
> This looks like Garmin's "semicircle units". You don't need proj for
> calculating them. Any of awk/perl/python/ruby/... will do.
>
> Hermann



More information about the Proj mailing list