Skip to main content
4 of 4
Tiny adjustments, Two tags added, Title adjusted, Structured
Taras
  • 34k
  • 4
  • 73
  • 148

Converting CSV file of WKT data to shapefile using ogr2ogr?

This question is related to Converting shapefiles to text (ASCII) files?.

I have a CSV file, with one column, where all the rows correspond to WKT POLYGON()'s:

WKT
POLYGON(...)
POLYGON(...)
...

I'm familiar with how to convert from shapefile to wkt, but I need to go the other way around. How to accomplish this task?

I tried playing around with ogr2ogr's settings/flags but didn't really get anything useful.

I also know I can use QGIS to do this, but it freezes/crashes since the dataset is fairly large.

Pris
  • 1.3k
  • 4
  • 14
  • 23