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 ...
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 ...
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 ...
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 ...
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'...
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 ...
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 ...
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 ...
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)
- ...
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 ...
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.
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 (...
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) ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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)
...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
3d × 677qgis × 176
arcgis-desktop × 71
postgis × 71
raster × 32
dem × 32
arcscene × 30
coordinate-system × 29
grass × 28
arcgis-pro × 28
python × 27
qgis-3 × 26
software-recommendations × 26
3d-analyst × 26
3d-model × 25
shapefile × 24
3d-map × 24
polygon × 22
visualisation × 22
qgis2threejs × 21
arcgis-10.0 × 19
geometry × 18
convert × 18
cesium × 18
lidar × 17