miércoles, 22 de abril de 2009

miércoles, 8 de abril de 2009

Importar e exportar CSV en PostgreSQL mediante script SQL

Para importar csv:

COPY taboa FROM 'c:\\ficheiros.csv' DELIMITER ';' NULL '' CSV QUOTE '"';


Para exportar CSV:
COPY taboa TO 'c:\\ficheiros.csv' DELIMITER ';' NULL '' CSV QUOTE '"';
Isto último pode requerir que se modifiquen os permisos de c:\\ficheiros.csv, xa que é o servizo de PostgreSQL o que escribirá o ficheiro.

Optimizar columnas de tipo GEOMETRY en Postgre/PostGIS con índices GIST

Creamos un índice GIST:
create index nome_indx on taboa_con_xeometrias using gist (the_geom);

De vez en cando actualizamos as estatísticas do índice:
vacuum analyze taboa_con_xeometrias;


Repositorio jquery

Aquí atoparemos diversos exemplos de uso de jquery.
http://www.open-lab.com/mb.ideas/index.html

jueves, 2 de abril de 2009

Firefox 3 es el navegador más usado en Europa

Firefox 3 es el navegador más usado en Europa

Ver noticia

Como engadir proxección 900913 a geodatabase PostgreSQL/PostGIS

Como engadir proxección 900913 a geodatabase PostgreSQL/PostGIS


INSERT INTO spatial_ref_sys(
   srid,
   auth_name,
   auth_srid,
   srtext,
   proj4text
)
VALUES (
   900913,
   'EPSG',
   900913,
   'PROJCS["GOOGLE PROXECION",GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563,AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH], AUTHORITY["EPSG","4326"]], PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor",1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH], AUTHORITY["EPSG","900913"]]',
   '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs'
);








miércoles, 1 de abril de 2009

Páxina para crear botóns

Páxina para facer botóns de maneira sinxela. Soamente indícalle o texto, o estilo e propiedades como ancho, alto, fonte, etc.., e descarga a imaxen xerada
http://www.buttonator.com/