On 14 June 2010 17:43, Toshy wrote:
>
> To refresh the position of features, here my methods
>
> public void setLat(double lat){
> latitude = lat;
> JTS.Point point = (JTS.Point)
> super.getAttribute(featureType.getGeometryDescriptor().getName();
> Coordinate coord = point.getCoordinate();
> coord.y = lat;
> }
>
> Same to longitude with coord.x
> The code for the selection is the same that selection lab.
I see. So are you working with memory-resident features ?
The reason I ask is that if you are working with, for example, a
shapefile, the above code will not change the contents of the shapfile
and the selection logic (from SelectionLab) will still see the
original data.
Michael
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users