The Chartership Forum

Digital surveying, geospatial engineering and utility mapping / GIS fundamentals

Calculate raster dimensions and cell count

Cell dimensions and whether cell size guarantees representation of the feature.

Lesson review: expert verification remains open

The lesson explanations and stated numerical examples have received an editorial and software review. Field procedures, project acceptance and independent survey specialist verification remain open.

Checks needed for project use

  • GIS schema, topology, rasterisation rules, reference handling and completeness of data exchange. Current instrument procedures, project specifications, relevant controlled editions and field conditions also need confirmation.
  • Independent human survey/geodetic/metrology review remains open; teaching checks do not establish field acceptance, a PAS quality level, excavation clearance or flight authorisation.

The examples use stated teaching assumptions. Read the lesson’s Sources & Further Information for the precise licensed-source and specialist checks still open.

Read the lesson register and outstanding review notes

By the end of this lesson you should be able to

  • Explain every quantity, unit and sign in the example.
  • Calculate the result and test a changed assumption.

Read the calculation

Divide width and height by cell size for ideal column and row counts when extents divide exactly. Multiply for total cells. For arbitrary extents, document the grid origin and edge-rounding convention; area divided by cell area alone can give a non-integer ideal count.

nx=W/any=H/aN=nxny\begin{aligned}n_x&=W/a\\n_y&=H/a\\N&=n_xn_y\end{aligned}

What it calculates: Cell dimensions and whether cell size guarantees representation of the feature.

W,H,a
raster width, height and square cell size (m)
nx,n_y
ideal column and row counts
N
cell count when dimensions divide exactly

Raster cells and a narrow feature

Raster cells and a narrow featureThe cell grid samples or aggregates a source. A feature narrower than a cell can be lost or represented differently depending on the rasterisation rule.
The cell grid samples or aggregates a source. A feature narrower than a cell can be lost or represented differently depending on the rasterisation rule.
Column count before edge rounding
240
Row count before edge rounding
160
Area divided by cell area
38,400
Narrow feature width
0.2 m
Blue
Stated geometry, observations or calculated response.
Orange
Selected change, discrepancy or evidence extent; see the caption.
Grey
Reference geometry or comparison.

Original local teaching example. Exaggerated displacements and schematic geometry are identified in the caption. No field acceptance, national transformation, utility clearance or statutory authorisation is issued. Animation changes the selected assumption through its stated range; playback speed does not represent elapsed physical time.

Worked example

Cell count and a boundary feature

Given

  • A rectangular raster covers 120 m by 80 m
  • Square cell size 0.5 m
  • A narrow feature is 0.2 m wide

Find

Cell dimensions and whether cell size guarantees representation of the feature.

    Predict first

    Does reducing output cell size create source observations that were never measured?