Sorry I didn't pay enough attention.

You declare "gid" as id_attribute_string but it is not in your DATA string.
Try replacing "gid" by "oid" (in id_attribute_string and edit_attributes) and tell us if this works.


LAYER
 NAME "POZZI"
 TYPE POINT
 CONNECTIONTYPE postgis
CONNECTION "user=postgres password=***** dbname=edit_db host=prova port=5432" DATA "the_geom from (select the_geom, oid, provincia, comune from pozzi)as foo using unique oid using SRID=-1" TEMPLATE "ttt"
 CLASS
   NAME "Staz_strum_wgs84utm33"
  STYLE
   SYMBOL  "circlefd"
   SIZE 8
   COLOR 0 255 255
   OUTLINECOLOR 0 0 0
  END

 END
METADATA
     "id_attribute_string" "gid"
     "query_returned_attributes" "provincia comune"
     "edit_table" "pozzi" # PostGIS table
     "edit_geometry_column" "the_geom" # PostGIS geometry column
     "edit_geometry_type" "point" # PostGIS geometry type
     "edit_srid" "-1"
"edit_attributes" "gid,provincia|string,comune|string" # list of the editable
   END
END


_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to