<div dir="ltr">Hi,<div><br></div><div style>A precision: st_buffer can return a MP even on a regular polygon<br>See attached picture: internal buffer (negative distance) on the green Polygon:</div><div style><br></div><div style>
select st_astext(</div><div style> st_buffer('POLYGON (( 118 270, 216 270, 172 211, 219 149, 96 150, 151 212, 118 270 ))'::geometry, -15)</div><div style>);<br></div><div style><br></div><div style>Nicolas</div>
<div style><a href="https://mail.google.com/mail/?ui=2&ik=88069d0285&view=att&th=13c4d147b089db7d&attid=0.2&disp=safe&realattid=ii_13c4d146ce567f6f&zw">Inline images 1</a></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 18 January 2013 07:44, Francois Hugues <span dir="ltr"><<a href="mailto:hugues.francois@irstea.fr" target="_blank">hugues.francois@irstea.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
If your input is a multipolygon, st_buffer may return a multipolygon<br>
since your buffered the buffered polygons which compose your<br>
multigeometry may not intersect each other.<br>
<span class="HOEnZb"><font color="#888888"><br>
Hugues.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a><br>
[mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a>] On Behalf Of marquz74<br>
Sent: Friday, January 18, 2013 12:41 AM<br>
To: <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
Subject: [postgis-users] ST_Buffer returning multipolygons<br>
<br>
Hi to all,<br>
I'm practicing with ST_buffer on North Carolina Dataset (nc_spm_08).<br>
By running the following query:<br>
<br>
SELECT GeometryType(sub.buffer)<br>
FROM (<br>
SELECT st_buffer (the_geom, 100) AS buffer<br>
FROM streams<br>
) AS sub<br>
WHERE<br>
GeometryType(sub.buffer) <> 'POLYGON';<br>
<br>
I've been getting some MULTIPOLYGON records.<br>
Is it possible? I guessed ST_Buffer could return POLYGON geometries<br>
only...<br>
was I wrong?<br>
<br>
Thanks in advance.<br>
<br>
Marco<br>
<br>
<br>
<br>
--<br>
View this message in context:<br>
<a href="http://postgis.17.n6.nabble.com/ST-Buffer-returning-multipolygons-tp5002
333.html" target="_blank">http://postgis.17.n6.nabble.com/ST-Buffer-returning-multipolygons-tp5002<br>
333.html</a><br>
Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>