[Gdal-dev] sterea not recognized by gdalwarp

Frank Warmerdam fwarmerdam at gmail.com
Tue Mar 1 12:27:25 EST 2005


On Tue, 1 Mar 2005 16:40:21 +0100, Maciek Sieczka <werchowyna at pf.pl> wrote:
> Hi
> 
> I want to use the sterea projection with gdalwarp, but it doesn't recognize
> the +proj=sterea as a valid option. What's the problem?
> 
> [pingwin at localhost etm+24_05_2001]$ gdalwarp -t_srs "+proj=sterea
> +lat_0=51.67083333333333 +lon_0=16.67222222222222 +k=0.999800 +x_0=3703000.0
> +y_0=5627000.0 +ellps=krass
> +towgs84=33.4297,-146.5746,-76.2865,-0.35867,-0.05283,0.84354,-0.8407728
> +units=m" p190r024_7p20010524_z33_nn80.tif
> u65_sterea_p190r024_7p20010524_z33_nn80.tif

Maciek, 

The problem is that GDAL internally uses OGC Well Known Text
format for coordinate systems, even though at the low level it
uses PROJ.4 for transformations.  So when you give a PROJ.4
definition on the commandline it is internally transformed into
WKT format, and then when the transformer is initialized at a very
low level it is turned by into PROJ.4 format.  

This works OK for PROJ.4 projections and options that the
OGRSpatialReference class knows how to translate but not for
others.  

In this case, I have no WKT analog for sterea, and so it is
unusable from gdalwarp.  Sorry!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list