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

inability to add vector data when using geoserver-update #63

Open
kbagstad opened this issue May 10, 2012 · 6 comments
Open

inability to add vector data when using geoserver-update #63

kbagstad opened this issue May 10, 2012 · 6 comments

Comments

@kbagstad
Copy link
Member

@fvilla @lambdatronic

Not sure why this is the case but if you pull the latest version of the REST spreadsheet and try to do a geoserver-update, there are 3 vector datasets that won't add properly. It was my understanding that some time ago Gary added a feature to automatically do the shp2db thing so it ought to be a 1-step process. But either way it's not working, would be good if someone else could give it a quick test.

@lambdatronic
Copy link
Member

This is a known issue on my part. I did put some time into making this work, but I didn't notice it had a bug in it until sometime later. So unfortunately, you do have to run shp2db manually right now until I get that bug fixed. Then just rerun geoserver-update to register the layers with Geoserver. Sorry about that.

@kbagstad
Copy link
Member Author

Fair enough. The shp2db command changed at some point to though - and I'm not familiar with the new syntax. I've ssh'd to huginn using the tomcat login and am trying "shp2db 4269 raid/geodata/data/united_states/levees/Gen_Struct_Repro.shp levees usa kbagstad", for instance - I assume the last 2 arguments for "database" and "user" are correct though I'm totally uncertain. For all 3 vector layers that I'm trying to add (with '+''s in the current spreadsheet) I get the message "shape or index file cannot be opened, will just import attribute data, dbf file cannot be opened.

Can you run down the proper syntax for this so I've got it down? Thanks.

@lambdatronic
Copy link
Member

The syntax is:

shp2db 4269 /raid/geodata/data/united_states/levees/Gen_Struct_Repro levees usa postgres

Note that you leave off the .shp from the shapefile filename.

@kbagstad
Copy link
Member Author

Bien, gracias. I'm leaving this open for now - if you want an open issue to remind you to work on this on that magical day when all other work all slows down, that's cool, otherwise feel free to close it.

@kbagstad
Copy link
Member Author

So do you want to leave this open or close it?

@lambdatronic
Copy link
Member

This is still an open issue, since I haven't fixed the geoserver-update command yet.

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

2 participants