MCPcopy Create free account
hub / github.com/OSGeo/gdal / main

Function main

autotest/postinstall/test_cpp/test_cpp.cpp:14–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <ogr_spatialref.h>
13
14int main(int argc, char **argv)
15{
16 OGRGeometry *poGeom = nullptr;
17 OGRGeometryFactory::createFromWkt("POINT(1 2)", nullptr, &poGeom);
18 OGRGeometryFactory::destroyGeometry(poGeom);
19 std::cout << GDALVersionInfo("RELEASE_NAME") << std::endl;
20
21 // Check fix for https://github.com/OSGeo/gdal/issues/11311
22 OGRSpatialReference oSRS;
23 int nEntries = 0;
24 int *panMatchCondidence = nullptr;
25 oSRS.FindMatches(nullptr, &nEntries, &panMatchCondidence);
26 CPLFree(panMatchCondidence);
27
28 return (0);
29}

Callers

nothing calls this directly

Calls 1

FindMatchesMethod · 0.80

Tested by

no test coverage detected