[gdal-dev] using gdal_translate with -dsco switch

Brian Hamlin maplabs at light42.com
Wed Jan 9 17:05:23 EST 2008


I think altitudeMode is for ogr2ogr using the KML driver.. thats where 
I have used it
  -Brian

On Jan 9, 2008, at 1:33 PM, Dane Springmeyer wrote:

> I am converting elevation data in Gtiff format to contours in KML 
> format, but running into a usage problem when attempting to create 3D 
> contours.
>
> I noted the discussion here about enabling correct 3D representation 
> in Google Earth (This is a great addition):
> http://trac.osgeo.org/gdal/ticket/1570
> and the need to use driver specific name=value option for ogr2ogr of 
> "-dsco AltitudeMode=absolute" here:
> http://www.gdal.org/ogr/drv_kml.html
>
> When I attempt to use it with gdal_translate the utility simply 
> returns the usage instructions. I'm guessing that either I am putting 
> the flag in the wrong place or this option is not enabled in 
> gdal_contour, even though I am able to successfully write KML with 
> gdal_contour. 
>
> I'm running GDAL 1.5.0b2 on mac os x. This works for me:
> gdal_contour -f KML -i 5.0 blakely.tif five_meter_contours.kml         
>       //Note: the -3d switch is left out intentionally since it does 
> not seem to affect KML output
>
>
> These do not:
> gdal_contour -f KML -i 5.0 blakely.tif five_meter_contours.kml -dsco 
> AltitudeMode=absolute
> gdal_contour -f KML -dsco AltitudeMode=absolute -i 5.0 
> blakely.tif five_meter_contours.kml
>
> Anyone have ideas of the problem?  
>
> Regards,
>
> Dane
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list