[Gdal-dev] troubleshooting "Option -prjwin incomplete, or not recognised."

Bryan Keith bryan at geomega.com
Thu Oct 12 14:36:25 EDT 2006


Matt,

Try removing the commas:

gdal_translate -prjwin 527609.250 6699639.000 562350.500 6667716.500 
-outsize 600 600  bigass.pix test.tif

Bryan

Matt Wilkie wrote:
> Hi all,
> 
> I'm trying to extract a subset of a PCI .pix image with gdal_translate 
> but I keep getting the error "Option -prjwin incomplete, or not 
> recognised.". What is wrong with my command syntax?
> 
>  >>   gdal_translate -prjwin 527609.250, 6699639.000 562350.500, 
> 6667716.500 -outsize 600 600  bigass.pix test.tif
>     Option -prjwin incomplete, or not recognised.
> 
>     Usage: gdal_translate [--help-general]
>         [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
> ...snip...
> 
> gdalinfo for the source image reports:
> 
>  >> gdalinfo bigass.pix
> Driver: PCIDSK/PCIDSK Database File
> Size is 138965, 127690
> Coordinate System is:
> PROJCS["UTM Zone 8, Northern Hemisphere",
> 	...blah blah...
> Metadata:
>    SOFTWARE=PACEV9.1
> 	...blah blah...
> Corner Coordinates:
> Upper Left  (  492868.000, 6731561.500) (135d 7'50.57"W, 60d43'10.52"N)
> Lower Left  (  492868.000, 6667716.500) (135d 7'42.36"W, 60d 8'46.84"N)
> Upper Right (  562350.500, 6731561.500) (133d51'26.58"W, 60d42'53.22"N)
> Lower Right (  562350.500, 6667716.500) (133d52'38.36"W, 60d 8'29.94"N)
> Center      (  527609.250, 6699639.000) (134d29'54.44"W, 60d25'55.53"N)
> Band 1 Block=138965x1 Type=Byte, ColorInterp=Undefined
> 	...blah blah...
> 
> 
> note that in this example I extracted the projwin coordinates from the 
> gdalinfo center point and the lower right.
> 
> thanks in advance for your time.
> 



More information about the Gdal-dev mailing list