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

geojson-qt

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geojson-qt - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

17

lib/geojson.js

@@ -20,7 +20,14 @@ var GeoJSON = function() {

if( obj.length == 0 )
return;
return true;
if( Array.isArray(obj[0]) ) {
for( var ai = 0; ai < obj.length; ai++ )
addpt(obj[ai]);
for( var ai = 0; ai < obj.length; ai++ ) {
if( addpt(obj[ai]) == false ) {
obj.splice(ai, 1);
ai--;
}
}
} else {
if( typeof obj[0] != 'number' || typeof obj[1] != 'number' )
return false;
if( first || obj[0] < minx )

@@ -50,5 +57,5 @@ minx = obj[0];

addpt(obj.geometries[pi]);
} else {
} else
addpt(obj.coordinates);
}
return true;
}

@@ -55,0 +62,0 @@

{
"name": "geojson-qt",
"version": "0.0.1",
"version": "0.0.2",
"description": "utilities for storing and handling geojson geometry in a quadtree",

@@ -14,4 +14,4 @@ "main": "lib/geojson.js",

"dependencies": {
"simple-quadtree": "~0.1.2"
"simple-quadtree": "^0.1.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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