Hi together,
I'm playing around now for hours an simply can not make it run.

I try to store a feature into postgis, which is almost working perfectly, 
except the feature id.

Polygon polygon = GisUtils.convertToPolygon(tile);
builder.set("updated", new Date());
builder.set("geom", polygon);
...
SimpleFeature feature = builder.buildFeature(featureId);

In my case the featureID is set to "18/12/12". When I look into the database 
table, the id looks like this "fid--50250c12_13b60c20cc4_-7061".
I really do not know, why my featureId is not used but the stange id appears.

Any help?

My db definition looks like this:
CREATE TABLE result
(
  tile_id text NOT NULL,
  updated timestamp without time zone NOT NULL,
  geom geometry,
...
  CONSTRAINT pk_result PRIMARY KEY (tile_id ),
  CONSTRAINT enforce_dims_geom CHECK (st_ndims(geom) = 2),
  CONSTRAINT enforce_geotype_geom CHECK (geometrytype(geom) = 'POLYGON'::text 
OR geom IS NULL),
  CONSTRAINT enforce_srid_geom CHECK (st_srid(geom) = 4326)
)
WITH (
  OIDS=FALSE
);
ALTER TABLE result
  OWNER TO postgres;


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to