[fdo-users] Accessing Attributes from Shapefile

Mateusz Loskot mateusz at loskot.net
Wed Aug 20 11:57:06 EDT 2008


Rob Sosnowski wrote:
> Hello all,
> 
> New to FDO, using it within C#.net web service - trying to do the
> following:
> -	Query a shapefile with an x, y coordinate (latitude, longitude),
> returning the shapefile attributes that exist at the supplied
> coordinate.
> 
> Currently, I've been able to create a connection using
> FeatureAccessManager and IConnection.  I'm not sure how to proceed
> further.  Suggestions?? If available, code examples would be much
> appreciated.

Rob,

I've never used FDO providers for Web neither I've used FDO .NET API,
so I have no idea how to use it to access Shapefiles. But if you are 
looking for general samples about how to read attributes of features 
stored in FDO enabled datasource,
you can find some in the FDO guides (FDO Developers Guide, The Essential 
FDO):

http://fdo.osgeo.org/documentation.html

Here [1] you can find a bunch of very simple samples in form of command 
line  programs written in C++. Among others, there is also sample 
presenting use of FdoISample command and reading attributes.
Perhaps you will find it helpful to translate to the C# .NET.

[1] http://svn.refractions.net/fdopostgis/trunk/Samples/
[2] 
http://svn.refractions.net/fdopostgis/trunk/Samples/select_command/select_command.cpp


Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the fdo-users mailing list