# Tag Info

### Vertical Datum conversion of a raster with gdal

Convert from (EGM96) geoid vertical datum to (WGS84) ellipsoid vertical datum: gdalwarp -s_srs "+proj=longlat +datum=WGS84 +no_defs +geoidgrids=egm96_15.gtx" -t_srs "+proj=longlat +...
• 111
Accepted

### Calculating elipsoidal length of line in PyQGIS

If you use just QgsDistanceArea.measureLength(feat), you get an error: first argument of unbound method must have type 'QgsDistanceArea'. That means you need to create an object of QgsDistanceArea d = ...
• 77.3k
Accepted

### QGIS 3.6.1 problems with CRS

Following on Ian Turton's comment... Prior to performing ANY geometry calculations or analysis on a layer(s), the layer(s) MUST be 1) projected to the desired CRS, and 2) that CRS must be the same for ...
• 8,304

### Calculating elipsoidal length of line in PyQGIS

This is my answer: layer = iface.activeLayer() features = layer.getFeatures() d = QgsDistanceArea() d.setSourceCrs(layer.crs(), QgsProject.instance().transformContext()) d.setEllipsoid(QgsProject....
• 425

### What is MHHW Mean Highest High Water, in terms of datums/coordinate systems?

Mean Highest High Water is a reference surface corresponding to the height of high tides, averaged over a certain period of time (usually 19 years, a value close to a Metonic Cycle and a Lunar Node ...
• 3,846

### Getting accurate distance measurements using EPSG:3857 in QGIS

Problem of projections and accuracy of measurements: Since EPSG:3857 (and every Mercator projection) heavily distorts lengths (the more so the closer you get to the poles), measurements in this CRS ...
• 73.4k

### Calculating elipsoidal length of line in PyQGIS

One way could be: d = QgsDistanceArea() d.setEllipsoid('WGS84') layer = iface.activeLayer() features = layer.getFeatures() for feat in features: print( d.convertAreaMeasurement( ...
• 1,051

### Why inverse flattening is zero in esri prj file for spheres?

Esri first proposed the WKT format for OGC around (estimating) 1998 using what we'd already developed in-house. The SPHEROID format has to support both ellipsoids and spheres. It is easier to allow ...
• 19k

### Converting LiDAR ellipsoidal heights to orthometric heights?

PDAL can do this with its filters.reprojection capability, which is based on the vertical datum transformation capabilities of Proj.4. pdal translate input.las output.las reprojection --filters....
• 4,051
Accepted

### Do latitude/longitude coordinates ever refer to "real" earth, not idealized sphere or ellipsoid?

With these sorts of questions, the issue isn't so much with the earth or the reference system, but with the definition of "real." Angular coordinates only make sense in an axiomatic framework, with ...
• 3,101
Accepted

### Correct area calculations: When to use planimetric, when ellipsoidal?

Ellipsoidal measurements are to be used for larger areas and lines. In otherwords, used at lower map scale representation. Example: A county boundary, district, state boundaries, a flight path or ship ...
• 193
Accepted

### Calculate ellipsoidal area for a projected layer in PyQGIS 3

If I´m not mistaken, you will need to provide a transformation context and set the layers source CRS to the QgsDistanceArea() object accordingly. Try: ... def calculate_area(in_lyr_name, ellipsoid, ...
• 30.5k
Accepted

### CRS for Ellipsoid Measurements

More information on your CRS can be found here: https://epsg.io/26917 There you can also see that EPSG:26917 uses Ellipsoid: GRS 1980 by default, and is a projected CRS, with UoM in meters. GIS Stack ...
• 1,156

### How to set global setting ellipsoid in QGIS?

The setting to use no ellipsoid for measurements isn't directly available as a global default setting for all projects. However, you can achieve the same effect by creating a template project with the ...
• 24.9k
Accepted

### Is kml altitude mode "absolute" equivalent to altitude over WGS84 ellipsoid?

I recommend you to read this article. An extract: Height can be measured in two ways. The GPS uses height (h) above the reference ellipsoid that approximates the earth's surface. The ...
• 13.8k
Accepted

### Is distance between lines of latitude same on ellipsoid?

The mathematical solution belongs rather to https://math.stackexchange.com/ but a simple image is challenging your intuition. Look at the ellipsoid and lines at angles of 0, 45, and 90 degrees. What ...
• 67.5k

### QGIS Identify feature Cartesian area in degrees

The Cartesian area is dependant on the layer's CRS. It's a "raw" value, testing the coordinates as 2d numbers only. So for geographic coordinates systems with coordinates as degree values, it's ...
• 27.8k

### Meaning of "Elevation above surface of ellipsoid"?

HAE, or Height Above Ellipsoid, or "elevation above surface of ellipsoid", is commonly the form of altitude a GPS receiver returns. It differs from AGL (height above ground level) and MSL (...
Accepted

### PyQGIS - get ellipsoid acronym of coordinate system of layer

Yes, you can get the ellipsoid acronym from a CRS object (QgsCoordinateReferenceSystem). For instance: QgsCoordinateReferenceSystem("EPSG:25832").ellipsoidAcronym() or, from a layer: layer....
• 36.7k
Accepted

### Adding EPSG:7019 (GRS 1980) to PostGIS

GRS 1980 is defined by two measurements: Semi-major axis = 6378137 Inverse flattening = 298.257222101 With this, you've defined an ellipsoid, but you do not have a coordinate system. Where is Europe ...
• 5,396

### Finding correct ellipsoid to calculate the surface of polygons (hectares) in QGIS

Assuming you work in Slovenia, I would recommend using the Slovenia Grid EPSG:3794, this gives you the least distortion. Of course if you work on a very detailed scale like 1:10 000 your area ...
• 1,170
Accepted

### How can Cartesian and ellipsoidal perimeters and areas be so different in an EPSG:3857 layer?

Short answer Reproject to a CRS that is appropriate for measurements like local UTM zone. A good indicator that you use a CRS that is appropriate for measurements is if values for cartesian and ...
• 73.4k

### Which of EGM96 geoid or WGS84 ellipsoid fits the earth better?

The answer depends on what you are interested in and therefore what you mean by 'earth's surface'. The Geoid is the equipotential surface (in terms of gravitational potential). The ellipsoid is a ...
• 109

### Making ellipse geometry from some known parameters using PostGIS?

I would go with CIRCULARSTRING. You already know the coordinates of start point and end point, and the coordinates for the peak radius can be easily calculated. Thus, the half of your desired ...
• 4,252

### Do different ellipsoids have different location of centre?

If two ellipsoids share the same origin and axes (both use Greenwich and the same North pole), but have different axes lengths, only the geodetic latitude will change between the two. This is true ...
• 19k
Accepted

### Bessel ellipsoid definition for LV95 (EPSG:2056)

I found the authoritative source with the help of @swiss_geoportal and @swisstopo on Twitter. It's an ordinance called Verordnung des Bundesamtes für Landestopografie über Geoinformation (GeoIV-...

### Creating points along line at ellipsoidal distance

I would believe that you need to project the line to a azimuthal equidistant system, centered on the line origin. Proj4: +proj=aeqd +lat_0=LINE_ORIGIN_LAT_HERE +lon_0=LINE_ORIGIN_LON_HERE +x_0=0 +y_0=...
• 14.6k
Accepted

### Understanding geodesic envelope?

It looks like you've figured things out OK. In case it helps, I give here the MATLAB/Octave code that I used to generate this Wikipedia figure showing the envelope: The envelope is formed by the ...
• 3,281
Accepted

### How can I use GK + ETRS89 projected data in QGIS or Proj?

You have to create your own custom CRS using the correct ellipsoid. DHDN projections use +ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7. ETRS89 projections use +ellps=GRS80 +towgs84=...
• 11k