Skip to content

Commit

Permalink
Use CSV datasource instead of OGR
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Apr 22, 2014
1 parent 121cd2c commit b65856b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,8 @@ function generateLayer(feature, i) {
tag('StyleName', 'style-' + i) +
tag('Datasource',
[
['type', 'ogr'],
['layer_by_index', '0'],
['driver', 'GeoJson'],
['string', JSON.stringify(feature.geometry)]
['type', 'csv'],
['inline', "geojson\n'" + JSON.stringify(feature.geometry) + "'"]
].map(function(a) {
return tag('Parameter', a[1], [['name', a[0]]]);
}).join('\n')), [
Expand Down

0 comments on commit b65856b

Please sign in to comment.