[gdal-dev] SetAttributeFilter has no effect ?
ahmet temiz
ahmettemiz88 at gmail.com
Fri Jul 8 02:53:34 EDT 2011
hello
I tried to implement SetAttributeFilter with a critaria.
There seems to have no effect on getting data.
what might be wrong ?
I am still getting all data
here is the code fragment.
ly2.SetAttributeFilter("il='kastamonu'");
for (int i = 0;i<1244; i++) {
Feature f = ly2.GetFeature(i);
System.out.print(f.GetFID());
System.out.println(" " + f.GetFieldAsString("il"));
System.out.println(" " + f.GetFieldAsString("ilce"));
System.out.println(" " + f.GetFieldAsString("koy"));
System.out.println(" " + f.GetFieldAsString("etkili_nak"));
//System.out.println(" " + f.GetFieldAsString("lkod"));
out.print(f.GetFID());
out.print(" " + f.GetFieldAsString("il"));
out.println(" " + f.GetFieldAsString("koy"));
}
regards
--
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535
________________________
Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
More information about the gdal-dev
mailing list