GDAL

ogr_geocoding.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: Client of geocoding service.
5 * Author: Even Rouault, <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2012, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef OGR_GEOCODING_H_INCLUDED
14#define OGR_GEOCODING_H_INCLUDED
15
16#include "cpl_port.h"
17#include "ogr_api.h"
18
25 CPL_C_START
26
28 typedef struct _OGRGeocodingSessionHS *OGRGeocodingSessionH;
29
30 OGRGeocodingSessionH CPL_DLL OGRGeocodeCreateSession(char **papszOptions);
31
32 void CPL_DLL OGRGeocodeDestroySession(OGRGeocodingSessionH hSession);
33
34 OGRLayerH CPL_DLL OGRGeocode(OGRGeocodingSessionH hSession,
35 const char *pszQuery, char **papszStructuredQuery,
36 char **papszOptions);
37
38 OGRLayerH CPL_DLL OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon,
39 double dfLat, char **papszOptions);
40
41 void CPL_DLL OGRGeocodeFreeResult(OGRLayerH hLayer);
42
43 CPL_C_END
44
45#endif // OGR_GEOCODING_H_INCLUDED
cpl_port.h
Core portability definitions for CPL.
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition gdal_fwd.h:157
ogr_api.h
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes.
OGRGeocodeFreeResult
void OGRGeocodeFreeResult(OGRLayerH hLayer)
Destroys the result of a geocoding request.
Definition ogr_geocoding.cpp:1595
OGRGeocode
OGRLayerH OGRGeocode(OGRGeocodingSessionH hSession, const char *pszQuery, char **papszStructuredQuery, char **papszOptions)
Runs a geocoding request.
Definition ogr_geocoding.cpp:1409
OGRGeocodeDestroySession
void OGRGeocodeDestroySession(OGRGeocodingSessionH hSession)
Destroys a session handle for geocoding requests.
Definition ogr_geocoding.cpp:369
OGRGeocodeReverse
OGRLayerH OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon, double dfLat, char **papszOptions)
Runs a reverse geocoding request.
Definition ogr_geocoding.cpp:1555
OGRGeocodeCreateSession
OGRGeocodingSessionH OGRGeocodeCreateSession(char **papszOptions)
Creates a session handle for geocoding requests.
Definition ogr_geocoding.cpp:236
OGRGeocodingSessionH
struct _OGRGeocodingSessionHS * OGRGeocodingSessionH
Opaque type for a geocoding session.
Definition ogr_geocoding.h:28