1
vote
1answer
17 views

Placing a cost raster in Arcmap Table of Contents in 10.2.2

We have a set of routines that have been used for writing rasters to the ArcMap table of contents from our tools. The code that always worked is this: /// <summary> /// Used for ...
1
vote
2answers
35 views

Is there any efficient way to create a raster with pixel value representing a unique id calculated based on pixel lat/lon?

I have 10m raster for each state in US. Current pixel value represents something. I want to have 'same' raster but pixel size representing a unique id calculated based on pixel lat and lon. I am ...
0
votes
0answers
52 views

How to get RasterToPolygon working

We have a process that is almost working except for this one call ... This is the one tool function that is requiring a FeatureClass and I found code that I thought would work. Unfortunately all I ...
0
votes
2answers
86 views

Reading a raster map cells values in C#?

Suppose I have a raster map file (TIFF, TGA, JNG... etc) loaded with geo-info manifested by the cells values. I need to read the values of the raster map cells "programatically" in a C# program. P.S: ...
1
vote
2answers
21 views

working with hydrography raster the cost array ignores the end of water

We have our maps laid out using hydrography maps from NOAA. We had to run the graphics through several steps to create the water feature raster. I have a process that pulls in that raster, sets a ...
0
votes
0answers
64 views

How to remove Raster from Raster Dataset programmatically?

I have Raster (it is 6 adf files). This raster was added to Raster Dataset in sde database. Geoprocessor geoProcessor = new Geoprocessor(); Mosaic mosaic = new Mosaic(); ...
10
votes
6answers
609 views

How do I iterate through every cell in a continuous raster?

See this link for more details. The Problem: I want to loop through a continuous raster (one that has no attribute table), cell by cell, and get the value of the cell. I want to take those values ...
0
votes
0answers
103 views

How to create a raster dataset from a known decimal extent?

I have an input raster pInputRaster. I want to create a new raster dataset called pOutputRasterDS that is the same width, height and cellsize as my input raster dataset (I'm not worried about ...
2
votes
0answers
152 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
0
votes
1answer
105 views

How to delete raster dataset from sde base programmatically

I use sde database, registered with ArcGis Server 10.1. Sde connection is direct. Database container is postgres. There is a raster dataset in this sde base. I can open this sde database ...
0
votes
1answer
147 views

How to change rasterlayer color?

I have rasterdataset in gdb. I create layer from this rasterdataset. private static void CreateLayer() { ... IRasterLayer rlMosaicDataset = new RasterLayer(); ...
1
vote
2answers
321 views

Parallel Computing and Raster Operations in ArcObjects gives cryptic error

This is a problem I have been struggling with for awhile. The code below takes 1-3 input feature layers (pFLayer) that were stored into a list called pFeatureLayerCollection, casts them into ...
2
votes
1answer
559 views

Why does copy convert my Tiff raster value range?

Recently I have worked with some raster dataset. And I found there are different kind of raster dataset. Till now I have worked with grid type raster dataset and my add-in works fine with this type. ...
1
vote
1answer
229 views

How to convert a shapefile polygon to raster in C#

Does anybody know a way to convert a polygon (vector) in a shapefile to raster data WITHOUT using ArcGIS Explorer Desktop? Is there a way to do this 'progmatically' in C# (WPF with ArcGIS runtime ...
0
votes
1answer
153 views

How to get the absolute raster row / column of rastercell when using ArcObject Raster Cursor?

When using the ArcObject RasterCursor (see snippet below), how do I get the absolute row / column of the current pixel value? IRasterCursor rasterCursor = raster.CreateCursorEx(null); do { ...
1
vote
1answer
1k views

How do I add TIFF files to one layer/raster catalog?

We have several TIFF images (already tagged with position information) we want to load as a single layer into the map. It's the first time I dig into this raster/topology thing, but at least I managed ...
2
votes
1answer
262 views

How to change the raster NoData value with ArcObjects?

I am trying to change the a raster's NoData value with ArcObjects and keep coming up short. Here is the code that I thought would work: IRasterDataset _dataset = ...get the dataset... object[] ...
2
votes
1answer
538 views

How to change Datasource of a Raster in sde using ArcObjects?

I'm building a C# application that lets the user change their DataSources of all the layers in their MXD. I have it working on FeatureLayers and LYR files but I'm stuck on how to change Raster layers ...
1
vote
1answer
128 views

ESRI ISurface.GetElevation is extremely slow compared to GlobalMapper

I'm using ISurface.GetElevation on a Raster to get the elevation for a specific lat/lon. I have to do this for a huge set of datapoints. Currently i'm testing with a dataset of 10.000 items which ...
2
votes
1answer
621 views

DTED/GeoTiff layer: Get elevation under mouse pointer

I have a simple desktop app with a map control. The map data that will be available to show will be either DTED files (Military Analyst's catalog / MADTEDLayer), or GeoTiffs (created by gdal). I want ...
1
vote
0answers
141 views

How to get SplineWithBarriers to work in C#

I have been having fits trying to get SplineWithBarriers to work but to no avail. My environment: Windows 7 64 bit Visual Studio 2010 Team Edition ArcMap Release Version 10.0 Product Version: ...
4
votes
2answers
984 views

Translating grid to USGS .dem in C# via GDAL

I am attempting to translate ArcInfo binary grids to USGS DEM format (.dem). I have installed the GDAL .NET bindings thru this build installer. I can get to GDAL in my C# add-in I am working on. ...
2
votes
2answers
796 views

Interpolating heights in DEM using ArcGIS API's in C#

I am new to ArcGIS and not familiar with it. I want to interpolate heights in a DEM file using ArcGIS? Is it possible? Actually, I want to write a C# code that will read the height from DEM file for ...
2
votes
1answer
610 views

GeoTIFF raster layer, c#

We have a map rendering engine (renders from MapInfo Interchange Format). This engine uses Mercator Projection. Now we have to insert a raster layer (orthophotos of a city), we have GeoTIFF files with ...
1
vote
1answer
458 views

How to Save a Raster or Polygon to ArcMap Table of Contents in C#?

Just as the title says, I want to save the Raster to the table of contents. I have a Raster displaying on the ArcMap IDisplay, but I can't figure out how to save it to the Table of Contents in ...
1
vote
2answers
1k views

How can I access a raster dataset's attribute table?

I need to loop through the rows in the raster attribute table and add a date for each row. Thanks,