Comments (6)
Have you followed the tutorial https://github.com/Ifsttar/NoiseModelling/wiki/11-Scripting-with-Python
Does it run without errors ?
from noisemodelling.
Yes, the tutorial runs without errors.
However, when importing a shapefile for the buildings, instead of creating mock building via SQL commands, this happens:
CALL SHPREAD('/home/USER/orbisgis_noise/orbisgis_h2gis/input_shape/buildings_shp/buildings.shp', 'buildings');
org.h2.jdbc.JdbcSQLException:
General error: "java.lang.NullPointerException" [50000-182]; SQL statement:
CALL SHPREAD('/home/USER/orbisgis_noise/orbisgis_h2gis/input_shape/buildings_shp/buildings.shp', 'buildings') [0-182]
at org.h2.message.DbException.addSQL(DbException.java:132)
at org.h2.command.Command.executeQuery(Command.java:213)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:179)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:158)
at org.h2.server.pg.PgServerThread.process(PgServerThread.java:392)
at org.h2.server.pg.PgServerThread.run(PgServerThread.java:90)
at java.lang.Thread.run(Thread.java:748)
Thanks for your help!
from noisemodelling.
Hi !
I've updated the tutorial for the last version of NoiseModelling released.
I've tested to use 'Call SPHREAD', and 'CALL TABLE_FILE' too. And it worked after I've removed the line "create table buildings ( the_geom GEOMETRY );" in the python script.
Can you try this ?
from noisemodelling.
maybe there is something wrong with my shapefile. would you be able to provide your test shp file?
Thank you!
from noisemodelling.
CALL SHPREAD('/home/andre/noise_new/orbisgis-noisemodelling-2018-07-18/input_shape/buildings_shp/buildings.shp', 'buildings');
org.h2.jdbc.JdbcSQLException:
General error: "java.lang.NullPointerException" [50000-197]; SQL statement:
CALL SHPREAD('/home/andre/noise_new/orbisgis-noisemodelling-2018-07-18/input_shape/buildings_shp/buildings.shp', 'buildings') [0-197]
at org.h2.message.DbException.addSQL(DbException.java:133)
at org.h2.command.Command.executeQuery(Command.java:220)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:227)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:205)
at org.h2.server.pg.PgServerThread.process(PgServerThread.java:423)
at org.h2.server.pg.PgServerThread.run(PgServerThread.java:100)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.sql.SQLException:
from noisemodelling.
https://noisemodelling.readthedocs.io/en/latest/NoiseModellingScripting.html
from noisemodelling.
Related Issues (20)
- Error in Enrich_DEM_with_roads
- Exposition - Heath - etc. HOT 1
- Provide NoiseModelling native library for C and Python HOT 1
- Documentation on the absorption coefficient HOT 1
- Customize vehicle category HOT 12
- WSP Builder - Import Folder doesn´t work
- Error in doc RailWay
- How to create Lw_railway HOT 1
- Import file into NoiseModelling 4.0.5 HOT 2
- Propagation error in NM 4.0.5?? HOT 7
- Metric projection error HOT 10
- Solving WIDTH field is not taken into account in "Enrich_DEM_with_road.groovy"
- PK error HOT 2
- Delaunay grid bug HOT 1
- Maven artefact ? HOT 3
- Errors in calculation depending on the separation between receivers HOT 4
- Roads are not imported correctly from OSM data HOT 7
- Directivity calculation fails HOT 5
- Null data for a large proportion of receivers HOT 2
- Second order of reflection or higher HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noisemodelling.