This file contains 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 = '{' + |
This file contains 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
using System; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace MainColorConsole | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |