Details Ticket 3917


Comment | Reply | Take | Open


Serial Number 3917
Subject v.out.ogr: schema error with PostGIS (1.1.0)
Area grass6
Queue grass
Requestors neteler@itc.it
Owner none
Status resolved
Last User Contact Sat Sep 23 10:33:18 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Sep 23 10:33:20 2006 (2 yr ago)
Created Tue Dec 27 21:18:30 2005 (3 yr ago)

Transaction History Ticket 3917


Tue, Dec 27 2005 21:18:30    Request created by guest  
Subject: v.out.ogr: schema error with PostGIS (1.1.0)

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources

Hi,

using v.out.ogr within Spearfish to export "soils" to
PostgreSQL 8/PostGIS 1.1.0, I got the following messages:

v.out.ogr input=soils type=area \
          dsn="PG:host=localhost dbname=postgis user=neteler" \
          olayer=soils format=PostgreSQL

# (translated from German message):
NOTICE:  CREATE TABLE creates implizitly a sequence »soils_ogc_fid_seq« for the
»serial«
-column »soils.ogc_fid«
NOTICE:  Invalid schema name - using current_schema()
BACKGROUND:  SQL-command »SELECT  AddGeometryColumn('', $1 , $2 , $3 , $4 , $5
, $6 )«
        PL/pgSQL function "addgeometrycolumn" line 4 at select into variables
Exporting to SHAPE first, then 
 shp2pgsql testogr.shp testogr postgis | psql postgis
didn't print such messages.

The table structure is:
postgis=# \d soils;
                                    Tabelle »public.soils«
    Spalte    |        Typ        |                         Attribute       
--------------+-------------------+------------------------------------------------------------
ogc_fid      | integer           | not null default nextval('public.soils_ogc_fid_seq'::text)
wkb_geometry | geometry          |
 cat          | integer           |
 label        | character varying |
Check-Constraints:
    »enforce_srid_wkb_geometry« CHECK (srid(wkb_geometry) = 1)
    »enforce_dims_wkb_geometry« CHECK (ndims(wkb_geometry) = 2)
    »enforce_geotype_wkb_geometry« CHECK (geometrytype(wkb_geometry) = 'POLYGON'::text
OR wkb_geometry IS NULL)

postgis=# \d soils_ogc_fid_seq
Sequenz »public.soils_ogc_fid_seq«
    Spalte     |   Typ
---------------+---------
 sequence_name | name
 last_value    | bigint
 increment_by  | bigint
 max_value     | bigint
 min_value     | bigint
 cache_value   | bigint
 log_cnt       | bigint
 is_cycled     | boolean
 is_called     | boolean

Probably something changes in PostgreSQL V8 or the new PostGIS?

Markus

Wed, Jan 4 2006 11:46:14    Mail sent by msieczka  
Markus,

Changing area to grass6 (you didn't mean grass54 indeed, right?)

Maciek
Wed, Jan 4 2006 11:46:21    Area changed to grass6 by msieczka  
Mon, Aug 28 2006 14:58:33    Comments added by mneteler  
Probably something happened today as schema support
was added to OGR/PG:

http://bugzilla.remotesensing.org/show_bug.cgi?id=522

Markus
Sat, Sep 23 2006 10:33:18    Mail sent by mneteler  
Now it works:

v.out.ogr input=soils type=area           dsn="PG:host=localhost
dbname=postgis user=neteler"           olayer=soils format=PostgreSQL
lco=OVERWRITE=YES
Exporting 737 areas (may take some time) ...
 100%
737 features written
WARNING: 1 features without attributes written

closing.
Sat, Sep 23 2006 10:33:20    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request