MapWindow Developer Team : MapWindow Discussion Forum
Hi All, Could anybody please tell about these poitns? 1) waht is the difference between MapWinGIS.Grid and MapWinGIS.Image class? (As i understand Image class is for any normal picture like .bmp whereas Grid class is for Geo-Referenced image like Geotiff, am i right???)
MapWinGIS.Grid versus MapWinGIS.Image
Posted by: meetmukesh ()
Date: January 14, 2010 03:41AM

Hi All,

Could anybody please tell about these poitns?
1) waht is the difference between MapWinGIS.Grid and MapWinGIS.Image class? (As i understand Image class is for any normal picture like .bmp whereas Grid class is for Geo-Referenced image like Geotiff, am i right???)

2) I am using following code to open a geotiff file in MapControl, but everytime its giving error : "Interface Not Supported"!!
Dim grid As New MapWinGIS.Grid()
Dim success As Boolean
success = grid.Open("D:\GIS_Data_Tiles\DEM_51_06.tif")
If Not success Then
MsgBox("There was an error opening the image.")
End If
AxMap1.AddLayer(grid, True)

3) I want to access each and every Lat/Long/Altitude value stored in goetiff image (by moving the mouse over the image)and show them in three textboxes(lets say). what procedure shall i follow and what function shall i use to get this?

Thanks and regards,

Options: ReplyQuote
Re: MapWinGIS.Grid versus MapWinGIS.Image
Posted by: meetmukesh ()
Date: January 17, 2010 11:57PM

I have been able to open Goetiff file using GridToImage() method. is it thr right approach?

I can access the columns and rows of the image using
x=14026
y=179926
"GridObject.CellToProj(x, y, col, row)"
but how to get the altitude value associated with this point??

hoping for reply..

Options: ReplyQuote
Re: MapWinGIS.Grid versus MapWinGIS.Image
Posted by: pmeems ()
Date: January 18, 2010 02:19AM

The MapWinGIS.Image class is for geo-referenced image files, like tiff, gif, jpg.

The MapWinGIS.Grid class is for grids.
To show a grid in MapWindow you need to create an image of it using the GridToImage() method.

To get the value (altitude in your case) of a grid use Grid.Value()

Hope it helps,

Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote
Re: MapWinGIS.Grid versus MapWinGIS.Image
Posted by: meetmukesh ()
Date: January 18, 2010 10:58PM

Thank You, I got it working.

Options: ReplyQuote
Re: MapWinGIS.Grid versus MapWinGIS.Image
Posted by: seum ()
Date: September 03, 2010 04:54AM

hi,
i need to get the altitude of an Image file (dted)
how can i do this?

thanks

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: