This project is read-only.

GeoTiff and DotSpatial (without GDAL extension)

May 10, 2012 at 5:30 PM

Dear all,
I have a geotiff with these properties (I read them with gdalinfo utility):

Size is 2640, 2012
Coordinate System is:
PROJCS["WGS 84 / UTM zone 33N",
    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"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",15],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","32633"]]
Origin = (396505.801139823680000,4203163.986622137000000)
Pixel Size = (0.021564895290329,-0.021564895290329)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  396505.801, 4203163.987) ( 13d49'18.16"E, 37d58'12.74"N)
Lower Left  (  396505.801, 4203120.598) ( 13d49'18.18"E, 37d58'11.33"N)
Upper Right (  396562.732, 4203163.987) ( 13d49'20.49"E, 37d58'12.76"N)
Lower Right (  396562.732, 4203120.598) ( 13d49'20.52"E, 37d58'11.35"N)
Center      (  396534.267, 4203142.292) ( 13d49'19.34"E, 37d58'12.05"N)

It's a geotiff without any tfw file: http://minus.com/lbfSmFdWpPOxkB

If I add it to DemoMap app of "DotSpatial 1.1 Extended" I have "Invalid or Missing Projection" window. Is it normal? Is DotSpatial able to read projection info of a Geotiff?

Then I use this window to set the right projection and click ok, but in the status bar I have wrong coordinates. It seems that it's impossible to read also the bounding box of a geotiff. I could add a tfw file, but I loose projection info.

Is there a way for dotspatial to read bounding box and projection of a raster file without using gdal extension?

Thank you