[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] Changing coordinate programmatically
|
Thanks for your help,
I had tried setting coordinates of the features in a layer with the following code with no luck:
FeatureCollection collection = source.getFeatures();
Iterator iterator = collection.iterator();
try {
while (iterator.hasNext()) {
Feature feature = (Feature) iterator.next();
Coordinate coordinate = feature.getDefaultGeometry().getCoordinate();
coordinate.x = 26.00;
}
} finally {
collection.close(iterator);
}
I had guessed that is a pointer but I think I am getting a clone or something. Actuallyi I didnt expect it to be correct, because I dont think layer will trigger an event for this change.
I dont really want to create a new geometry and replace old one, but I will give it a try. Hope that will trigger an event also.
Tankut
######################################################################
Dikkat:
Bu elektronik posta mesaji kisisel ve ozeldir. Eger size
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte,
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi
gorusu olmak zorunda degildir.
######################################################################
Attention:
This e-mail message is privileged and confidential. If you are
not the intended recipient please delete the message and notify
the sender. E-mails to and from the company are monitored for
operational reasons and in accordance with lawful business practices.
Any views or opinions presented are solely those of the author and
do not necessarily represent the views of the company.
######################################################################