Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a little question, regarding the gdal_translate-utility:

I want to extract raster-files from database-stored gridfiles using the gdal_translate:

gdal_translate -ot Float32 -of SAGA PG: "host='localhost' port='5432' dbname='$dbname' user='$dbowner' schema='grids' table='testrun' mode='2'" /output/...

But instead of delivering output it shows me "Too many command options." Then it lists usage and supported output formats. What does this message mean? I was searching the net already but found nothing which could be helpful.

Thanks for an answer in advance, knutella

share|improve this question

closed as too localized by iant, whuber Jan 9 '13 at 15:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It probably means that you haven't specified the command args in a valid way. You have either supplied incorrect args or the formatting has caused gdal to parse it in a way that is not expected. – DavidF Jan 9 '13 at 14:09
Thanks David, for your quick reply. It seems that connection-arguments are committed properly through the script/me. About the input format from database I'm not sure now, because there is complex function behind. I guess I must dive a bit deeper into the dbase. Thanks David. – knutella Jan 9 '13 at 14:34
UPDATE: It was indeed my fault: I forgot to put the mode=2 into inverted comma... %) In question-post its corrected already. – knutella Jan 9 '13 at 14:43