GithubHelp home page GithubHelp logo

3dcitybuilder's People

Contributors

arthurruf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

3dcitybuilder's Issues

I keep getting this error

I keep getting this error...

What I'm doing wrong?

Extruding footprint.infos
appContext.user_parameters.building_height_method: {'title': 'Mode (the value that most repeats)', 'algorithm': 'native:zonalstatistics', 'method_id': 9}
building_height_method: 2
QgsProcessingException('No se puede ejecutar el algoritmo\nValor de parámetro incorrecto para INPUT_VECTOR')
Traceback (most recent call last):
File "C:\Users/nsica/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\generate_model\main.py", line 96, in start
gis.generate_3d_model()
File "C:\Users/nsica/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\generate_model\gis\gis.py", line 283, in generate_3d_model
extrude_footprint()
File "C:\Users/nsica/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\generate_model\gis\gis.py", line 134, in extrude_footprint
processing.run(
File "C:\OSGeo4W/apps/qgis/./python/plugins\processing\tools\general.py", line 108, in run
return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)
File "C:\OSGeo4W/apps/qgis/./python/plugins\processing\core\Processing.py", line 156, in runAlgorithm
raise QgsProcessingException(msg)
_core.QgsProcessingException: No se puede ejecutar el algoritmo
Valor de parámetro incorrecto para INPUT_VECTOR

3D view not working on Windows

Hi !
I was trying to use your plugin for a traineeship, and encountered a few issues. I once had a crash of QGIS, who told me to report the issue to the plugin creator, which I attached to this report, and I also had other issues that I will describe here. As I will probably have ended my traineeship by the time you see this, I just hope it will help you.
plugin_citygen_crashed_QGIS.txt

I am on windows 10. I enabled Windows System for Linux (WSL) to install Homebrew through Ubuntu shell (version 2004.4.4.0).
I then installed capnp, spatialindex and reinstalled libcapn through the Ubuntu shell, using brew commands (I don't know if libcapn is useful since I am on windows).
I used QGIS 3.24.1.

In the test data, there is no ortho of Vienna. Therefore, I tried with the two other options of the plugin (download and WMS server) and I tried with another layer which is the dtm, that I exported as a rgba 8 bits through QGIS.

The first one (download) stops without completing.
log_ortho_is_download.txt
The second one (WMS) complete, but the buildings aren't in 3D in the 3D viewer, and there is an error in the log.
log_ortho_is_dtm_as_rgba8bit.txt
The last one returns no errors in the log, but when using the 3D viewer, everything except the trees is flat.
log_ortho_is_dtm_as_rgba8bit.txt

Uncaught AttributeError: 'QgsLayerTreeGroup' object has no attribute 'layer'

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/Users/Nzumi/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\citygen_loader.py", line 234, in run
    self.cbxOrthoSource_on_change(0)
  File "C:/Users/Nzumi/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\citygen_loader.py", line 409, in cbxOrthoSource_on_change
    self.dlg.cbxOrthoLayer.setCurrentIndex(self.get_first_layer_by_name(["ortho", "rgb", "bild"], 0))
  File "C:/Users/Nzumi/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\citygen_loader.py", line 399, in get_first_layer_by_name
    if layer_name in i.layer().name().lower():
AttributeError: 'QgsLayerTreeGroup' object has no attribute 'layer'

citygen 0.2, QGIS 3.14.16-Pi on Windows 10

TypeError("QgsPolygon3DSymbol.setAltitudeBinding(): argument 1 has unexpected type 'int'")

appContext.user_parameters.building_height_method: {'title': 'Mode (the value that most repeats)', 'algorithm': 'native:zonalstatistics', 'method_id': 9}
building_height_method: 2
TypeError("QgsPolygon3DSymbol.setAltitudeBinding(): argument 1 has unexpected type 'int'")
Traceback (most recent call last):
  File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\generate_model\main.py", line 96, in start
    gis.generate_3d_model()
  File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\generate_model\gis\gis.py", line 285, in generate_3d_model
    load_layers_to_project()
  File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\citygen\generate_model\gis\gis.py", line 220, in load_layers_to_project
    symbol.setAltitudeBinding(1)
TypeError: QgsPolygon3DSymbol.setAltitudeBinding(): argument 1 has unexpected type 'int'

Happens when trying to generate the model on Windows 10 with the sample Vienna dataset.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.