[Proj] setting lambert conformal conic projection in gdalwarp

Jose Gonçalves jagoncal at gmail.com
Tue Aug 16 17:28:20 EST 2011


Matt

There is a problem with the lcc projection. The two latitudes +lat_1 and
+lat_2 define the standard parallels, where the cone intersects the
ellipsoid. They can't be both zero (the cone would degenerate into a
cylinder).

There are two more possible problems.
In the source coordinate system there is no ellipsoid definition. It seems
that gdalwarp is assuming to be WGS84.
In the output system you have UTM in uppercase. The proj standard is
lowercase.

Regards

José


2011/8/16 Mathew Fox <mathewfoxx at gmail.com>

> Hi all,
>
> I am having problems with the Lambert Conformal Conic projection.
>
> I am trying to convert an LCC file into UTM:
>
> gdalwarp -of GTiff -s_srs '+proj=lcc +lat_1=0 +lat_2=0 +lat_0=50  +lon_0=0
> +x_0=0 +y_0=0 +units=m +no_defs' -t_srs '+proj=UTM +zone=18 +units=m
> +datum=NAD83 +no_defs' cols.asc cols.tif
>
> I got the parameters from an existing LCC file.
>
> Problem is, when I try to set this projection to my file I get an error
> about the projection parameters.
> ERROR 6: Failed to initialize PROJ.4 with `+proj=lcc +lat_1=0 +lat_2=0
> +lat_0=50 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs '.
> conic lat_1 = -lat_2
>
> Thank you in advance for any suggestions.
>
> Matt.
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/proj/attachments/20110816/a277150d/attachment.htm 


More information about the Proj mailing list