On 3 December 2012 12:25, Fritz Richter <rich...@rich-and-high.com> wrote:

> 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);
>

It looks possible that you meant tileId instead of featureId here  - if
featureId is null GeoTools will provide you with a default FID (which is
what you are getting).

Ian
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to