GuiCheBZH ha scritto:
> Hi,
> I want to create a shapefile from a MapLayer.
> I used the example on the website
> http://docs.codehaus.org/display/GEOTDOC/11+Exporting+to+A+Shapefile website
> , but I have a little problem the new shapefile.
> 
> When I do that: featureStore.addFeatures(collection);
> 
> The featureStore doesn't keep the features ID and set IDs as xxx.0, xxx.1,
> ...
> But I want to keep these IDs otherwise the styles that I saved in a SLD file
> can't be reused due to different IDs in the SLD and the shapefile.
> 
> If someone can help me to solve my problem, I will be grateful.

As far as I know the ids cannot be kept, the ids coming from a shapefile
are just row numbers, beginning from 1 at the first feature in the
shapefile and counting up

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to