<div dir="ltr">Many thanks, Regina! Indeed ST_Union generated the polygon, invisible in PgAdmin!! <br><br>It creates a nice layer when I open it in uDig. <br><br>However when I export it with pgsql2shp, the shape is unreadable by ArcView with the errmsg: Number of shapes does not match the number of table records.<br>
<br>Here's how I created the layer:<br><br>create table europe_contour();<br>SELECT addgeometrycolumn('db, 'europe_contour', 'the_geom', 32767,'MULTIPOLYGON', 2 );<br>insert into europe_contour(the_geom) values( (select st_union(the_geom) from europe));<br>
<br>Then I generate the shapefile: <br><br>"c:\Program Files\PostgreSQL\8.3\bin\pgsql2shp.exe" -u postgres -P password -f europe_contour db europe_contour<br><br>Any suggestions perhaps on anything I've wrong?<br>
<br><br><div class="gmail_quote">On Fri, Aug 1, 2008 at 1:15 PM, Obe, Regina <span dir="ltr"><<a href="mailto:robe.dnd@cityofboston.gov">robe.dnd@cityofboston.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Erik,</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">How were you using ST_Union and what exactly do you mean by 
no result.  no result as it looks blank?  If you are using something 
like PgAdmin III - it will look blank because it exceeds the buffer supported by 
PgAdmin III.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">SELECT the_geom is null </font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">FROM (somequery or table) as foo</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial">LIMIT 
1</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial">will 
tell you if its actually returning no geometry</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial">Hope 
that helps,</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial">Regina</font></span></div>
<div dir="ltr" align="left"><br></div>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> 
<a href="mailto:postgis-users-bounces@postgis.refractions.net" target="_blank">postgis-users-bounces@postgis.refractions.net</a> 
[mailto:<a href="mailto:postgis-users-bounces@postgis.refractions.net" target="_blank">postgis-users-bounces@postgis.refractions.net</a>] <b>On Behalf Of 
</b>danny<br><b>Sent:</b> Friday, August 01, 2008 6:12 AM<br><b>To:</b> 
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br><b>Subject:</b> [postgis-users] Merge 
all polygons from a dataset<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>
<div dir="ltr">Hello everybody,<br><br>I've converted a shapefile of Europe to 
PostGIS. I would like to merge all the countries together so that I only have 
one polygon left, the whole contour of Europe. I have tried ST_Union that gives 
me no result. I've tried several other functions to no avail. Does anybody know 
how I should proceed?<br><br>Many thanks,<br><br>Erik<br></div></div></div></div>

<div><p></p><hr size="1">
<p><b>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</b></p></div>

<p></p><hr size="1">
<p><b><font size="2" color="#339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </font></b></p> <p> </p>





<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br></div>