Hi.
I assume you are referring to like using PostGIS?
The DataStore does return a list of type names for each table registered in
geometry_columns; you can review the FeatureType for each type name mentioned
(which contains the information about which "geometry columns" are marked; they
are represented as an instance of GoemetryDescriptor).
I don't think there is a select; a good old fashion for loop should do the
trick ... something like:
for( Name typeName : dataStore.getNames() ){
SimpleFeatureType schema = dataStore.getSchema( typeName );
...
}
More information here:
- http://docs.geotools.org/latest/userguide/library/api/datastore.html
- http://docs.geotools.org/latest/userguide/library/opengis/type.html
--
Jody Garnett
On Wednesday, 11 May 2011 at 2:02 PM, LeeHyung Joo - Kevin wrote:
>
>
> Hi all.
>
> I wonder how to get the data of "geometry_columns" table by Geotools.
>
> Cause' I know how to express by the sql syntax: "select * from
> geometry_columns;"
>
> But the thing what I want to do is using "Geotools".. As you know.. not
> simply way for novice.
>
> "ds.getTypeName()" is the way to get the whole table name in DB.
>
> But I dont know "select"!!!!
>
> Is there any method or totally different way?
>
> Please give me your brain.
>
> Thanks in advanced.
>
>
>
>
> Best Regards.
>
> Kevin Lee
>
>
>
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users