| 1 |
/****************************************************************************** |
| 2 |
* |
| 3 |
* Project: KML Translator |
| 4 |
* Purpose: Implements OGRLIBKMLDriver |
| 5 |
* Author: Brian Case, rush at winkey dot org |
| 6 |
* |
| 7 |
****************************************************************************** |
| 8 |
* Copyright (c) 2010, Brian Case |
| 9 |
* |
| 10 |
* SPDX-License-Identifier: MIT |
| 11 |
*****************************************************************************/ |
| 12 |
|
| 13 |
#ifndef OGR_LIBKML_FEATURE_H |
| 14 |
#define OGR_LIBKML_FEATURE_H |
| 15 |
|
| 16 |
#include "ogr_libkml.h" |
| 17 |
|
| 18 |
/****************************************************************************** |
| 19 |
Function to output a ogr feature to a kml placemark. |
| 20 |
******************************************************************************/ |
| 21 |
|
| 22 |
kmldom::FeaturePtr feat2kml(OGRLIBKMLDataSource *poOgrDS, |
| 23 |
OGRLIBKMLLayer *poKOgrLayer, OGRFeature *poOgrFeat, |
| 24 |
kmldom::KmlFactory *poKmlFactory, |
| 25 |
int bUseSimpleField); |
| 26 |
|
| 27 |
/****************************************************************************** |
| 28 |
Function to read a kml placemark into a ogr feature. |
| 29 |
******************************************************************************/ |
| 30 |
|
| 31 |
OGRFeature * |
| 32 |
kml2feat(kmldom::PlacemarkPtr poKmlPlacemark, OGRLIBKMLDataSource *poOgrDS, |
| 33 |
OGRLIBKMLLayer *poOgrLayer, OGRFeatureDefn *poOgrFeatDefn, |
| 34 |
OGRSpatialReference *poOgrSRS, |
| 35 |
const std::map<std::string, int> &mapSimpleFieldNameToOgrFieldIx); |
| 36 |
|
| 37 |
OGRFeature *kmlgroundoverlay2feat( |
| 38 |
kmldom::GroundOverlayPtr poKmlOverlay, OGRLIBKMLDataSource *poOgrDS, |
| 39 |
OGRLIBKMLLayer *poOgrLayer, OGRFeatureDefn *poOgrFeatDefn, |
| 40 |
OGRSpatialReference *poOgrSRS, |
| 41 |
const std::map<std::string, int> &mapSimpleFieldNameToOgrFieldIx); |
| 42 |
|
| 43 |
#endif /* OGR_LIBKML_FEATURE_H */ |