Hi everyone,
it is pretty stange. I'm playing with my setup for hours, and still can not
make it work.
I'm trying to save a feature to my postgis database. Actually almost everything
is working, except the featureId, which is not used.
Polygon polygon = GisUtils.convertToPolygon(tile);
//builder.set("tile_id", tileId);
builder.set("updated", new Date());
builder.set("geom", polygon);
...
SimpleFeature feature = builder.buildFeature(featureId);
When I now save this feature, the created entry does not contain my featureId,
but another generated string.
In this example my featureId is "18/12/12" but the id of the inserted row is
"fid-1f5b00e9_13b60b2d4fa_-6891".
Is there a simple solution or what I'm doing wrong here?
Cheers Fritz
P.S. My Table definition:
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)
)
------------------------------------------------------------------------------
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
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users