Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of attributes not equal to number of geometries #23

Open
molaiea opened this issue Jun 24, 2023 · 2 comments
Open

Number of attributes not equal to number of geometries #23

molaiea opened this issue Jun 24, 2023 · 2 comments
Assignees

Comments

@molaiea
Copy link

molaiea commented Jun 24, 2023

When I try lod22-reconstruct with the test-data I get this error ERROR: Error: Number of attributes not equal to number of geometries [field name =OGRLoader.aantal_verblijfsobjecten]
PS : I am working on ubuntu with the latest version of the code on github.
this is the full log key not found in node parameters: skip_LoD12 key not found in node parameters: skip_LoD13 key not found in node parameters: skip_LoD22 key not found in node parameters: feature_select key not found in node parameters: epsg key not found in node parameters: overwrite key not found in node parameters: epsg key not found in node parameters: overwrite key not found in node parameters: epsg key not found in node parameters: overwrite key not found in node parameters: epsg key not found in node parameters: overwrite key not found in node parameters: epsg key not found in node parameters: overwrite key not found in node parameters: epsg key not found in node parameters: overwrite key not found in node parameters: epsg key not found in node parameters: overwrite ERROR: Error: Number of attributes not equal to number of geometries [field name =OGRLoader.aantal_verblijfsobjecten]

@ltg1710
Copy link

ltg1710 commented Jun 28, 2023

When I encounter this problem, my method may be helpful to you.
I clone the latest version of the code on github, and use it by readme.md. the command like this

geof \
  /usr/local/share/geoflow/gfc-brecon/single/reconstruct.json \
  --input_footprint=/data/test-data/wippolder.gpkg \
  --input_pointcloud=/data/test-data/wippolder.las \
  --output_cityjson=/data/output_docker/model.json \
  --output_ogr=/data/output_docker/model_2d.gpkg \
  --output_obj_lod12=/data/output_docker/model_lod12.obj \
  --output_obj_lod13=/data/output_docker/model_lod13.obj \
  --output_obj_lod22=/data/output_docker/model_lod22.obj

According to this commit, the parameter "feature_select" (which is used in the flowchart file) have been discarded. now should use the parameter attribute_filter rather than feature_select.

so just edit flowchart.json file from line

"feature_select":"{{input_footprint_select}}",

to

"attribute_filter":"fid=={{input_footprint_select}}",

You can refer to the grammar of attribute_filter from here

I hope this can help you

@esgn
Copy link

esgn commented Jul 26, 2023

Many thanks @ltg1710. Was struggling with this issue in the latest release.

As for the other key not found outputs, is there something to be done also ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants