Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#583 closed defect (wontfix)

wkt generetor can't handle large geometries and is spilling over

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

Maybe on oe you C programmers can debug this. I was fiddling around with generator.c, but I think I put everything back to its original.

The problem is that it is spilling over the images from the large example I did here with S:

See how each subsequent example after the first S has edge junk from the previous picture http://www.postgis.org/documentation/manual-svn/ST_ConcaveHull.html

And in fact every image after has edge junk as well

http://www.postgis.org/documentation/manual-svn/ST_ConvexHull.html

It ouwld also be nice if I could stuff in bigger wkts as the build fails if I exceed I'm guess 2048 characters per wkt.

Change History (5)

comment:1 by pramsey, 14 years ago

I think you should just increase the static allocation. It won't hurt to have it be 20k.

		char output[20480];

If you're feeling anal retentive, recode the thing using the stringbuffer_t from liblwgeom.

comment:2 by pramsey, 14 years ago

Owner: changed from pramsey to robe

comment:3 by robe, 13 years ago

Milestone: PostGIS 2.0.0PostGIS Future

comment:4 by pramsey, 13 years ago

Resolution: wontfix
Status: newclosed

Increased buffer size by factor of something big at r7435. Not worth spending more time reworking this.

comment:5 by robe, 13 years ago

Milestone: PostGIS FuturePostGIS 2.0.0

I'm pretty sure I had tried that before and it didn't work, but guess you didn't see my push to future — cause I don't really care that much.

Note: See TracTickets for help on using tickets.