Opened 10 years ago

Closed 10 years ago

#218 closed enhancement (fixed)

Strip particular types out of a GeometryCollection

Reported by: pramsey Owned by: pramsey
Priority: low Milestone: PostGIS 1.5.0
Component: postgis Version: trunk
Keywords: Cc:

Description

The constructive function (union / difference) often create GeometryCollections?, while people usually want a homogeneous result back (polygon, multilinestring, etc). A helper function that takes in collection and outputs only the desired type would make it easier for people to do these operations entirely in the database.

Change History (6)

comment:1 Changed 10 years ago by pramsey

Main commit at r4847. Implementation, documentation, regressions.

comment:2 Changed 10 years ago by robe

Paul -- okay -- this is the second time you have done this, so I guess its faster to just point this out rather than clean up after you.

Can you please put in a

Availability: 1.5

that's how it gets flagged to go in the New in 1.5 section.

comment:3 Changed 10 years ago by pramsey

Thanks, availability at r4849

comment:4 Changed 10 years ago by pramsey

No comments on the function name, API?

comment:5 Changed 10 years ago by robe

No -- but would help if you defined in your documentation what the constants are. I as an end user would just be guessing at the wind to know what "1" means? More examples would help too :)

comment:6 Changed 10 years ago by pramsey

Resolution: fixed
Status: newclosed

Ok, more references to constants and another example added at r4855

Note: See TracTickets for help on using tickets.