Re: [gdal-dev] trying to fetch the data from raster and assign it to the polygon attribute

2012-10-29 Thread Kyle Shannon
You can specify the fieldname after the layername, see the documentation: http://gdal.org/gdal_polygonize.html gdal_polygonize.py [-8] [-nomask] [-mask filename] raster_file [-b band] [-q] [-f ogr_format] out_file [layer] [fieldname] kss On Mon, Oct 29, 2012 at 4:10 PM, Smaran Harihar wrote: >

[gdal-dev] trying to fetch the data from raster and assign it to the polygon attribute

2012-10-29 Thread Smaran Harihar
Hi, I am a newbie in GDAL and I recently used gdal_polygonize to convert a raster (Tiff) to polygon. The problem is that I wish to also assign the pixel values to the attribute table of the polygon. Is it possible? When I converted the raster into polygon, I was only able to see DN as another fie

Re: [gdal-dev] Croping raster map but keeping up the grid without resampling

2012-10-29 Thread Etienne Tourigny
if your source raster is in lat/lon then you supply the lat/lon corner coordinates of your source window, using the -projwin argument. Sorry for the confusion. On Mon, Oct 29, 2012 at 11:44 AM, Luis Lisboa wrote: > Hi > Yes I was using GDALWARP > The prtobvlem with scrwin in gdal_translater is th

Re: [gdal-dev] Croping raster map but keeping up the grid without resampling

2012-10-29 Thread Luis Lisboa
Hi Yes I was using GDALWARP The prtobvlem with scrwin in gdal_translater is that I want to cut my window based on Lat/lon coordinates and not lines and columns. So again, how can I cut a raster image, based on coordinates /x, y min,max) and keeping up a pixel matching grid from the original image?

Re: [gdal-dev] Ogr and Dwg via Teigha (in C#)

2012-10-29 Thread Tamas Szekeres
You might also take a look at the -dev packages at http://www.gisinternals.com/sdk/ The compilation is controlled by a single makefile, so you can use: nmake gdal nmake gdal-csharp to achieve the desired result. Best regards, Tamas 2012/10/29 Noon Silk > On Mon, Oct 29, 2012 at 9:47 PM, Ta

Re: [gdal-dev] Ogr and Dwg via Teigha (in C#)

2012-10-29 Thread Noon Silk
On Mon, Oct 29, 2012 at 9:47 PM, Tamas Szekeres wrote: > This doc is fairly old (written by me ;-) , but the build process hasn't > been changed for years. What did you mean by "it doesn't appear to be > included as part of any existing build/packaging process"? I guess what I meant here is that

Re: [gdal-dev] Croping raster map but keeping up the grid without resampling

2012-10-29 Thread Etienne Tourigny
I guess you are using gdalwarp (although you didn't specifically mention it). You should be using gdal_translate with the -srcwin option Etienne On Mon, Oct 29, 2012 at 6:47 AM, Luis Lisboa wrote: > Greetings > > I have a raster image and I want to crop a piece of it(usin -te) but I want > to

Re: [gdal-dev] problem in removing feature

2012-10-29 Thread Chaitanya kumar CH
Siva, Make sure you open the data source with the bUpdate option set to TRUE in OGROpen(). On Mon, Oct 29, 2012 at 4:14 PM, SIVA RAMA KRISHNA wrote: > hai chaitanya, > > >I have a single layer shape file with many features > > I want to remove a feature by the following w

Re: [gdal-dev] Ogr and Dwg via Teigha (in C#)

2012-10-29 Thread Tamas Szekeres
This doc is fairly old (written by me ;-) , but the build process hasn't been changed for years. What did you mean by "it doesn't appear to be included as part of any existing build/packaging process"? Best regards, Tamas 2012/10/29 Noon Silk > Answering my own question, I've found that this

[gdal-dev] Croping raster map but keeping up the grid without resampling

2012-10-29 Thread Luis Lisboa
Greetings I have a raster image and I want to crop a piece of it(usin -te) but I want to keep: - the same spatial resolution (use -tr ) - and keep the same grid (avoiding mismatching from original image). Is this possible? If yes, how? because all my attempts there is a slightly mismatch between o