By Daniel Du
Beginning from this chapter, we will discuss feature service and . It is so important and have so many stuff to say, we have to separate it into 2 chapters, this is the first part, we will discuss FDO Providers, Feature Query, and Feature Selection.
In AIMS WebExtension API, Feature service provides APIs to store and retrieve features, it is independent of the data storage technology by creating an abstraction layer, FDO (Feature Data Object) is used to construct this abstraction layer. FDO is intended to provide consistent access to feature data, whether it comes from a CAD-based data source, or from a relational data store that supports rich classification. A FDO provider is the software component that provides access to data in a particular data store. Some built-in FDO providers such as provider for SDF, SHP, SQL Server, Oracle are released with AIMS product, FDO is an open source project, you can also download other FDO providers from fdo.osgeo.org. Different FDO provider has different capabilities. It is possible to get a provider’s capability programmatically. Please refer to AutoCAD Map 3D API Training content: Part-3 and FDO document for more information about FDO. The FDO document can be found in <Map3D SDK>\Fdo\Docs.
In AIMS development, a common task is to query features from feature data. It is possible to list the features and its properties with API when user selects some features in viewer. Selections can be created programatically with the Web API as well. Basic filters or spatial filters are used to select features based on feature properties or their geometry. For example, you could use a basic filter to select all roads that have four or more lanes.Or you could use a spatial filter to select all roads that intersect a certain area.
Please find the attached PPT and the code sample solution 4, which can be downloaded here.