[postgis-users] Polygon with holes

Paul Ramsey pramsey at refractions.net
Wed Aug 18 11:55:19 PDT 2004


Tuan Pham Anh wrote:
> 
> Could someone show me how to insert 
> 
> 1. a polygon with a hole 
> 2. a polygon with holes

Polygon:

POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))

Polygon with hole:

POLYGON((0 0, 0 5, 5 5, 5 0, 0 0),(1 1,1 2,2 2, 2 1, 1 1))

Polygon with holes:

POLYGON((0 0, 0 8, 8 8, 8 0, 0 0),(1 1,1 2,2 2, 2 1, 1 1),(3 3,3 4,4 4,4 
3,3 3))







More information about the postgis-users mailing list