[postgis-devel] shp2pgsql generates faulty MultiLinestring wkb

strk at refractions.net strk at refractions.net
Fri Mar 4 06:39:56 PST 2005


Thanks Jonne, I've also found that pgsql2shp is doing things wrong
about multipart geometries :!

Both fixed.

--strk;

On Thu, Mar 03, 2005 at 08:25:57PM +0200, Jonne Savolainen wrote:
> Hi,
> 
> shp2pgsql has a small but harmful bug in InsertLinestring:
> 
> 
> --- shp2pgsql.c~	2005-02-01 00:15:22.000000000 +0200
> +++ shp2pgsql.c	2005-03-03 19:41:15.000000000 +0200
> @@ -841,7 +841,7 @@
>  		else ve = obj->panPartStart[pi+1];
>  		vs = obj->panPartStart[pi];
>  
> -		print_wkb_int(obj->nVertices);
> +		print_wkb_int(ve-vs);
>  		for ( vi=vs; vi<ve; vi++)
>  		{
>  			print_wkb_double(obj->padfX[vi]);
> 
> 
> This is in 1.0RC3. I hope the fix gets in time before the release.
> 
> Regards,
> 
> Jonne
> 
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list