After exploring the gvSIG interface, I figured out that the default void or no data value gvSIG was expecting was different from what I had in my ArcGrid ASCII file; it seems that gvSIG does not use the NODATA keyword in the ArcGrid file. To get around this, I had to change the void value gvSIG is expecting to match my data and all would be well.
If you find your DEM file is not displaying as you expected, then the following steps might help.
Load an ESRI ArcGrid ASCII file
- Start up gvSIG. Open a View.
- Select View | Add Layer.
The Add layer dialog box appears. - Click Add.
The Open dialog box appears. - Browse and select an ESRI ArcGrid ASCII file, e.g. arcgrid.asc. Click Open.
The selected file is added to the Layers list. - Click OK.
The file is displayed in the view.
Changing the Void or No data value for the DEM layer
- In the legend or table of contents, select the arcgrid.asc layer.
- Mouse right click on the arcgrid.asc layer.
A pop up menu appears. - Select Raster properties.
The Raster properties dialog box appears. - Click the General tab.
- Click the No data drop down list. Choose Custom.
- In the No data Value field, type in -9999. Click Save as default.
The Select an Option dialog box appears. - Click Yes.
- Click Recalculate statistics.
The statistics are updated. Notice that the Minimum does not show the -9999 void value anymore. - Click Apply. Click Accept.
The DEM is displayed in grey scale.
Change the Color table of a grid layer
- Mouse right click on the arcgrid.asc layer in the Legend/TOC.
A pop up menu appears. - Choose Color table.
The Color table dialog box appears. - Toggle on Activate color table.
- Choose a pre-defined scheme, e.g. elevation.
- Click Accept.
The DEM is displayed with the selected color table.
Setting the Global Void or No data value
If I had to set the void value for many ArcGrid ASCII files, it would be quite tedious to do it file by file. It would be better to change the gvSIG preferences and set the global no data value as follows.
If I had to set the void value for many ArcGrid ASCII files, it would be quite tedious to do it file by file. It would be better to change the gvSIG preferences and set the global no data value as follows.
No comments:
Post a Comment