var download = require('./download'),
context = require('./context'),
jsts = require('jsts');


describe('ShapeFile', function() {

	before(download([
		{
			url: "https://copy.com/yzHc6aQO76ko/shp.js/br.sp.zip?download=1",
			name: "br.sp.zip",
			test: "br.sp.shp"
		}
	]));

	// Sertãozinho - SP - BR: -47.88684,-47.86040,-21.08315,-21.05238

	describe('intersects', function() {

		context('br.sp.shp', 'Sertãozinho', function(shapeFile, done) {

			var envelope = new jsts.geom.Envelope(-47.88684,-47.86040,-21.08315,-21.05238);
			shapeFile.intersects(envelope, function(err, feature) {
			});
		});
	});

});
var download = require('./download'),
context = require('./context'),
jsts = require('jsts'),
expect = require('chai').expect;


describe('ShapeFile', function() {

	before(download([
		{
			url: "https://copy.com/yzHc6aQO76ko/shp.js/br.sp.zip?download=1",
			name: "br.sp.zip",
			test: "br.sp.shp"
		}
	]));

	// Sertãozinho - SP - BR: -47.88684,-47.86040,-21.08315,-21.05238

	describe('intersects', function() {

		context('br.sp.shp', 'Sertãozinho', function(shapeFile, done) {

			var envelope = new jsts.geom.Envelope(-47.88684,-47.86040,-21.08315,-21.05238);
			shapeFile.intersects(envelope, function(err, feature) {
				expect(err).to.not.exist;
			});
		});
	});

});
Check error