Opened 15 years ago

Last modified 15 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 robe, 15 years ago

This fails on my 1.4 build too so still seems outstanding. This may be a different symptom of #86.

comment:2 by mleslie, 15 years ago

Fix committed to trunk at r3605 and branch 1.3 at r3606.

comment:3 by mcayland, 15 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 mleslie, 15 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 robe, 15 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 robe, 15 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.

comment:7 by robe, 15 years ago

I think this was fixed a while back — NO?

Note: See TracTickets for help on using tickets.