New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bgr-apis

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bgr-apis - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

1

.eslintrc.js

@@ -19,2 +19,3 @@ module.exports = {

],
"no-console": 0,
"quotes": [

@@ -21,0 +22,0 @@ "error",

31

index.js

@@ -1,3 +0,2 @@

const utils = require('./src/utils');
const fs = require('fs')
const utils = require('./src/utils')

@@ -16,5 +15,10 @@ module.exports = {

const url = `https://services.bgr.de/wms/boden/boart1000ob/?&REQUEST=GetFeatureInfo&SERVICE=WMS&CRS=EPSG%3A3857&STYLES=default&TRANSPARENT=true&VERSION=1.3.0&FORMAT=image%2Fpng&BBOX=${utils.createBBox(geometry)}&HEIGHT=880&WIDTH=514&LAYERS=0&QUERY_LAYERS=0&INFO_FORMAT=text%2Fhtml&I=452&J=371`
const options = {
hostname: 'services.bgr.de',
port: 443,
path: `/wms/boden/boart1000ob/?&REQUEST=GetFeatureInfo&SERVICE=WMS&CRS=EPSG%3A3857&STYLES=default&TRANSPARENT=true&VERSION=1.3.0&FORMAT=image%2Fpng&BBOX=${utils.createBBox(geometry)}&HEIGHT=880&WIDTH=514&LAYERS=0&QUERY_LAYERS=0&INFO_FORMAT=text%2Fhtml&I=452&J=371`,
method: 'GET'
}
utils.request(url)
utils.request(options)
.then(res => {

@@ -40,7 +44,11 @@ resolve(utils.soilTypeHtmlParsing(res))

const url = `https://services.bgr.de/wms/boden/bodeneigenschaften/?&REQUEST=GetFeatureInfo&SERVICE=WMS&CRS=EPSG%3A3857&STYLES=default&TRANSPARENT=true&VERSION=1.3.0&FORMAT=image%2Fpng&BBOX=${utils.createBBox(geometry)}&HEIGHT=880&WIDTH=514&LAYERS=1&QUERY_LAYERS=1&INFO_FORMAT=text%2Fhtml&I=452&J=371`
const options = {
hostname: 'services.bgr.de',
port: 443,
path: `/wms/boden/bodeneigenschaften/?&REQUEST=GetFeatureInfo&SERVICE=WMS&CRS=EPSG%3A3857&STYLES=default&TRANSPARENT=true&VERSION=1.3.0&FORMAT=image%2Fpng&BBOX=${utils.createBBox(geometry)}&HEIGHT=880&WIDTH=514&LAYERS=1&QUERY_LAYERS=1&INFO_FORMAT=text%2Fhtml&I=452&J=371`,
method: 'GET'
}
utils.request(url)
utils.request(options)
.then(res => {
fs.writeFileSync('test.html', res, 'utf8')
resolve(utils.soilTypeHtmlParsing(res))

@@ -66,5 +74,10 @@ })

const url = `https://services.bgr.de/wms/boden/sqr1000/?&REQUEST=GetFeatureInfo&SERVICE=WMS&CRS=EPSG%3A3857&STYLES=default&TRANSPARENT=true&VERSION=1.3.0&FORMAT=image%2Fpng&BBOX=${utils.createBBox(geometry)}&HEIGHT=830&WIDTH=561&LAYERS=${layer}&QUERY_LAYERS=${layer}&INFO_FORMAT=text%2Fhtml`
const options = {
hostname: 'services.bgr.de',
port: 443,
path: `/wms/boden/sqr1000/?&REQUEST=GetFeatureInfo&SERVICE=WMS&CRS=EPSG%3A3857&STYLES=default&TRANSPARENT=true&VERSION=1.3.0&FORMAT=image%2Fpng&BBOX=${utils.createBBox(geometry)}&HEIGHT=830&WIDTH=561&LAYERS=${layer}&QUERY_LAYERS=${layer}&INFO_FORMAT=text%2Fhtml`,
method: 'GET'
}
utils.request(url)
utils.request(options)
.then(res => {

@@ -71,0 +84,0 @@ resolve(utils.sqrHtmlParsing(res))

{
"name": "bgr-apis",
"version": "0.1.0",
"version": "0.1.1",
"description": "Soil quality API covering Germany with data from BGR",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -112,3 +112,3 @@ let proj4 = require('proj4')

return point
} else if (point.type === 'Feature') {
} else if (point.type === 'Feature' || point.type === 'Polygon') {
return centroid(point)

@@ -115,0 +115,0 @@ } else {

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