# Tag Info

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 ...
• 77.3k
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 ...
• 27.8k
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) - ...
• 7,459
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 (...
• 41.1k
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.
• 77.3k

### 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 ...
• 191

### 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 ...
• 344

### 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) ...
• 20.5k
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, ...
• 36.6k

### 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 ...
• 1,465

### 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 ...
• 33.9k

### 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....
• 81

### 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.
• 141
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 ...
• 1,537

### 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 ...
• 161
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, ...
• 7,858
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 ...
• 16.6k
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(...
• 31k

### 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 ...

### 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 ...
• 42.2k

### 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 ...
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 ...
• 41.4k
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), ...
• 20.5k
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',...
• 101

### 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 ...
• 41.1k
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)')...
• 19.9k
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 ...
• 13.2k

### 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 ...
• 20.5k
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:]): ...
• 347