]> granicus.if.org Git - postgis/commitdiff
Fix indentation of examples
authorRegina Obe <lr@pcorp.us>
Fri, 21 Nov 2008 14:30:40 +0000 (14:30 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 21 Nov 2008 14:30:40 +0000 (14:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3315 b70326c6-7e19-0410-871a-916f4a2858ee

doc/using_postgis.xml

index b8740985cf259b722d706f6dfc1eae5386e2d9d2..c44c84d2e90b3217fa750db7d95b8cff8b99520c 100644 (file)
@@ -539,33 +539,33 @@ SELECT AddGeometryColumn( 'roads', 'roads_geom', -1, 'GEOMETRY', 3 );</programli
                geometry_columns table manually.  Below is a simple script to do that.</para>
                
                <programlisting>
-                       --Lets say you have a view created like this
-                       CREATE VIEW  public.vwmytablemercator AS
-                               SELECT gid, ST_Transform(the_geom,3395) As the_geom, f_name
-                               FROM public.mytable;
-                               
-                       --To register this table in AddGeometry columns - do the following
-                       INSERT INTO geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, "type")
-                       SELECT '', 'public', 'vwmytablemercator', 'the_geom', ST_CoordDim(the_geom), ST_SRID(the_geom), GeometryType(the_geom)
-                       FROM public.vwmytablemercator LIMIT 1;
+--Lets say you have a view created like this
+CREATE VIEW  public.vwmytablemercator AS
+       SELECT gid, ST_Transform(the_geom,3395) As the_geom, f_name
+       FROM public.mytable;
+       
+--To register this table in AddGeometry columns - do the following
+INSERT INTO geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, "type")
+SELECT '', 'public', 'vwmytablemercator', 'the_geom', ST_CoordDim(the_geom), ST_SRID(the_geom), GeometryType(the_geom)
+FROM public.vwmytablemercator LIMIT 1;
 
                </programlisting>
                
                <programlisting>
-                       --Lets say you created a derivative table by doing a bulk insert
-                       SELECT poi.gid, poi.the_geom, citybounds.city_name
-                       INTO myschema.myspecialpois
-                       FROM poi INNER JOIN citybounds ON ST_Intersects(citybounds.the_geom, poi.the_geom);
-                       
-                       --Create index on new table
-                       CREATE INDEX idx_myschema_myspecialpois_geom_gist
-                         ON myschema.myspecialpois USING gist(the_geom);
-       
-                       --To manually register this new table's geometry column in geometry_columns 
-                       -- we do the same thing as with view 
-                       INSERT INTO geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, "type")
-                       SELECT '', 'myschema', 'myspecialpois', 'the_geom', ST_CoordDim(the_geom), ST_SRID(the_geom), GeometryType(the_geom)
-                       FROM public.myschema.myspecialpois LIMIT 1;
+--Lets say you created a derivative table by doing a bulk insert
+SELECT poi.gid, poi.the_geom, citybounds.city_name
+INTO myschema.myspecialpois
+FROM poi INNER JOIN citybounds ON ST_Intersects(citybounds.the_geom, poi.the_geom);
+
+--Create index on new table
+CREATE INDEX idx_myschema_myspecialpois_geom_gist
+  ON myschema.myspecialpois USING gist(the_geom);
+
+--To manually register this new table's geometry column in geometry_columns 
+-- we do the same thing as with view 
+INSERT INTO geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, "type")
+SELECT '', 'myschema', 'myspecialpois', 'the_geom', ST_CoordDim(the_geom), ST_SRID(the_geom), GeometryType(the_geom)
+FROM public.myschema.myspecialpois LIMIT 1;
 
                </programlisting>