osmtogeojson
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
@@ -0,1 +1,6 @@ | ||
3.0.0-beta.2 | ||
------------ | ||
* output linestrings for waterway relations, too | ||
* improve handling of data with duplicate osm objects | ||
3.0.0-beta.1 | ||
@@ -2,0 +7,0 @@ ------------ |
@@ -608,3 +608,3 @@ var _ = require("./lodash.custom.js"); | ||
if ((typeof rels[i].tags != "undefined") && | ||
(rels[i].tags["type"] == "route")) { | ||
(rels[i].tags["type"] == "route" || rels[i].tags["type"] == "waterway")) { | ||
if (!_.isArray(rels[i].members)) { | ||
@@ -919,4 +919,4 @@ if (options.verbose) console.warn('Route',rels[i].type+'/'+rels[i].id,'ignored because it has no members'); | ||
var way_type = "LineString"; // default | ||
if (typeof ways[i].nodes[0] != "undefined" && // way has its nodes loaded | ||
ways[i].nodes[0] === ways[i].nodes[ways[i].nodes.length-1] && // ... and forms a closed ring | ||
if (typeof ways[i].nodes[0] != "undefined" && typeof ways[i].nodes[ways[i].nodes.length-1] != "undefined" && // way has its start/end nodes loaded | ||
ways[i].nodes[0].id === ways[i].nodes[ways[i].nodes.length-1].id && // ... and forms a closed ring | ||
( | ||
@@ -923,0 +923,0 @@ typeof ways[i].tags != "undefined" && // ... and has tags |
{ | ||
"name": "osmtogeojson", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0-beta.2", | ||
"description": "convert OSM to geojson", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
416772