[GDAL-DEV] Query..
Frank Warmerdam
warmerdam at pobox.com
Thu May 4 14:44:14 EDT 2006
abhay menon wrote:
> Hello Lists,
>
> I have few queries ...
>
> 1) can I use two different dataset (MapInfo File and/or ESRI Shapefile)
> and preform a spatial operation and create a thrid output using the
> gdal/ogr libraries.
Abhay,
Well, you can certainly do this using OGR as a library. Depending
on the spatial operation you will likely need to have GEOS support.
> 2) If so can I prefrom a raster overlay analysis that could be conducted
> with a raster and a vector dataset, which is used to updates the vector
> dataset attributes with the certian values.
There are limited options currently for relating raster and vector data.
If you had vector polygons and you wanted to collect statistics from a
raster within the polygon you could use the new rasterization support to
generate a raster mask, and then use that to identify pixels in particular
polygons for statistics collection.
Generally speaking though, GDAL/OGR isn't going to do much of the work
for you. Mostly just the data access.
> PS. Is there any sample programmes to developing code using gdal/ogr
> libraries which I could lay my hands on.. other than source code of gdal.
Generally speaking no. There are a variety of sample scripts which
illustrate some of the concepts, and some commandline c/c++ programs
(the utilities).
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 | President OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list