Importing Raster Data

Discussion created by mjgibson007 on May 12, 2020
Latest reply on Jul 14, 2020 by rbever3

I am surprised to find that ArcGIS runtime only supports a very limited set of raster formats: Add raster data—ArcGIS Runtime SDK for .NET | ArcGIS for Developers 

Supported raster formats

ArcGIS Runtime supports a subset of raster file formats that ArcGIS Desktop supports. The raster file formats ArcGIS Runtime supports include the following:

  • CRF
  • DTED0, 1, 2
  • GeoTIFF
  • HFA
  • HRE
  • IMG
  • JPEG
  • JPEG 2000
  • MrSID, generations 2, 3, and 4
  • NITF
  • PNG
  • RPF (CIB)
  • SRTM1, 2
  • Mobile mosaic datasets


I'm trying to import an ASCII grid format Esri ASCII raster format—Help | Documentation 

Which is basically an ascii text file, which looks like:

NCOLS xxx NROWS xxx XLLCENTER xxx YLLCENTER xxx CELLSIZE xxx NODATA_VALUE xxx row 1 row 2 ... row n


Having a brief look around, I find only a few threads of help. :Importing ASCII raster files 



In the current v10.2.X release we don't have a specific raster data type or layer to handle these, you'll need to use the Local Server and a Geoprocessing Package to convert the ASCII raster into another raster format and then use the result map service to render that. In the upcoming v100.0 release we have added a raster layer which can reference raster files on disk. Here's the list of supported types: Add raster data—ArcGIS Runtime SDK for .NET (Quartz Beta) | ArcGIS for Developers.


If your app regularly has data coming in in ASCII format then you can still use the LocalServer to convert to one of the supported types above.


For more info on the Local Server see Work with local services—ArcGIS Runtime SDK for .NET | ArcGIS for Developers 

Which I'm a bit confused about... It is not possible to process a conversion in memory, or is the only way currently to convert the file and open the new converted file, as this would seem terribly inefficient. 


Is there no way to create a raster object and pass it the memory, and use something else to actually load these files?


many thanks