Hot answers tagged

22 votes
Accepted

Viewing LiDAR data from web browser?

I'm a little late to the party but here is another suggestion: http://potree.org/ It's an open souce, WebGL based point cloud viewer I've been working on for quite a while. == UPDATE == It can ...
user avatar
  • 473
21 votes
Accepted

PostGIS Column has Z dimension but geometry does not

When there is no implicit cast between two datatypes you need to state it explicitly. In your case ST_Force3D (or ST_Force_3D for PostGIS versions earlier than 2.1) should do the trick: ALTER TABLE ...
user avatar
  • 2,734
16 votes
Accepted

Looking for a free program for 3D visualization

1) For a full 3D GIS, the better is GRASS GIS, look at Screenshots of 3D data management or From drone-aerial pictures to DEM and ORTHOPHOTO: the case of Caldonazzo's castle, from example. Some ...
user avatar
  • 50.8k
13 votes
Accepted

Assign 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 ...
user avatar
  • 26.2k
13 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 currently doesn'...
user avatar
12 votes

Finding minimum-area-rectangle for given points?

I just implemented this myself and posted my answer over on StackOverflow, but I figured I'd drop my version here for others to view: import numpy as np from scipy.spatial import ConvexHull def ...
user avatar
12 votes
Accepted

Remove 3D geometry in shapefile using OGR

Write your data into a new shapefile with ogr2ogr and force geometry type into 2D with the -dim switch. ogr2ogr -f "ESRI Shapefile" output_2d.shp input_zm.shp -dim 2 The -dim setting is not limited ...
user avatar
  • 51.5k
11 votes
Accepted

Assigning RGB values from Geotiff image to LiDAR data, using R

Thank you for clarifying your question as it was previously quite unclear. You can read a multiband raster using the stack or brick function in the raster package and assign the associated RGB values ...
user avatar
11 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) - ...
user avatar
  • 5,642
10 votes

3D perspective on maps in Leaflet, CartoDB?

Maybe you could use Osmbuildings. Its a JavaScript library for visualizing OpenStreetMaps (or custom GeoJSON) building geometry into a 3D perspective. It use OpenStreetMaps data directly. Just add ...
user avatar
  • 303
10 votes
Accepted

Use arcpy to check whether feature class geometry has ZM

The Describe object also has the hasM and hasZ properties which: Indicates if the geometry is m-value enabled and Indicates if the geometry is z-value enabled respectively.
user avatar
9 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 (...
user avatar
  • 36.2k
8 votes

Export 3D data DXF file

If you want to get a 3D DXF from a SHP (SHPfile generated from DTM with Qgis-Processing-Tools-GDAL/OGR Extraction-Contour), you must: 1) have column with Z values into Table attributes of SHP. 2) ...
user avatar
  • 121
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, ...
user avatar
7 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 ...
user avatar
  • 334
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 ...
user avatar
  • 1,028
7 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 ...
user avatar
  • 171
7 votes

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

When talking about having only contours in 3D dxf, the proper way is definitely NOT extracting the vertices as XYZ and interpolating the surface from points. That way you lose the information about ...
user avatar
  • 9,216
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 ...
user avatar
7 votes

Finding the Center Line from a set of 3D Points

There is a paper called "Curved Reconstruction from Unorganized Points" by In-Kwon Lee which looks into constructing lines/curves from a set of points without any ordering by exploiting the moving ...
user avatar
  • 72.2k
7 votes

QGIS calculate the 3D surface area of a region?

Yes, it's possible. The GRASS module is r.surf.area. You can use OPEN GRASS Tools (GRASS plugin of QGIS). Its use is very intuitive. For irregular surfaces you have to use a mask. 1) Using the module ...
user avatar
  • 25.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....
user avatar
  • 81
7 votes
Accepted

Conversion from Point 2D to Point 3D with measures

You can alter the type and use, what I believe are called regclasses, to specify the type of geometry (and its SRID). So, assuming your table is called points, you can do, ALTER TABLE points ALTER ...
user avatar
  • 13.2k
7 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) ...
user avatar
  • 19.8k
7 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.
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 ...
user avatar
  • 1,237
6 votes

3D perspective on maps in Leaflet, CartoDB?

This is one of the primary use-cases for ViziCities (3D cities in the browser powered by OpenStreetMap), although the data layers aren't currently working yet. Perhaps something to consider for the ...
user avatar
  • 1,025
6 votes
Accepted

What programs would allow for the mapping of a geoid in 3d?

EDIT: I've updated this to do an actual surface. It's interactive with rgl, and you can zoom in to see the closed surface but you'll need more work to respect the actual WGS84 datum and get your ...
user avatar
  • 7,859
6 votes

Is it possible to draw a 3D Choropleth Map in ArcGIS?

ArcScene is the ESRI approach to doing this. It is likely installed with ArcGIS so you should find it in the start menu. This is a typical ArcScene map. Basically your attribute value can become the ...
user avatar
6 votes

Can QGIS import Multipatch geometry type?

In QGIS try using GDAL/OGR to read shapefiles and in GDAL: ESRI Shapefile MultiPatch files are read and each patch geometry is turned into a multi-polygon representation with one polygon per ...
user avatar
  • 50.8k

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