Skip to main content
15 votes
Accepted

Visualize PolygonZ shapefiles in QGIS

You don't need any plugin to see PolygonZ shapefile in 3D. Built-in 3D Map Viewer ("View > New 3D Map View") shows polygons in 3D based on Z values of its vertices. Note that 3D view ...
Kadir Şahbaz's user avatar
13 votes
Accepted

Assigning z values to depth curves in QGIS

It's super-easy in QGIS 3.0: Run the "Set Z Value" Processing algorithm Click the button on the right of "Z Value", and select Field -> "DYBDE". Run the algorithm. The z values for the geometry's ...
ndawson's user avatar
  • 27.8k
13 votes
Accepted

Convert GPS coordinates into 3-dimensional cartesian coordinates (x,y,z)

To do 3D transformations, you need 3D CRS: EPSG:4326 (2D) -> EPSG:4979 (3D) <Geographic 3D CRS: EPSG:4979> Name: WGS 84 Axis Info [ellipsoidal]: - Lat[north]: Geodetic latitude (degree) - ...
snowman2's user avatar
  • 7,459
11 votes
Accepted

Generating STL (3D) file from raster ASTER GDEM data?

I know QGIS has a plugin that export DEM to STL using DEMto3D, and I tested on a DEM and it worked. The description of the plugin mentioned that clearly: DEMto3D is the first tool that links GIS (...
ahmadhanb's user avatar
  • 41.1k
10 votes
Accepted

Changing layer properties for 3D View using PyQGIS

You should use setRenderer3D method of QgsMapLayer. layer.setRenderer3D(renderer) QgsVectorLayer inherits that method from QgsMapLayer.
Kadir Şahbaz's user avatar
9 votes

Convert 3D WKT to 2D Shapely Geometry

A simple approach is to use shapely.ops.transform, because that function is smart about using the return values to determine whether to create 2D or 3D shapes. This approach will however allocate new ...
Gijs's user avatar
  • 191
8 votes

Convert 3D WKT to 2D Shapely Geometry

I had the exact same problem as Rusty Magoo, but for multipolygons and polygons. Therefore I decided to build on answer of gene and wrote the following function, which works for all types of ...
Rauni's user avatar
  • 344
8 votes

Create paper topography anaglyph map that can be visualized in 3D using red-green glasses

what you're talking about is an anaglyph map. it's possible using standard QGIS symbology here's an example I did a while back. The buildings were given a size attribute (probably using $area) ...
Steven Kay's user avatar
  • 20.5k
8 votes
Accepted

Creating 3D points in PyQGIS?

For QGIS v3.x You can use QgsPoint directly: zPoint = QgsPoint(-74, 4, 2600) # x, y, z zPoint.z() # Prints 2600.0 Should you need a QgsGeometry object, just use: my_geom = QgsGeometry(QgsPoint(-74, ...
Germán Carrillo's user avatar
7 votes

Creating 3D model in QGIS?

QGIS 3.0 will support rendering of 3D models out of the box. Install the latest nightly build of QGIS using OSGEO4W or another installer for your platform. Add 3D Canvas from main menu View > New ...
Peter Petrik's user avatar
  • 1,465
7 votes

Importing 3D DXF file into QGIS with z information as attribute value?

Miro's answer will work fine, but if you just want to add a Z value to your attributes table (perhaps for labeling in a map or some other reason), I would start as he suggests: v.in.dxf - to import ...
MappaGnosis's user avatar
  • 33.9k
7 votes

Cesium JS Line Length

You could use Cesium.EllipsoidGeodesic#surfaceDistance to calculate the distance in meters, and then convert to kilometers. var startCartesian3Point = Cesium.Cartesian3.fromDegrees(48.862165, 2....
Kaji's user avatar
  • 81
7 votes

Visualize PolygonZ shapefiles in QGIS

It seems that PolygonZ doesn't work in Qgis 3D view but working pretty nice in qgis2threejs plugin for me: Just make sure that your shape is a real PolygonZ file.
Felis Pimeja's user avatar
7 votes
Accepted

French point cloud data won't render properly in QGIS 3.22.3

In reality QGIS does not read the las/laz files directly. The number of points is too huge for this. When you load a las/laz file, QGIS converts it into entwine format using, a specific utility (hence ...
Atm's user avatar
  • 1,537
6 votes

How to find the concave hull for a cloud of points in 3D space?

A convex hull is unique, whereas there are many possible concave hulls. So you cannot say "the concave hull" but "a concave hull". There is possibly a minimal volume concave hull, but this is not the ...
galinette's user avatar
  • 161
6 votes
Accepted

How to create a 3D shapefile with QGIS from values stored in the attribute table

I guess if you have None as a value for the v.extrude command, it's because your data is not in the right format (string instead of real for example). See below, it works for me : In case you need, ...
gisnside's user avatar
  • 7,858
5 votes
Accepted

Using Z-Values instead of attribute Z?

I think you are mixing up to concept : elevation (z value) and height (elevation relative to the ground). For exemple an object may have a Z value (as a z coordinate) representing elevation of the ...
J.R's user avatar
  • 16.6k
5 votes
Accepted

Creating 3D Polygon geometry with PyQGIS

You can do either from qgis.core import (QgsPolygon, QgsLineString, QgsPoint) # From a Python list points = [[0.0, 10.0, 3.0], [5.0, 8.0, 4.0], [9.0, 5.0, 1.0], [0, 10, 3.0]] poly3d = QgsPolygon(...
ThomasG77's user avatar
  • 31k
5 votes

Can we create 3D buffers around point data in QGIS?

While I am not aware of a plugin which creates spheres (even if it should not be too difficoult to write), I would suggest you investigate a different, possibly more elegant route. Instead of creating ...
RafDouglas C. Tommasi's user avatar
4 votes

Convert 3D WKT to 2D Shapely Geometry

Modern shapely versions have shapely.force_2d: import shapely line_3d = shapely.from_wkt("LINESTRING (1 2 0, 4 3 0, 8 9 0)") line_2d = shapely.force_2d(line_3d) print(line_2d) # LINESTRING ...
Mike T's user avatar
  • 42.2k
4 votes

3D subsurface modelling

Geomodelr might be what you are looking for. Geomodelr allows you to create cross sections from boreholes, or use geophysical data in the form of images. For geophysicists it's particularly cool ...
Ricardo Serrano's user avatar
4 votes
Accepted

What is the difference between a Polygon Z and a Polygon ZM?

In a PolygonZ, Each Vertex has X, Y, & Z coordinates. In a PolygonM Each Vertex has X, Y, & M. When ArcGIS Desktop says that your Shapefile is PolygonZM, it means that your polygon has ...
Devdatta Tengshe's user avatar
4 votes
Accepted

Is it possible to create floating/"flying" 3D objects in QGIS?

It's possible to do some quite clever things in more recent versions of qgis2threejs. Objects don't have to lie on the DEM, they can float above them (using a constant or a numeric field value), ...
Steven Kay's user avatar
  • 20.5k
4 votes
Accepted

How to insert Polyhedralsurface into POSTGIS?

Found solution :D You can either set your geometry as GeometryZ at time of creation like this geom geometry(GeometryZ,4326) Or use AddGeometryColumn function SELECT AddGeometryColumn( 'geometries',...
zrvr's user avatar
  • 101
4 votes

Creating inset shadow for river polygon in ArcGIS Desktop?

You can do something close using the following steps especially for the first image: Go to layer properties of the lake symbol -> Symbology Click on the Symbol (Colored Rectangle) to change its ...
ahmadhanb's user avatar
  • 41.1k
4 votes
Accepted

Retrieve average Z value of a 3D geometry in postgis

Dump the points, get the average? create table g ( id integer, geom geometry ); insert into g values (1, 'LINESTRING(0 0 0, 1 1 1, 2 2 2)'); insert into g values (2, 'LINESTRING(1 1 1, 2 2 2, 3 3 3)')...
Paul Ramsey's user avatar
  • 19.9k
4 votes
Accepted

Why does 3d Bounding Box &&& check return true when I use ST_3DMakeBox?

You're seeing this behavior because the &&& operator is defined between two geometry arguments, not between two box3d arguments (BOX3D() and ST_3DMakeBox return box3d). In PostGIS 2.2 and ...
dbaston's user avatar
  • 13.2k
4 votes

QGIS shapefile to 3D visualization in unity

From the Unity website Unity can read .fbx, .dae (Collada), .3ds, .dxf, .obj, and .skp files. Refer to your 3D modeling software documentation for information about exporting 3D files. I thought ...
Steven Kay's user avatar
  • 20.5k
4 votes
Accepted

Extrusion of 2d building footprints according to heights using python

Check this answer as it contains sample code to create CityGML surfaces. The relevant part for footprint extrusion is: polygon = [] for point_A, point_B in zip(points_2D[:-1], points_2D[1:]): ...
jjmontes's user avatar
  • 347
4 votes
Accepted

Seeking QGIS 3.0 ways to create browser based 3D scenes like qgis2threejs plugin does?

The Qgis2threejs is available under QGIS 3.2 but the icon changed from the one exists in QGIS 2.18: In Qgis 3.2 it is called Qgis2threejs Exporter, and you can use it to create a 3D scene in browswer:...
ahmadhanb's user avatar
  • 41.1k

Only top scored, non community-wiki answers of a minimum length are eligible