From: Regina Obe Date: Fri, 18 Dec 2009 18:26:32 +0000 (+0000) Subject: fix some typos, cosmetic changes, throw some more geography around X-Git-Tag: 1.5.0b1~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccc35d6936ac31fde2e4d48b0d9731b5aaae74ba;p=postgis fix some typos, cosmetic changes, throw some more geography around git-svn-id: http://svn.osgeo.org/postgis/trunk@5030 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/faq.xml b/doc/faq.xml index 87b4c0c2c..9797f95ad 100644 --- a/doc/faq.xml +++ b/doc/faq.xml @@ -29,8 +29,8 @@ if all you care about is measuring distances and lengths and you have data from all over the world. Geometry datatype is an older data type that has many functions supporting it and enjoys great support from third party tools. Its best if you are pretty comfortable with spatial reference systems or you are dealing with localized data - where all your data fits in a since spatial reference system (SRID), or you need to do a lot of spatial processing. - Refer to our function type matrix to see what is currently supported and what is not. + where all your data fits in a single spatial reference system (SRID), or you need to do a lot of spatial processing. + Refer to to see what is currently supported and what is not. Long Answer: Refer to our more lengthy discussion in the and function type matrix. @@ -56,7 +56,11 @@ First, you need to create a table with a column of type - "geometry" to hold your GIS data. Connect to your database with + "geometry" or "geography" to hold your GIS data. + Storing geography type data is a little different than storing geometry. Refer + to for details on storing geography. + + For geometry: Connect to your database with psql and try the following SQL: CREATE TABLE gtest ( ID int4, NAME varchar(20) ); @@ -64,7 +68,7 @@ SELECT AddGeometryColumn('', 'gtest','geom',-1,'LINESTRING',2); If the geometry column addition fails, you probably have not loaded the PostGIS functions and objects into this database. See the - installation instructions. + . Then, you can insert a geometry into the table using a SQL insert statement. The GIS object itself is formatted using the OpenGIS