How to use the geojs.Pos function in geojs

To help you get started, we’ve selected a few geojs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DamonOehlman / node-wfs / test / getFeature.js View on Github external
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',
github DamonOehlman / node-wfs / test / getFeature.js View on Github external
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(),
github steelmesh / steelmesh / lib / extensions / geo / tinyows.js View on Github external
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 + '' + 
              '' + 
            ''
        ]);
        */
        
        /*
        '' + 
github steelmesh / steelmesh / lib / extensions / geo / tinyows.js View on Github external
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 + '' + 
              '' + 
            ''
        ]);
        */
        
        /*
        '' + 
        ''