Hi,
I need some help to Display GeoTIFFs with pyramid information.
The GeoTIFF is a large file (13GB). For several zoom level the GeoTIFF stores tiles.
Using QGIS the GeoTIFF is displayed well.
How to Display such file in MapSuite?
Regards
Hardy
GeoTIFF with pyramid
Hi Hardy,
We hadn’t tried to render a Geotiff file so big, have you met any exception?
Our map have managed and unmanaged mode to render Geotiff, unmanaged mode call geotiff library for render it, I think you should want to test both of them, maybe unmanaged can handle this file better.
Regards,
Don
Hi Don,
it’s a bit ugly …
when I try to load the file as RasterLayer/GeoTIFF like
Dim TiffRasterLayer As GeoTiffRasterLayer = New GeoTiffRasterLayer(LayerPath)
MapSuite loads the file but calling .open() Methode Fails.
Opening the same a second time MapSuite opens the layer but when refreshing the Map an exception will be raised:
"This Layer doesn’t have a boundingBox."
I think MapSuite doesn’t load the pyramid GeoTIFF well because there is not tfw and looking at the properties of TiffRasterLayer I can’t see any Information about Resolution, coordinates etc.
If you like I can upload the file (13 GB!)
Regards
Hardy
Hi Hardy,
Our managed mode don’t support embed bouding box, so have you tried to load your big file with unmanaged mode?
GeoTiffRasterLayer layer = new GeoTiffRasterLayer();
layer.LibraryType = GeoTiffLibraryType.UnmanagedLibTiff;
13gb is too big, so if we can find another solution I think we don’t need upload it.
Regards,
Don
Hi Don,
i have changed my Code to unmanaged mode.
Now I’m getting an exception "System.AccessViolationException"
I’m running on Windows10, x64.
16GB RAM. MapSuite 9.0.155.0 Full Developement.
VisualStudio2013
Any idea?
Regards
Hardy
Hi Hardy,
I am sorry to hear unmanaged mode still cannot works, and it looks that’s a general exception which should be thrown from c++ dll.
I think we cannot give more suggestion about that, please try to upload your data and test project to our FTP, we will try to reproduce that and see whether it can be solved.
In fact we hadn’t tried to render a so big tiff file and we cannot find a test data for it.
Regards,
Don
Hi Don,
last days I have tried to upload the GeoTIFF but it seems to me that the quota at clients.thinkgeo.com
to upload is to small…
Please could you check so I can upload 13 GB.
Regards
Hardy
Hi Hardy,
I think the only way for upload 13GB file should be use our FTP, I thought you should have an account, but it looks you don’t have.
So please contact your sales to get your account.
Regards,
Don
Hi Don,
it was a little challenge to transfer the GeoTIFF.
I have uploaded as ZIP with 17 Segments.
Please have a look…
Regards
Hardy
Hi Hartwig,
I’m downloading for these segments. When it download completely, I will try to reproduce this issue ASAP.
Thanks,
Hi Hartwig,
I have downloaded your tiff data.
Unfortunately, as so far, the version of your tiff data isn’t supported, your tiff data version is 6.0, it is a new tiff version format. I think we can support it future. If you are urgent on it, you can contact sales@thinkgeo.com . If it isn’t urgent, you can vote on helpdesk.thinkgeo.com/EnhancementTracker?product=Map_Suite_Desktop_Edition.
Thanks,
Don,
thanks for your Support.
I will contact sales.
Regards
Hardy
Hi Hardy,
It should have been support in the latest Development version 9.0.190.0 or later, but please apply the attached TFW file to the demo file you updated to us.
Thanks,
Johnny
2013_Gelsenkirchen.zip (213 Bytes)
Johnny,
sorry for getting back very late.
I have tried to load the Raster.
The layer will be created but nothing is displayed.
What to do?
My Code:
Public
Sub
LoadGeoTiffLayer(LayerPath
As
String
, tfw
As
String
)
Try
Dim
TiffRasterLayer
As
GeoTiffRasterLayer =
New
GeoTiffRasterLayer(LayerPath, tfw)
TiffRasterLayer.LibraryType = GeoTiffLibraryType.UnmanagedLibTiff
With
TiffRasterLayer
.IsVisible =
True
.Name =
"Tiff"
.Open()
End
With
tifOverlay.Layers.Add(TiffRasterLayer)
Catch
ex
As
Exception
End
Try
End
Sub
Hi Hartwig,
Recently, we enhanced some features on Managed GeoTiff include:
1. Supporting for pyramid geo tiff reading.
2. Supporting for reading embed World file.
3. Supporting for reading projection information.
I have viewed your source codes, I think you open the tiff file with “UnmangedLibTiff” is not necessary.
I implemented the pyramid tiff reading just only on “ManagedLibTiff”. So, following statements are available:
Public Sub LoadGeoTiffLayer(LayerPath As String, tfw As String)
Try
Dim TiffRasterLayer As GeoTiffRasterLayer = New GeoTiffRasterLayer(LayerPath, tfw)
With TiffRasterLayer
.IsVisible = True
.Name = "Tiff"
.Open()
End With
tifOverlay.Layers.Add(TiffRasterLayer)
Catch ex As Exception
End Try
End Sub
Thanks,
Hi Don,
I have changed to managed library.
But now getting an NullReferenceException.
As you remember I’m dealing with the 13 GB pyramid tiff…
Any snippet to load that raster file?
Regards Hardy
Me again.
I’m using Daily Full Production 9.0.0.221
Hi Hartwig,
We just made the enhancements to Development branch instead of Production, please try it again.
Thanks,
Johnny
Hi Johnny,
thank you for your support.
It’s working after I assigned a projection to ImageSource.
One Problem: The Raster is displayed with a black Background. How to turn off the Black?
Regards
Hardy
Hi Hardy,
I think that’s should related with your data, our developer tried to open your data by some other software and it also have the black area there.
You should want to get a transparent version from your data provider.
Regards,
Don