Opened 15 years ago

Closed 15 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: master
Keywords: Cc:


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 by pramsey, 15 years ago

Main commit at r4847. Implementation, documentation, regressions.

comment:2 by robe, 15 years ago

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 by pramsey, 15 years ago

Thanks, availability at r4849

comment:4 by pramsey, 15 years ago

No comments on the function name, API?

comment:5 by robe, 15 years ago

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 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.