Opened 16 years ago
Last modified 16 years ago
#108 closed defect (fixed)
ST_LineToCurve Crashing
Reported by: | rbroamer | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | PostGIS 1.3.6 |
Component: | postgis | Version: | 1.3.X |
Keywords: | Cc: |
Description
What steps will reproduce the problem?
=> SELECT ST_LineToCurve('LINESTRING(-13151357.927248 3913656.64539871,- 13151419.0845266 3913664.12016378,-13151441.323537 3913666.61175286,- 13151456.8908442 3913666.61175286,-13151476.9059536 3913666.61175286,- 13151496.921063 3913666.61175287,-13151521.3839744 3913666.61175287,- 13151591.4368571 3913665.36595828)'); server closed the connection unexpectedly
This probably means the server terminated abnormally before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
This is running on TODAY's PostGIS SVN and GEOS 3.1.0RC1. It's on a 32-bit Ubuntu 8 LTS box with PostgreSQL 8.3.5. Had the same problem with 1.3.4.
Change History (7)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
Mark,
Excellent work. AFAICT your fix for this also fixes #86 (it now returns a valid curve). Can you confirm at your end?
ATB,
Mark.
comment:4 by , 16 years ago
It looks like you're right. The test case in #86 works, and the old version of the Regina's torture test no longer reports that error.
comment:5 by , 16 years ago
We still have issues here
This fails
SELECT ST_LineToCurve(foo1.the_geom)
FROM ((SELECT
ST_Collect(ST_Collect(ST_SetSRID(ST_MakePoint(i,j,m),4326),ST_SetSRID(ST_MakePolygon(ST_AddPoint(ST_AddPoint(ST_MakeLine(ST_MakePoint(i+m,j,m),ST_MakePoint(j+m,i-m,m)),ST_MakePoint(i,j,m)),ST_MakePointM(i+m,j,m))),4326)))
As the_geom
FROM generate_series(-10,50,20) As i
CROSS JOIN generate_series(50,70, 20) As j CROSS JOIN generate_series(1,2) As m GROUP BY m)) As foo1;
comment:6 by , 16 years ago
Disregard - I'll put in another request. I pasted the wrong one in.
Its actually the ST_CurveToLine that is failing but for a possibly stupid reason I think.
This fails on my 1.4 build too so still seems outstanding. This may be a different symptom of #86.