Skip to main content
Question

Creating a bounding polygon around Esri Asc Grid (excluding NO DATA)

  • March 31, 2021
  • 2 replies
  • 50 views

chrbalm
Contributor
Forum|alt.badge.img+8

Hi,

I am looking to see if I can create a bounding box around an Esri Ascii Grid, but only around the points that have data (i.e. excluding any NO DATA values).

I am aware I can use a Hull Replacer to create a bounding box around a dataset, but the main barrier is how to query the grid file itself and remove NO DATA values.

I have tried to open the asc file in Notepad++, but it's huge and is unreadable due to it's size.

Any suggestions would be appreciated.

Cheers.

2 replies

david_r
Celebrity
  • April 1, 2021

One possible way:

  1. RasterCellCoercer to convert raster to points
  2. Tester to exclude NODATA
  3. HullReplacer

It may be slow if you have a huge amount of data, however.


takashi
Celebrity
  • April 4, 2021

Hi @cbalmbra1​ ,

The RasterExtentsCoercer (Extents Type: Data MBR Extents) might help you.