> 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? >
This is more a netbeans question than a geotools question - but if the variable is being flagged as unused it probably means you are not doing anything with it in your code after initializing it > 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? If you mean why is the return type of getTypeNames() an array it is because there can be more than one type name. But I don't think I understand your question properly... Michael ------------------------------------------------------------------------- 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 Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users