CartoType API
Public Member Functions
CartoType::CShpMapDataContext Class Reference

#include <cartotype_shp_map_data_context.h>

Inheritance diagram for CartoType::CShpMapDataContext:
CartoType::CMapDataContext

List of all members.

Public Member Functions

 CShpMapDataContext (CShpMapDataBase &aDataBase)
TResult OnSearch ()
CMapObjectNext (TResult &aError, CMapObject *aOldMapObject=NULL)
const CMapDataLayerLayer () const

Detailed Description

Map database context for an SHP database: that is, a set of pairs of SHP and DBF files. In each pair the SHP file holds the geographic points and the DBF file holds object attributes like names and road classes. This class contains all state that is needed to retrieve objects satisfying the specified search criteria sequentially from the database.

The SHP database context can merge data from multiple files into a single layer, which is useful when building CTM1 files from US Census TIGER data, which is organised by county in its most easily accessible form.


Member Function Documentation

const CMapDataLayer * CShpMapDataContext::Layer ( ) const [virtual]

Return the layer object for the current search; this gives the actual layer's name and attributes. Return NULL if no search has yet been started.

Implements CartoType::CMapDataContext.

CMapObject * CShpMapDataContext::Next ( TResult aError,
CMapObject aOldMapObject = NULL 
) [virtual]

Get next map object from the map database.

Implements CartoType::CMapDataContext.

TResult CShpMapDataContext::OnSearch ( ) [virtual]

Start a search using the parameters iParam. This function must be overridden by derived classes to set up the parameters for the search. It must either ensure that Layer returns a non-null value, or return an error.

Implements CartoType::CMapDataContext.


The documentation for this class was generated from the following files: