ariesteam / aries

http://www.ariesonline.org
GNU General Public License v3.0
6 stars 1 forks source link

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

Open kbagstad opened 12 years ago

kbagstad commented 12 years ago

@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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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

lambdatronic commented 12 years ago

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