Skip to content

unigeo-unam/QGIS-X3D-Processing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QGIS-X3D-Processing

QGIS Processing scripts, models and plugins for X3D export

Summary

Steps to try out:

  1. get a DEM (for example from ned.gov, or https://github.com/andreasplesch/QGIS-X3D-Processing/raw/master/examples/output/n35w120utmWGS84samll.tif)
  2. load into qgis
  3. crop and downsample to ca. 500x500 pixels, warp to longlat WGS84
  4. get all processing scripts and models from here: https://github.com/andreasplesch/QGIS-X3D-Processing/archive/master.zip
  5. load into qgis
  6. run raster2x3dom model
  7. open resulting html file

TODO

  • finalize DEM raster to GeoElevationGrid: better metadata from qgis, doc strings
  • perhaps option to enable wrap around by repeating first column after last column
  • document other scripts
  • geoOrigin option: DEF/USE, needs to be first, include optionally with empty scene and update when appending ?
  • use wiki for example processing workflow
  • add draping of other raster as texture: think about how to modularize -- warp to crs of other raster script -- crop/enlarge to extent of other raster script -- save as jpg script (probably not useful): use rasterlayer.previewAsImage(full size), then Qimage.save
  • color contour option: use 1d texture and generated UVs where U is normalized elevation
  • extrude polygons from vector layer by height attribute or constant -- need to be in projected crs, then just use first point as reference, and first point geographic coordinates for geolocation
  • GeoLOD option: use gdal tile functionality for both DEM and imagery ...

Examples

small

https://rawgit.com/andreasplesch/QGIS-X3D-Processing/master/examples/output/n35w120nedWGS84_200x200.html

large (takes a couple minutes to display):

https://rawgit.com/andreasplesch/QGIS-X3D-Processing/master/examples/output/grdn35w120_clipped_600x700.html

medium (topo30 resampled to 600x300, 100x v.e.)

https://rawgit.com/andreasplesch/QGIS-X3D-Processing/master/examples/output/topo30_600x300.html

Documentation bits

image

image

image

About

QGIS Processing scripts, models and plugins for X3D export

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%