Hi
I am trying to display Tiff file using GeoTiffRasterLayer which displays nothing without any error. I made Tiff file using ArcMap. I am not sure whether i made Tiff correctly. But after i made Tiff file it can be seen in ArcMap. The Tiff file size is 608MB. Shall i send my data along with code ?
Regards,
Zeeshan
ZEESHAN,
There is another post which might has the same problem with you, please keep an eye on it
gis.thinkgeo.com/Support/Dis...fault.aspx
Thanks,
James
I am pasting code along with TIFF file attachment. Kindly check for me why its not displaying.
Private Sub LoadAGeoTiffImage_Load(ByVal sender As Object, ByVal e As EventArgs)New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)Dim worldImageLayer As New GeoTiffRasterLayer("..\..\SampleData\Data\kuwait61.tif")Double.MaxValueDim staticOverlay As New LayerOverlay()"WorldImageLayer", worldImageLayer)New RectangleShape(46.38, 30.1, 48.5, 28.5)'winformsMap1.CurrentExtent = New RectangleShape(-118.098, 84.3, 118.098, -84.3)End Sub
winformsMap1.MapUnit = GeographyUnit.DecimalDegree
winformsMap1.BackgroundOverlay.BackgroundBrush =
worldImageLayer.UpperThreshold =
worldImageLayer.LowerThreshold = 0
staticOverlay.Layers.Add(
winformsMap1.Overlays.Add(staticOverlay)
winformsMap1.CurrentExtent =
winformsMap1.Refresh()
hi James !
As i am working on VB so i converted the code using developervision.com but Map1.CustomOverLay does not come using MapSuit 4.5. any how i see studies the reference link u provided and i did in smilar way like :
winformsMap1.MapUnit = GeographyUnit.DecimalDegree
winformsMap1.BackgroundOverlay.BackgroundBrush = New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)
Dim worldImageLayer As New GeoTiffRasterLayer("…\Img\q8\kuwait61.tif")
Dim staticOverlay As New LayerOverlay()
staticOverlay.Layers.Add("WorldImageLayer", worldImageLayer)
winformsMap1.Overlays.Add(staticOverlay)
worldImageLayer.Open()
winformsMap1.CurrentExtent = worldImageLayer.GetBoundingBox()
worldImageLayer.Close()
But i cant see my data properly except flat pixel.
ZEESHAN,
Thanks for letting us know your status, I appreciate it very much.
Any more questions please feel free to let me know.
Thanks.
Yale