Hello every one I would like to add a new Feature using PROVIDED_FID as 
I want to add this feature with defined values and has a composite 
PrimaryKey....

This is my new code :

SimpleFeatureBuilder builder = new SimpleFeatureBuilder(featureType);

     Enumeration<String> attrs= this.getCurProperties().keys();
     while(attrs.hasMoreElements()){
          String attrName=attrs.nextElement();
          Object attrValor=(String) this.getCurProperties().get(attrName);
          builder.set(attrName,attrValor );
     }


builder.featureUserData(Hints.USE_PROVIDED_FID, Boolean.TRUE);

SimpleFeature feature = builder.buildFeature(????);

How can I get the values to change the FID???


Thanks in advance!!!!

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to