Problems with tiff files in offline mode

6232
5
05-12-2014 08:58 AM
DavidGuzman_Garcia
New Contributor
Hi,

I am interested in use the offline mode. I have a satellite map in tif format (with the GIS info embedded), but I'm not able to load it using the EsriRuntimeQt::ArcGISLocalTiledLayer class, I only get a blank panel. I'm able to load the tpk examples but not this image, it is possible to use this kind of files or should I convert the picture to a tpk file using Arcgis Desktop?

Please find below the snippet of code I'm  using:

QString tiledBaseMapLayer = "~/Downloads/maps/california/IMG_PHR.TIF";
EsriRuntimeQt::ArcGISLocalTiledLayer    m_tiledLayer = EsriRuntimeQt::ArcGISLocalTiledLayer(tiledBaseMapLayer); 
m_map.addLayer(m_tiledLayer);

Thanks,

David
0 Kudos
5 Replies
JeanneTrieu
Occasional Contributor
Hi,

You will need to convert the file to a tpk. Direct read of tiff is currently not supported right now.

Regards,
0 Kudos
DavidGuzman_Garcia
New Contributor
Hi Jen,

I have already downloaded the new release, can I use right now the tif map? if so, should I use the ArcGISLocalTiledLayer class?

Regards,

David
0 Kudos
EricBader
Occasional Contributor III

Hi David,

There is a sample that shows how to dynamically add a raster file (tiff) to your Map, but you'll need to use the LocalServer and dynamic workspace to do this. Here is the link to that sample:

Raster

Hope this is helpful!

0 Kudos
JeanneTrieu
Occasional Contributor
Hi David,

Only tpks are currently supported in 10.2.3 for the ArcGIS Runtime SDK for Qt. We will keep you posted when we can this functionality in. You can take a look at Release notes for 10.2.3 here:https://developers.arcgis.com/qt/guide/release-notes.htm.

Thanks,
0 Kudos
AshishYadav
New Contributor

Hi Jen,

Can you please help me out..i have been playing with clusters on ARCGIS till now(online mode). I want the same to happen with offline mode as well...is that possible, if yes then how?

Looking forward to hear from you.

Thanks

0 Kudos