[Proj] Projection conversion problem

Norman Vine nhv at cape.com
Tue Jun 28 09:06:30 PDT 2016


I believe you are looking for the plate caree projection
https://epsg.io/32662

   from: +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
   to:     +proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs

"eqc" above is "Equidistant Cylindrical (Plate Caree)" - which is an alias of OGC WKT Name: "Equirectangular"

You will need to truncate this to integer

Norman


> On Jun 28, 2016, at 11:43 AM, Damian Rakowski <damian.rakowski at yahoo.com> wrote:
> 
> 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
> 
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj




More information about the Proj mailing list