Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const soap = require('soap');
- var wstCrabUrl= 'http://crab.agiv.be/WST/CRAB_WST.svc?wsdl';
- var options = {
- forceSoap12Headers: true,
- timeout: 5000
- };
- var args = {
- spatialObjectRequest: {
- Criteria: {
- RequestType: 'AllFields',
- ObjectType: '',
- ClauseElement: {
- ClauseFieldInstance: {
- Name:'id',
- Value: 0,
- },
- ClauseOperator: 'GreaterThan'
- },
- JoinElement: null,
- OrderField: { name: 'id'},
- OrderDirection: 'ascending',
- ActualOnly: false
- },
- IncludeListText: false,
- MaxObjects: 50,
- ResultType: 'results',
- ShapeFilterOperation: 'Contains',
- ShapeFilterWKT: 'POLYGON((3.7482349514993896 51.065633080370645,3.7484602570566405 51.06582017936511,3.7487365245851745 51.06582355051122,3.748977923396515 51.06569039005288,3.748875999453949 51.065523517545316,3.7487070202860107 51.065360015616015,3.7484307527574767 51.065381928279216,3.748277866843628 51.06548812026939,3.7482349514993896 51.065633080370645))'
- }
- };
- soap.createClient(wstCrabUrl, options, (err, client) => {
- client.getCRABSpatialObjectsAsync(args, (err, result) => {
- console.log(result)
- console.log(err)
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement