This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
try { | |
var a = new Uint8Array(1); | |
return; //no need | |
} catch(e) { } | |
function subarray(start, end) { | |
return this.slice(start, end); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION GetGeoJSON (@geo geography) | |
RETURNS varchar(max) | |
WITH SCHEMABINDING | |
/* | |
* Reference: http://stackoverflow.com/questions/6506720/reformat-sqlgeography-polygons-to-json | |
*/ | |
AS | |
BEGIN | |
DECLARE @Result varchar(max) | |
SELECT @Result = '{' + |