For solution providers and application developers rasdaman constitutes the ideal toolkit to rapidly enable your own products and applications with fast, flexible raster databases.
The following code piece sketches a rasdaman GIS coupling using some fictitious Java method crop_and_scale() which extracts a cutout from a map and scales it (without coordinate transformation, for reasons of simplicity):
RasterMap crop_and_scale ( Oid id, int xlo, int ylo, int xhi, int yhi, float s )
// get box (xlo,ylo) .. (xhi,yhi) from object with identifier id,
// scale it using scale factor s
{
OQLQuery myQu = myApp.newOQLQuery();
myQu.create( "select scale( map [ " + xlo + ":" + xhi + "," + ylo + ":" + yhi + "]," + s + ") from map where oid(map) = " + id );
// resulting query string is:
// "select scale( map [ xlo:xhi, ylo:yhi ], s ) from map where oid(map)=id"
DBag result = (DBag) myQu.execute();
// give back result to caller (we know there is only one element in the bag):
Iterator iter = result.iterator();
return( iter.next().getarray() );
}
|
Extensive documentation, programming examples as source snippets, and the HTML hypertext documentation give detailed help ona mouse click.