Skip to content

Commit 78207c4

Browse files
committed
C API: Add automatic curve conversion (WIP)
1 parent 4ca50d0 commit 78207c4

32 files changed

Lines changed: 805 additions & 114 deletions

capi/geos_c.h.in

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,38 @@ extern GEOSMessageHandler_r GEOS_DLL GEOSContext_setErrorMessageHandler_r(
509509
GEOSMessageHandler_r ef,
510510
void *userData);
511511

512+
/**
513+
* Set parameters to use for converting input curves to lines.
514+
*
515+
* These parameters will be used with this context whenever a curved geometry is
516+
* provided to a function that only supports linear types. If `params` is NULL,
517+
* no automatic conversion will be performed.
518+
*
519+
* \param extHandle the GEOS context
520+
* \param params the curve conversion parameters
521+
*
522+
* \since 3.15
523+
*/
524+
extern void GEOS_DLL GEOSContext_setCurveToLineParams_r(
525+
GEOSContextHandle_t extHandle,
526+
const GEOSCurveToLineParams* params);
527+
528+
/**
529+
* Set parameters to use for converting output lines to curves.
530+
*
531+
* These parameters will be used with this context whenever a curved geometry is
532+
* provided to a function that only supports linear types. If `params` is NULL,
533+
* no automatic conversion will be performed.
534+
*
535+
* \param extHandle the GEOS context
536+
* \param params the curve conversion parameters
537+
*
538+
* \since 3.15
539+
*/
540+
extern void GEOS_DLL GEOSContext_setLineToCurveParams_r(
541+
GEOSContextHandle_t extHandle,
542+
const GEOSLineToCurveParams* params);
543+
512544
/* ========== Coordinate Sequence functions ========== */
513545

514546
/** \see GEOSCoordSeq_create */

0 commit comments

Comments
 (0)