VDS Technologies

 

Unable to load tif layer

9/9/2014 11:54:59 AM
Total Posts 13

Unable to load tif layer

I can not  get eithor of the attached tif file to load into a layer.

The call is :

Dim NewLayer As ActualMap.Layer = ActualMap.Layer.Open(ShapeFileName)

Where ShapeFileName = eithor tif file.

I dont get any error but NewLayer is nothing.

 

 

 

9/9/2014 12:38:00 PM
MVP
Total Posts 323

Re: Unable to load tif layer

This may mean that the path to the file is incorrect or the TIFF file has unsupported format (for example this is a multi-page tiff file).

9/9/2014 7:36:46 PM
Total Posts 13

Re: Unable to load tif layer

I have 2 examples in a zip file but don't know how to attach them here.

9/10/2014 1:32:32 PM
Total Posts 13

Re: Unable to load tif layer

The tiff file is a satellite 4 band image.

Is this supported?

 

9/10/2014 11:57:18 PM
MVP
Total Posts 323

Re: Unable to load tif layer

Images with 1 and 3 samples per pixel are supported.

You have to remove the infrared(4) channel from the image to display it.

9/11/2014 8:50:01 AM
Total Posts 13

Re: Unable to load tif layer

How do I do that?

Would it be better if the tool just ignored that band?

9/11/2014 1:17:16 PM
Total Posts 13

Re: Unable to load tif layer

I converted the 4 band to 3 band GeoTIFF with both GDAL utilities and ArcGIS. There must be some info hanging around in the file headers that VDS tools still did not like.
I then used Windows Image Viewer to save it in the JPEG format, JPEG supports the multibands so they were preserved.
I then used Windows Image Viewer to save it back to the original tiff file.
VDS tools was then able to read and properly register the image with the shape file.

 

 

Any better steps for a solution would be helpful.

1/14/2015 2:18:52 PM
Total Posts 13

Re: Unable to load tif layer

I now have a GeoTIFF file that when I execute

Dim lyr As ActualMap.Layer = mMap.AddLayer(FileName)

when returns lyr is nothing.

Is there an error code I can find.

1/15/2015 5:12:11 AM
MVP
Total Posts 323

Re: Unable to load tif layer

Please submit a support ticket and attach the file at http://www.vdstech.com/tickets.aspx?cmd=submit