Definition at line 2337 of file ptarray.c.
2338{
2340 int found;
2341 uint32_t it;
2342 int ptsize;
2343
2345 {
2346 lwerror(
"ptarray_scroll_in_place: input POINTARRAY is not closed");
2348 }
2349
2351
2352
2353 found = 0;
2354 for ( it = 0; it < pa->
npoints; ++it )
2355 {
2357 {
2358 found = 1;
2359 break;
2360 }
2361 }
2362
2363 if ( ! found )
2364 {
2365 lwerror(
"ptarray_scroll_in_place: input POINTARRAY does not contain the given point");
2367 }
2368
2369 if ( 0 == it )
2370 {
2371
2373 }
2374
2375
2377
2379
2380 memcpy(
2383 (
size_t)ptsize * ( pa->
npoints - it )
2384 );
2385
2386
2387
2388 memcpy(
2391 (size_t)ptsize * ( it )
2392 );
2393
2394
2395 memcpy(
2398 (
size_t)ptsize * ( pa->
npoints )
2399 );
2400
2402
2404}
#define FLAGS_GET_Z(flags)
#define FLAGS_GET_M(flags)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
static size_t ptarray_point_size(const POINTARRAY *pa)
int ptarray_is_closed_2d(const POINTARRAY *in)
void ptarray_free(POINTARRAY *pa)
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...
References POINTARRAY::flags, FLAGS_GET_M, FLAGS_GET_Z, getPoint_internal(), LW_FAILURE, LW_SUCCESS, lwerror(), POINTARRAY::npoints, ptarray_construct(), ptarray_free(), ptarray_is_closed_2d(), and ptarray_point_size().
Referenced by _lwt_AddLine(), ST_Scroll(), and test_ptarray_scroll().