Comments (11)
@Digital-Banana hm where did you post the picture? It doesn't appear here in your post.
But based on your description, it could be that 3dfier didn't find the input polygons for the missing features. You can specify them in the config, see the template with instructions
(Alternatively) In case you filtered the point cloud (just didn't mention it here), it might be that the vegetation etc classes were removed.
from 3dfier.
Looks like I forgot to add it. Here it is!
@balazsdukai It could be 3dfier didn't find the input polygons. I used the GML extension for my BGT files, not SQLite. Could this cause an issue as well?
I didn't filter the point cloud either. I haven't heard about that until now.
from 3dfier.
Can you post the output of 3dfier?
When using the GML directly there are some issues. First, you should extract the correct GFS files (somewhere in the resources folder) in the same folder as the gml files. This is a mapping for the geometries in the GML files to be read correctly.
Also the BGT contains curves which are not supported by 3dfier so they need to be discretised. This can be done using GDALs ogr2ogr. In the resources folders subfolder bgt_prepair, there are batch files for conversion of the bgt.
Follow the readme.md in that folder:
When preparing the BGT GML files as input for 3dfier, the BGT_conversion.bat batch script can be used.
The script requires GDAL >2.0 to perform the filtering and conversion.
OGR is used to only select polygonal geometries and stroke CurvePolygons, it also filters the history of objects by selecting those of which the 'eindregistratie' is not set.
Usage:
- Extract the BGT GML files in a folder
- Copy all GFS files from "BGT gfs files" into the same folder
- Make sure all GFS files are newer then the GML files (assure this by editing all GFS files, add/remove a character, save, restore character, save)
- Run BGT_conversion.bat (or the commands within if on Linux/Mac)
- Use generated sqlite files as input to 3dfier
from 3dfier.
Sure. Here's my output.obj:
output.zip
I haven't done that gfs conversion -- I'm pretty certain it's the gml files that are causing the issue then. I will try the gfs conversion next and let you know what happens.
Do you think it could also be an issue of the BGT and AHN3 files? It's because I've downloaded roughly the same areas from the PDOK website, but the grids there don't align which means not all data overlaps with each other. But it's probably just the gfs conversion I still need to do.
from 3dfier.
When I run the BGT_conversion.bat it opens the command prompt for a split second then shuts down again -- with no files changed or added.
- I extracted the BGT GML files in a folder
- Put the GFS files in that same folder
- Made sure the GFS files are newer than the GML files
- Ran BGT_conversion.bat (I'm on Windows) and nothing happened.
I will try again with a different dataset, maybe the BGT data from that area is bugged? Also, the only way for me to get the GFS files is by dropping the BGT GML files into QGIS Desktop Version who then creates the GFS files.
from 3dfier.
-
As for the data input: If you input bgt polygons and the AHN doesn't overlap there, it creates polyons at 0m height. As we can see from your image the tiles don't overlap completely but for some part (there where the buildings are >0m). You can allways add more AHN tiles in the config for the other regions as it will automatically discard points which are not overlapping the polygons.
-
As explained above, the GFS files are in this repository: https://github.com/tudelft3d/3dfier/tree/master/ressources/BGT_prepare/BGT_gfs_files
These must be used instead of the automatically created ones from QGIS. -
Install OSGeo4W https://trac.osgeo.org/osgeo4w/ to get the GDAL binaries and ogr2ogr. If you done this, open a command window and browse to the folder in which you placed the GML & GFS files and bgt_conversion.bat. Execute bgt_conversion.bat in this folder and the output will multiple .gpkg files. Use these files as input for 3dfier instead of the GML files.
-
If you run into more issues please send a zip containing the following:
All .gpkg files
All .laz filenames (not the files themselves, they are to big)
3dfier configuration YAML file
Screenshot of the console output of 3dfier.exe
P.S. I uploaded a new version of bgt_prepare.bat in the master branch, this creates .gpkg and overcomes the need of the GFS files to be newer then the GML files.
from 3dfier.
I installed OSGeo4W. When I run bgt_conversion.bat I get the following error message: 'ogr2ogr' is not recognized as an internal or external command, operable program or batch file.
I'm making progress, but how do I install ogr2ogr?
from 3dfier.
I fixed ogr2ogr. I run into the same issues however. I added a . zip of all .gpkg files, .laz filenames, yaml config and screenshots of the console output after I run it. It shows several errors.
from 3dfier.
The config looks fine.
Do you have a file called bgt_tunneldeel.gml? I guess not since you don't need tunnels, you can remove this ogr2ogr line by opening the bat file using notepad. If the file is there it could be that it contains no geometries so you should remove it anyhow.
from 3dfier.
Did you get this resolved?
from 3dfier.
@tcommandeur Hey. Not yet, I will try again somewhere this week. You can close this if you want -- if I run into problems I will open another topic.
from 3dfier.
Related Issues (20)
- the "edit me on github" buttons in the docs are all wrong
- Experiences with current setup HOT 2
- Version 1.3 doesn't run my "old version 1.2.2" YAML file HOT 11
- BGT 3DFier HOT 3
- Height Attribute HOT 1
- DSM as input HOT 4
- Cannot read polygons from postgis in v1.3.0
- Roads weird shape
- Problem with big spikes in roads
- Attributes with special characters are not supported
- Bad results with my own dataset HOT 1
- osm data with 3dfier HOT 1
- Unsupported geometry type: Polygon / CDT update; point location not in face but on vertex.
- Config file is valid! No output generated
- ERROR 4: Unable to open EPSG support file gcs.csv.
- Error message when LAS inputs are missing
- delete the vs_build folder? it's not working anymore I reckon
- libraries error
- A problem of reading laz HOT 4
- extruding height from footprints attribute instead of using a pointcloud ? HOT 1
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 3dfier.