Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osmtogeojson

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osmtogeojson - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

5

CHANGELOG.md

@@ -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 @@ ------------

6

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc