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

Error with 'spatialRepresentationType' for raster data #215

Closed
juliepierson opened this issue Sep 22, 2021 · 15 comments
Closed

Error with 'spatialRepresentationType' for raster data #215

juliepierson opened this issue Sep 22, 2021 · 15 comments
Assignees
Milestone

Comments

@juliepierson
Copy link

Hi,
Sorry to bother you again, but I have trouble solving this. I'm running geoflow to create and publish metadata in geonetwork for raster data, using a CSV table. Previously, the 'Data' column in my CSV was empty and all went well. I tried again 2 days ago (wih some new data as well as data I had previously successfully imported) and I had some error messages : first
Error in if (spatialRepresentationType == "vector") { : l'argument est de longueur nulle
And when I added "spatialRepresentationType:grid" in CSV (not at all sure about that) I got
Error in initialize(...): The data 'source' is mandatory
I tried setting the source as well but I can't seem to make it work (and I don't want geoflow to upload my data so it doesn't seem necessary anyway).
I may be missing something obvious, thanks for your help !

@eblondel
Copy link
Collaborator

@juliepierson sounds we broke smthg recently with adding support for ISO 19115-2. just pushed some commit, can you reinstall and try again?

@juliepierson
Copy link
Author

Thanks for your quick answer, I reinstalled (and restarted RStudio), I got :
Error in action$fun(entity = entity, config = config, options = action$options) : objet 'spatialRepresentationType' introuvable

@eblondel
Copy link
Collaborator

more controls pushed, sounds 1st commit was not enough.

@juliepierson
Copy link
Author

Thanks, now I get
Error in entity$relations[sapply(entity$relations, function(x) { : type 'list' d'indice incorrect
But maybe it's totally unrelated ?

@eblondel
Copy link
Collaborator

can you send me your csv file?

@juliepierson
Copy link
Author

@eblondel
Copy link
Collaborator

They are columns such as the relations one that are set to NA, leave the columns empty.

@juliepierson
Copy link
Author

Thanks, I tried again leaving all NA cells empty, I get the same error message.

eblondel added a commit that referenced this issue Sep 22, 2021
@eblondel
Copy link
Collaborator

i've checked some additional code that might cause this issue. Let me know

@juliepierson
Copy link
Author

Yes !! It works ! Thanks for your time :)

@eblondel
Copy link
Collaborator

you're welcome. Apologies for the bugs, we are going to consolidate the tool adding integration tests for common workflows.

@eblondel
Copy link
Collaborator

@juliepierson Another thing, if you try to reinstall geonapi package, I'm now supporting the new API starting with Geonetwork >= 3.2 I would welcome some test with the new geonapi and the geonapi action to publish metadata on geonetwork. Cf #213
If this works well, I will try to add the thumbnail upload to the action #211

@juliepierson
Copy link
Author

Great, I can test next week, I'll let you know how it goes.

@eblondel
Copy link
Collaborator

Great thanks @juliepierson . Whatever open question you have, you can ask it at https://gitter.im/geoflow-users/community unless you think there is a bug, keep using github issues!

@juliepierson
Copy link
Author

Thanks, I'll do that !

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

No branches or pull requests

2 participants