[R-sig-Geo] Difference between area calculations by QGIS and sf package

Rik Ferreira r|k|erre|r@@|ve@ @end|ng |rom gm@||@com
Mon Sep 27 17:17:04 CEST 2021


Dear list members,

Why does sf::st_area returns a different area than the output of QGIS $area
for the same geometry?

A reproducible example (state of Minas Gerais, Brazil):

library(sf)
> mg <- geobr::read_state(31)
> st_area(mg)
>

sf::st_area: 588358849314 [m^2]
QGIS $area: 586521037474,860 m²

The layer used in QGIS was exported with st_write() in GeoJSON format.

The error is: 1837811840 m².

Thank you for the attention.

Att.

-- 
Rik Ferreira Alves
Graduando em Geografia - Unimontes
https://rikferreira.netlify.app/

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list