Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    Importare uno shape file in postgres

    ciao,

    ho installato il database postgresql..vorrei importare dei file shape..però mi viene dato questo errore, riporto tutto il log:

    codice:
    Shapefile type: Polygon
    Postgis type: MULTIPOLYGON[2]
    Failed SQL begins: "SET CLIENT_ENCODING TO UTF8;
    SET STANDARD_CONFORMING_STRINGS TO ON;
    BEGIN;
    CREATE TABLE "public"."LandCoverCORINE" (gid serial PRIMARY KEY,
    "superficie" float8,
    "codice" int2,
    "livello1" int2,
    "livello2" int2);
    SELECT AddGeometryColumn('public','LandCove"
    Failed in pgui_exec(): ERROR:  function addgeometrycolumn(unknown, unknown, unknown, unknown, unknown, integer) does not exist
    LINE 9: SELECT AddGeometryColumn('public','LandCoverCORINE','the_geo...
                   ^
    HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
    
    Shapefile import failed.
    perchè non riesco a importare nessun shape file? c'è qualcosa da configurare? per gestire il database uso l'interfaccia grafica di pdadmin.
    spero qualcuno possa darmi una dritta..è la prima volta che uso questo database.
    grazie.
    ciao.
    PeppePegasus

  2. #2
    beh il motivo per il quale da errore è evidente infatti dice che non trova nulla che si chiami AddGeometryColumn

    dai un occhio qua
    http://postgis.refractions.net/

    e qua
    http://postgis.refractions.net/docum...html#id2786223
    The fastest Redis alternative ... cachegrand! https://github.com/danielealbano/cachegrand

  3. #3
    Utente di HTML.it L'avatar di gibra
    Registrato dal
    Apr 2008
    residenza
    Italy
    Messaggi
    4,244
    Guarda qui
    http://www.postgis.org/


    Oppure:
    http://tainavn.blogspot.com/2007/10/...file-into.html

    Anche qui:
    http://wiki.gfoss.it/index.php/Shp2pgsql

    Download di shp2pgsql.exe
    http://www.carto.net/svg/utils/shp2svg/



    EDIT:
    dimenticavo che puoi scaricare PostGIS direttamente dal tuo PC:

    Start -> Programmi -> PostgreSQL 8.4 -> Application Stack Builder


  4. #4
    ok..

    grazie..controllerò e leggerò il materiale indicato.
    ciao
    PeppePegasus

  5. #5
    ciao,

    ho installato il plug in per convertire i file shape in file sql in modo da inserirli nel db..ma niente..sempre stesso errore:

    codice:
    Source File: C:\Download\zone_umide_lazio_shape\Zone_umide
    Shapefile type: Polygon
    Postgis type: MULTIPOLYGON[2]
    Failed SQL begins: "SET CLIENT_ENCODING TO UTF8;
    SET STANDARD_CONFORMING_STRINGS TO ON;
    BEGIN;
    CREATE TABLE "public"."Zone_umide" (gid serial PRIMARY KEY,
    "codzu" int4);
    SELECT AddGeometryColumn('public','Zone_umide','the_geom','-1','MULTIPOLYGON',2);
    "
    Failed in pgui_exec(): ERROR:  function addgeometrycolumn(unknown, unknown, unknown, unknown, unknown, integer) does not exist
    LINE 6: SELECT AddGeometryColumn('public','Zone_umide','the_geom','-...
                   ^
    HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
    
    Shapefile import failed.
    come mai? non ho installato bene il plug in o c'è qualche altro problema?
    grazie..
    ciao.
    PeppePegasus

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.