[Proj] Projection conversion problem

Hermann Peifer peifer at gmx.eu
Tue Jun 28 12:40:04 EST 2016


On 2016-06-28 18:06, Norman Vine wrote:
> 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
> 

With the given sample coordinates, this will give:

$ echo 2.2945 48.858222 | cs2cs -v +proj=longlat +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
# ---- From Coordinate System ----
#Lat/long (Geodetic alias)
#
# +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
# ---- To Coordinate System ----
#Equidistant Cylindrical (Plate Caree)
#	Cyl, Sph
#	lat_ts=[, lat_0=0]
# +proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m
# +no_defs +ellps=WGS84 +towgs84=0,0,0
255422.57	5438872.39 0.00

The expected result was: 27374451 582901293

Hermann


More information about the Proj mailing list