Re: Rasters, Vectors and spatial databases

Frank Warmerdam <[email protected]>
Newsgroups gmane.comp.gis.freegis
Message-ID <[email protected]>
On 7/29/05, Jose Gomez-Dans <[email protected]> wrote:
> Hi!
> I'm working on writing some programs to analyse raster datafiles. So
> far, I have used gdal to load up the rasters. In order to carry out
> our analyses, we have downloaded from an Oracle Spatial database, the
> locations and atributes of a number of polygons, which have been
> subsequently rasterised to cover the same region and cell spacing as
> the rasters which we want to analyse. This works, and works pretty
> well. However, I would like to automatise that, because the data in
> the database changes every so often. Ideally, I would like to just
> point the program to the database and let it get the data, generate
> the vectors and carry out the pixel selection.
> 
> I'm not familiarised with the libraries that might be used to
> accomplish this. I would appreciate views on how to accomplish this
> (in its totality or even in parts!), what free sofware options are
> available, etc.

Jose, 

OGR, the vector side of GDAL/OGR can support Oracle Spatial,
so in if you build it carefully to include Oracle support you could use
OGR to extract the polygon(s) from Oracle.  Either at the commandline
with ogr2ogr, using the C++ API or perhaps from Python. 

I'm not sure what you have been using to rasterize he polygons so 
far, but I do know of folks doing this sort of thing with MapServer. 
The whole process could also be automated in GRASS which includes
GDAL raster access and OGR vector access as well as good polygon
rasterization for masking, and sophisticated sorts of raster analysis. 
You might need to be somewhat handy with shell scripting to automate
it in GRASS.

A variety of other options also exist of course.  

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.