Hi,
i've created feature source
FeatureSource<SimpleFeatureType, SimpleFeature> myFeatureSource;
and i am using it to store my shapefile's features using
myFeatureSource = myShapeFileStore.getFeatureSource(myFeatureTypeName);
however, the variable is highlighted and when i place my mouse cursur over
it it says variable myFeatureSource not being used, but with the above
statement it is, which is meant to be storing my featuretype names.
Does anybody know why this is happening?
String[] myFeatureTypeNames = myShapeFileStore.getTypeNames();
String myFeatureTypeName = myFeatureTypeNames[0];
In the 09shape lab tutorial it has code similar to that of
String[] myFeatureTypeNames = myShapeFileStore.getTypeNames();
String myFeatureTypeName = myFeatureTypeNames[0];
just wondering why is it storing the first value of the array in the string
variable? Would you not want to create for loop forexample to store all
feature types names?
Cheers
--
View this message in context:
http://www.nabble.com/Variable-not-being-used---tp20564125p20564125.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users