<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
OGRGeometry have such methods as exportToGML, exportToKML,
exportToJson which always requires KML (not LIBKM), GML and GEOJSON
code. <br>
I think in exportToGML, exportToKML, exportToJson should be #ifdef
KML_ENABLED GML_ENABLED, GEOJSON_ENABLED.<br>
For example:
<blockquote>char *OGRGeometry::exportToKML() const<br>
</blockquote>
<blockquote>{<br>
#ifndef _WIN32_WCE<br>
#if defined OGR_ENABLED && defined KML_ENABLED<br>
return OGR_G_ExportToKML( (OGRGeometryH) this, NULL );<br>
#else<br>
CPLError( CE_Failure, CPLE_AppDefined,<br>
"OGRGeometry::exportToKML() not supported in builds
without OGR drivers." );<br>
return NULL;<br>
#endif<br>
#else<br>
CPLError( CE_Failure, CPLE_AppDefined,<br>
"OGRGeometry::exportToKML() not supported in the
WinCE build." );<br>
return NULL;<br>
#endif<br>
}<br>
</blockquote>
Can I add such code?<br>
<br>
Best regards,<br>
Dmitry<br>
</body>
</html>