Is there any way to upload a GeoTiff using the ArcGIS Portal API like this example for shapefiles?
ArcGIS API for JavaScript Sandbox
The client wants to be able to upload the GeoTiff and see it in the webmap.
Solved! Go to Solution.
Robert,
It would be possible using the MapIamgeLayer and MapImage classes but you would have to use a third party library like geotiff.js to read the GeoTiff header to get the GeoTiff extent.
Here is a snippet on how to use those classes:
var layer = new MapImageLayer({
'id': 'radar',
'opacity': 0.5
});
var mi = new MapImage({
'href': 'http://radar.weather.gov/ridge/Conus/RadarImg/latest.gif',
'extent': {
'xmin': -127.629361176,
'ymin': 21.6615237154,
'xmax': -66.5269235294,
'ymax': 50.4156120199,
'spatialReference': {
'wkid': 4326
}
}
});
layer.addImage(mi);
Robert,
It would be possible using the MapIamgeLayer and MapImage classes but you would have to use a third party library like geotiff.js to read the GeoTiff header to get the GeoTiff extent.
Here is a snippet on how to use those classes:
var layer = new MapImageLayer({
'id': 'radar',
'opacity': 0.5
});
var mi = new MapImage({
'href': 'http://radar.weather.gov/ridge/Conus/RadarImg/latest.gif',
'extent': {
'xmin': -127.629361176,
'ymin': 21.6615237154,
'xmax': -66.5269235294,
'ymax': 50.4156120199,
'spatialReference': {
'wkid': 4326
}
}
});
layer.addImage(mi);
Would this be used like the upload shapefile, where it could upload the GeoTiff on the fly? For example, a person wants to upload the GeoTiff to see where their work area is, upload the GeoTiff, and zoom to it. Then they may want to upload a different one, one and on, etc.
That's possible for a developer.
Thanks for the link. I see some applications there that are doing what i need to do as well. Thanks!
Is ESRI thinking about making this a feature for the future? We have had a lot of clients request this. I looked into the links you sent and they work (barely) with very small images.