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
#!/usr/bin/env python | |
#%module | |
#% description: configure attributes using SIGUA schema | |
#%end | |
#%option | |
#% key: input | |
#% type: string | |
#% description: Input building floor polygon shapefile | |
#% required: yes |
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
#!/usr/bin/env python | |
#%module | |
#% description: topology cleaning geoprocess | |
#%end | |
#%flag | |
#% key: o | |
#% description: Overwrite existing maps | |
#%end | |
#%option |
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 OR REPLACE FUNCTION redis_pubsub.notifygeometrychange_trigger() | |
RETURNS trigger AS | |
$BODY$ | |
DECLARE | |
message text; | |
geom geometry; | |
xmin double precision; | |
ymin double precision; | |
xmax double precision; | |
ymax double precision; |
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 OR REPLACE FUNCTION redis_pubsub.notify(channel text, message text, host text, port integer) | |
RETURNS void AS | |
$BODY$ | |
#Safeguard against null or empty values | |
if (channel is None) or (message is None): | |
return | |
if (host is None) or (host.strip() == ""): | |
redishost = "127.0.0.1" | |
else: | |
redishost = host |
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
from argparse import ArgumentParser | |
import os | |
from lxml import etree | |
import redis | |
EXEC_DIR = os.path.dirname(__file__) | |
root = "/home/josetomas/Descargas/catastro_alicante_2014" | |
gmdns = "{http://www.isotc211.org/2005/gmd}" |
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.Globalization; | |
using System.Collections.Generic; | |
using ServiceStack.Redis; | |
using ServiceStack.Redis.Generic; | |
using ServiceStack.Text; | |
using System.Linq; | |
namespace redisw | |
{ |
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.Collections.Generic; | |
using System.IO; | |
using GeoAPI.Geometries; | |
using NetTopologySuite.Features; | |
using NetTopologySuite.Geometries; | |
using NetTopologySuite.IO; | |
using System.Globalization; | |
namespace ShortestPath |
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.Collections.Generic; | |
using GeoAPI.Geometries; | |
using NetTopologySuite.Geometries; | |
using NetTopologySuite.IO; | |
using NetTopologySuite.Densify; | |
using NetTopologySuite.Triangulate; | |
namespace Skeleton | |
{ |
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
//Get point cloud S from polygon P | |
//by running a densify operation | |
var S = P.Densify (); | |
//Create Voronoi diagram V for | |
//point cloud S | |
var V = Voronoi (S); | |
//Get intersection C of Voronoi diagram V | |
//with polygon P |
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.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using GeoAPI.Geometries; | |
using NetTopologySuite.Geometries; | |
using NetTopologySuite.IO; | |
using NetTopologySuite.Densify; | |
namespace MortonOrder |
NewerOlder