- Messages
- 11
- Country

Hello, Arno. First of all, thanks a lot for Scenproc!. What a piece of code!. However, I've been testing the create 3D buildings functionality and found some problems, probably because of myself. I'm trying to create 3d buildings from footprints included in one shapefile (tmp_edificios_999.shp) which has WGS84 spatial reference. I simplified the script as much as possible to have a good control of the process, and only left the three mandatory steps: ImportOGR, Create3DBuildings and ExportBGL:
ImportOGR|d:\SIG\autogen_espana\pruebas\tmp_edificios_999.shp|*|*|NOREPROJ
Create3DBuilding|TIPOEDIF=999|6|0|FLAT|0|NONE
ExportBGL|P3D v4|Buildings|d:\SIG\autogen_espana\pruebas
Every time I run this script Scenproc throw an error with each processed entity:
Warning Error, skipping footprint (Referencia a objeto no establecida como instancia de un objeto.)
Translated from spanish:
Warning Error, skipping footprint (Object Reference not set to an instance of an object.)
The result is always zero entities created.
I've been trying the script with Scenproc 3.0 final version and with the latest Scenproc 3.1 Development Release, with the same result. I even was testing the script with simplest footprints (in fact, just rectangles and squares stored in another shapefile named tmp_edificios_Tipo1.shp and extracted with Scenproc) with no luck. As I have spanish regional settings I also modified the configuration of my computer to be able to run BGLcomp, but I don't know what else I can do. I searched this forum and I only found one error more or less similar, which finally was related with the base altitudes of the buildings. Do you think this error could also be related with this issue?.
Attached to this post you can find the script (script_crea3dbuild.spc), the original data (shapefiles including both complex and simple entities, compressed into two zip files) and the error log (error_log.txt), if you want to try them in your system for testing purposes. The script makes reference to the shapefile with simplest footprints, and the error log is the result of this processing.
Thanks beforehand and best regards.
Luis
ImportOGR|d:\SIG\autogen_espana\pruebas\tmp_edificios_999.shp|*|*|NOREPROJ
Create3DBuilding|TIPOEDIF=999|6|0|FLAT|0|NONE
ExportBGL|P3D v4|Buildings|d:\SIG\autogen_espana\pruebas
Every time I run this script Scenproc throw an error with each processed entity:
Warning Error, skipping footprint (Referencia a objeto no establecida como instancia de un objeto.)
Translated from spanish:
Warning Error, skipping footprint (Object Reference not set to an instance of an object.)
The result is always zero entities created.
I've been trying the script with Scenproc 3.0 final version and with the latest Scenproc 3.1 Development Release, with the same result. I even was testing the script with simplest footprints (in fact, just rectangles and squares stored in another shapefile named tmp_edificios_Tipo1.shp and extracted with Scenproc) with no luck. As I have spanish regional settings I also modified the configuration of my computer to be able to run BGLcomp, but I don't know what else I can do. I searched this forum and I only found one error more or less similar, which finally was related with the base altitudes of the buildings. Do you think this error could also be related with this issue?.
Attached to this post you can find the script (script_crea3dbuild.spc), the original data (shapefiles including both complex and simple entities, compressed into two zip files) and the error log (error_log.txt), if you want to try them in your system for testing purposes. The script makes reference to the shapefile with simplest footprints, and the error log is the result of this processing.
Thanks beforehand and best regards.
Luis
