Re: [gdal-dev] crop a non-square subwindow?

2011-03-10 Thread Wendell Turner
On Thu, Mar 10, 2011 at 05:17:39PM -0500, Frank Warmerdam wrote: > On 11-03-10 05:07 PM, Wendell Turner wrote: > >Is there a way to force pixels outside of the cropping > >polygon to be 'not there', or transparent? Is there a burn > >value that indicates that?

Re: [gdal-dev] crop a non-square subwindow?

2011-03-10 Thread Wendell Turner
On Wed, Mar 09, 2011 at 06:05:20PM -0600, Marius Jigmond wrote: > On Wed, 2011-03-09 at 12:35 -0500, Frank Warmerdam wrote: > > On 11-03-09 11:51 AM, Wendell Turner wrote: > > > > > > Do any of the gdal utilities crop an image on non-square > > > boundaries?

[gdal-dev] crop a non-square subwindow?

2011-03-09 Thread Wendell Turner
Do any of the gdal utilities crop an image on non-square boundaries? I use gdal_translate with -projwin ulx uly lrx lry to crop an image that is square (left and right edges are vertical, and the top and bottom edges are horizontal). Is there a command that will crop other shapes, for instance a

[gdal-dev] combine shapefiles?

2010-10-12 Thread Wendell Turner
Is there a utility that will combine multiple shapefiles into one shapefile? I tried ogr2ogr with several combinations of arguments (overwrite, append, update) but it didn't work. Is there another utility that will will combine them? (mapserver queries don't seem to work right on layers with mul

Re: [gdal-dev] vrt removes transparent pixels?

2010-04-06 Thread Wendell Turner
.vrt cp centgrtlakes_radaronly.gif test.gif gdal_translate foo.vrt test.gif gimp centgrtlakes_radaronly.gif test.gif Also, I notice that the test.gif file is about ten times the size of the original one. Thanks, Wendell > On Wed, Apr 7, 2010 at 12:52 AM, Wendell Turner wrote: > > > I want to change

[gdal-dev] vrt removes transparent pixels?

2010-04-06 Thread Wendell Turner
I want to change the color palette on a gif file. The instructions on the wiki here: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable explain how to do it: gdal_translate -of VRT your.tif your.vrt gdal_translate your.vrt your_fixedup.tif but doing this (without

[gdal-dev] need help with geo-referencing

2010-02-17 Thread Wendell Turner
I'm trying to geo-reference a .tif image, but the corner coordinates don't change. I used gimp to get the pixel and lat/lng of 4 points on the image. I converted the lat/lng to the desired coordinates, then used this command: gdal_translate \ -a_srs epsg:3395 \ -gcp 1954 1085 -8682920.28

[gdal-dev] Telling lies with geotiif metadata

2008-08-26 Thread Wendell Turner
Hello! I am trying to do something I probably shouldn't ... I have about 30 geotiffs that tile the continental US (aviation sectional charts). Each of them uses a slightly different projection -- LCC with different standard parallels and origins for each chart. Using gdalwarp, I converted eve

[gdal-dev] ogrinfo and gml?

2008-07-21 Thread Wendell Turner
Why do the examples of ogrinfo not work? That is, the example shows a coal_dep.gml with contents of: 0.000 0.000 2 2 7 110 110 78.531,50.694 Yet ogrinfo doesn't recognize it: > ogrinfo coal_dep.gml FAILURE: Unable to open datasource `coal_dep.gml' with the following drivers. ...

Re: [gdal-dev] generate shapefile from program

2008-07-20 Thread Wendell Turner
On Sun, Jul 20, 2008 at 01:09:45PM +1000, [EMAIL PROTECTED] wrote: > > Can someone point me to a python program that will generate > > a shapefile from scratch? > > > > Given an extent, projection, and set of lat/lng to place > > some markers or images, I would like a python (or c or c++) > > progr