There's no need to add geometry columns when creating Topological layers, that's something only useful for caching geometries, so move to cache_geometries.sql

git-svn-id: http://svn.osgeo.org/postgis/trunk@6696 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2011-01-22 18:08:46 +00:00
parent 14cbbbd617
commit ac2ce80a23
4 changed files with 8 additions and 13 deletions

View file

@ -2,6 +2,14 @@
-- created by load_topology.sql and stores there the SFS Geometry
-- derived by the TopoGeometry column
-- Add geometry columns, for caching Geometries from TopoGeometries
SELECT AddGeometryColumn('features','land_parcels','the_geom',-1,'MULTIPOLYGON',2);
SELECT AddGeometryColumn('features','city_streets','the_geom',-1,'MULTILINESTRING',2);
SELECT AddGeometryColumn('features','traffic_signs','the_geom',-1,'MULTIPOINT',2);
--ALTER TABLE features.city_streets ADD the_geom geometry;
UPDATE features.city_streets set the_geom = multi(topology.Geometry(feature));

View file

@ -46,13 +46,6 @@ SELECT topology.AddTopoGeometryColumn('city_data', 'features', 'city_streets','f
--NOTYET---- 5. Initialize topology metadata.
--NOTYET--EXECUTE topology.INITIALIZE_METADATA('CITY_DATA');
-- 4bis. Add geometry columns, for caching Geometries from TopoGeometries
SELECT AddGeometryColumn('features','land_parcels','the_geom',-1,'MULTIPOLYGON',2);
SELECT AddGeometryColumn('features','city_streets','the_geom',-1,'MULTILINESTRING',2);
SELECT AddGeometryColumn('features','traffic_signs','the_geom',-1,'MULTIPOINT',2);
-- 6. Load feature tables using the CreateTopoGeom constructor.
-- Each topology feature can consist of one or more objects (face, edge, node)

View file

@ -8,9 +8,6 @@ BEGIN
1
2
3
features.land_parcels.the_geom SRID:-1 TYPE:MULTIPOLYGON DIMS:2
features.city_streets.the_geom SRID:-1 TYPE:MULTILINESTRING DIMS:2
features.traffic_signs.the_geom SRID:-1 TYPE:MULTIPOINT DIMS:2
COMMIT
4
features.big_parcels.the_geom SRID:-1 TYPE:MULTIPOLYGON DIMS:2

View file

@ -8,9 +8,6 @@ BEGIN
1
2
3
features.land_parcels.the_geom SRID:-1 TYPE:MULTIPOLYGON DIMS:2
features.city_streets.the_geom SRID:-1 TYPE:MULTILINESTRING DIMS:2
features.traffic_signs.the_geom SRID:-1 TYPE:MULTIPOINT DIMS:2
COMMIT
4
features.big_parcels.the_geom SRID:-1 TYPE:MULTIPOLYGON DIMS:2