Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const wfs = require('../');
const expect = require('expect.js');
const geofilter = require('geofilter');
const geojs = require('geojs');
const comparer = require('./helpers/comparer');
const _ = require('underscore');
const baseRequest = {
url: 'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs',
typeName: 'sdr:nyu_2451_34564'
};
const lowerCorner = new geojs.Pos('40.60 -74.00');
const upperCorner = new geojs.Pos('40.70 -73.90');
const rules = {
inBronx: {
type: 'like',
args: {
property: 'borough',
value: 'Bronx',
matchCase: false
}
},
// -74.00013,40.600659,-73.900909,40.700422
inBrooklyn: {
type: 'bbox',
args: {
property: 'geom',
const wfs = require('../');
const expect = require('expect.js');
const geofilter = require('geofilter');
const geojs = require('geojs');
const comparer = require('./helpers/comparer');
const _ = require('underscore');
const baseRequest = {
url: 'https://maps-public.geo.nyu.edu/geoserver/sdr/wfs',
typeName: 'sdr:nyu_2451_34564'
};
const lowerCorner = new geojs.Pos('40.60 -74.00');
const upperCorner = new geojs.Pos('40.70 -73.90');
const rules = {
inBronx: {
type: 'like',
args: {
property: 'borough',
value: 'Bronx',
matchCase: false
}
},
// -74.00013,40.600659,-73.900909,40.700422
inBrooklyn: {
type: 'bbox',
args: {
property: 'geom',
min: lowerCorner.toString(),
function bbox(stack, callback, queryParams, req, res) {
var min = new GeoJS.Pos(queryParams.min),
max = new GeoJS.Pos(queryParams.max);
/*
execFilter(stack, callback, [
'' +
'' + params.geomField + '' +
'' +
'' + min.lat + ' ' + min.lon + '' +
'' + max.lat + ' ' + max.lon + '' +
'' +
''
]);
*/
/*
'' +
function bbox(stack, callback, queryParams, req, res) {
var min = new GeoJS.Pos(queryParams.min),
max = new GeoJS.Pos(queryParams.max);
/*
execFilter(stack, callback, [
'' +
'' + params.geomField + '' +
'' +
'' + min.lat + ' ' + min.lon + '' +
'' + max.lat + ' ' + max.lon + '' +
'' +
''
]);
*/
/*
'' +
''