I think you are correct - there was some support for shapefile.xml (some 
odd metadata format that nobody uses). That would the only hope I know 
of for storing the name.

Unless you can tell me it can be stored in the Shapefile header somewhere?
Jody

Enam wrote:
> Upon reading the source of ShapefileDataStore it turns out that feature type
> name is not stored in the shapefile. So when we open the shapefile again, it
> guesses the type name as the name of file without the extension part. 
>
> Am I correct here ? or am I missing sth ?
>
>
> Enam wrote:
>   
>> I'm seeing some issues with feature type names.
>>
>> Consider this code:
>>
>> IndexedShapefileDataStore sds = new IndexedShapefileDataStore(somfileurl);
>> sds.createSchema(featureType);
>> System.out.println(sds.getTypeNames().length);
>> System.out.println(sds.getSchema(sds.getTypeNames()[0]));
>>
>> This outputs the actual typename supplied during schema creating. When I
>> run it again without the createSchema statement, I see that the type name
>> = shapefile name!
>>
>> IndexedShapefileDataStore sds = new IndexedShapefileDataStore(somfileurl);
>> //sds.createSchema(featureType);
>> System.out.println(sds.getTypeNames().length);
>> System.out.println(sds.getSchema(sds.getTypeNames()[0]));
>>
>>     
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to