Yes, I convert my data using the following command "UPDATE osm_line SET way = ST_Multi(way) where geometrytype(way) = 'LINESTRING'".<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
time psql -U pgsql -d osm -c "UPDATE osm_line SET way = ST_Multi(way) where geometrytype(way) = 'LINESTRING';"<br>UPDATE 914007<br><br>real    70m12.384s<br>user    0m0.009s<br>sys     0m0.011s<br></blockquote>
<div> Many thanks for response. I will try them.<br>But actually I wouldn't want to convert my data to MULTI*. It is look like hack to work with the new version of pgsql2shp.<br>I think that adding any option to pgsql2shp for turn of checking of geometry types or downgrading to previous version of pgsql2shp can solve my problem.<br>
<br> </div> <br>2010/9/6 Stephen Woodbridge <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>>:<br>> On 9/5/2010 10:16 PM, Denis Rykov wrote:<br>>><br>>> I've tried to convert all my geometries to MULTI* with ST_Multi()<br>
>> function but it works very slowly.<br>>><br>>> 2010/9/5 Denis Rykov<<a href="mailto:rykovd@gmail.com">rykovd@gmail.com</a>>:<br>>>><br>>>> Hi, I have a PostGIS table with Polygonal and Multi Polygonal  types<br>
>>> of geometry.<br>>>> I used the pgsql2shp last year and had no problems. But some days ago<br>>>> I've update pgsql2shp from svn.<br>>>> And now I can't convert my PostGIS data into shapefile because I get<br>
>>> an error : "ERROR: Mixed geometry types in table".<br>>>> I think that it is not necessary to consider this case as erroneous.<br>><br>> Denis,<br>><br>> How you converting them? Using and UPDATE?<br>
> This would be very slow because every (most?) rows in the table would need<br>> to be updated.<br>><br>> There are a couple of faster alternatives:<br>><br>> 1. create table newtable select ..., st_multi(the_geom) form ...;<br>
>   then dump that table<br>><br>> 2. pgsql2shp [<options>] <database> "select ..., st_multi(the_geom) as<br>> the_geom from ...."<br>><br>> -Steve W<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">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
><br><br>