Hello,

I have some problems with osmcoastline, hope some can help ! I want to extract the land polygons and want them in shape-format.

osmcoastline -V osmcoastline version 2.1.2 Copyright (C) 2012-2016 Jochen Topf jochen@topf.org License: GNU GENERAL PUBLIC LICENSE Version 3 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

I run osmcoastline: osmcoastline -o coastline.db cyprus-latest.osm.pbf There were 0 warnings. There were 0 errors.

Then I want the output in shape-format: ogr2ogr -f "ESRI Shapefile" land_polygons.shp coastline.db land_polygons FAILURE: Unable to open datasource coastline.db' with the following drivers. ->PCIDSK' + long list of alternative formats

Am I doing something wrong? How to get the data in shape-format ?

Best regards Håvard

asked 17 Feb, 08:37

HaavardHolm's gravatar image

HaavardHolm
112
accept rate: 0%


First, there are pregenerated coastlines available from here. It might be easier to just use those. Second, your version of osmcoastline is pretty old, I'd suggest using a more current version. Third, it seems osmcoastline did its job and ogr2ogr didn't so this doesn't really have anything to do with osmcoastline, but with ogr2ogr. You left out the most important pieces of information, that is the "long list of alternative formats". You should have a format "SQLite / Spatialite" or something like it in there. If you don't then your version of ogr2ogr doesn't have the necessary driver.

permanent link

answered 17 Feb, 16:28

Jochen%20Topf's gravatar image

Jochen Topf
4.5k54664
accept rate: 33%

Thank you Jochen,

All your comments was to the point. The problem was my ogr2ogr.

Best regards Håvard

(18 Feb, 09:07) HaavardHolm
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2

question asked: 17 Feb, 08:37

question was seen: 119 times

last updated: 18 Feb, 14:50

Related questions

powered by OSQA