I have a bunch of geotiffs stored in a PostGIS DB that i am mounting on my OpenLayers map.
They all have the geoTransform information in them. I just want to know how i can mount them on my OpenLayers map with the correct affine transformation without running a gdalwarp on all the images. Though i wouldn't mind calling gdalwarp on the fly if possible. I just don't want to store those warped images in the DB (they take up 8x more space).
Can OpenLayers rotate my image based on the GeoTransform info in the GeoTiff? If so how?:
This is the code i'm using to overlay my tiff:
var bounds = MyOrg.UI.Map.Results.Layer.features[array_index].geometry.bounds;
var options = {
numZoomLevels: 15,
isBaseLayer: false,
resolutions: MyOrg.UI.Map.getMap().layers[0].resolutions,
maxResolution: "auto",
projection: MyOrg.UI.Map.Projections.Mercator,
strategies: [new OpenLayers.Strategy.Fixed()]
};
var graphic = new OpenLayers.Layer.Image(
'test',
'GranuleImage.ashx?granuleID=' + MyOrg.UI.Map.Results.Data.arrGranules[array_index].id + '&thumb=0',
bounds,
bounds.getSize(),
options
);
MyOrg.UI.Map.getMap().addLayer(graphic);