Hi All,
I'm tring to display an image file in open layers .. but i'm not able to do it
i'm starting from the image layer example .. so what i did is :
reproject my geotiff file to lonlat (epsg 4326)
extract the geographic information using gdalinfo :
Size is 2615, 2812
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (10.761638708120071,59.081962786832037)
Pixel Size = (0.000160206206100,-0.000160206206100)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 10.7616387, 59.0819628) ( 10d45'41.90"E, 59d 4'55.07"N)
Lower Left ( 10.7616387, 58.6314629) ( 10d45'41.90"E, 58d37'53.27"N)
Upper Right ( 11.1805779, 59.0819628) ( 11d10'50.08"E, 59d 4'55.07"N)
Lower Right ( 11.1805779, 58.6314629) ( 11d10'50.08"E, 58d37'53.27"N)
Center ( 10.9711083, 58.8567129) ( 10d58'15.99"E, 58d51'24.17"N)
Band 1 Block=2615x1 Type=Float32, ColorInterp=Gray
then i used gimp to convert the file to .gif
and i used this lines to add the layer in the open layers :
var graphic = new OpenLayers.Layer.Image(
'Depth',
'depthgeo.gif',
new OpenLayers.Bounds(10.7616387080555551, 58.6314629352787620,
11.1805779369442959, 59.0819627869444446),
new OpenLayers.Size(2615, 2812),
options
);
the results is an empty html page .. open layer is not loaded at all :(
the gif image is available here :
http://www.geofemengineering.it/depthgeo.gif
please thanks for any help!
--Massimo.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users