[postgis-devel] Small Loader Quibble

strk strk at keybit.net
Thu Jul 29 07:16:14 PDT 2004

I've modified error message, it tells you wheter the problem is
with .shp/.shx or .dbf. More accurate error reporting is not easy
as the shapelib open function do provide it as it internally attemps
to open multiple files ( <shapefile>{,.shp,.SHP}, <shapefilep>{,.SHP,.SHX}
and <shapefile>{,.dbf,.DBF} ). Note also that an eventual suffix 
provided can also be trimmed off by shapelib, which makes things
more complex. As an additional info we could report strerror(errno),
but still it will not be clear to the user which files are attempted...


On Wed, Jul 28, 2004 at 06:23:14PM -0700, Paul Ramsey wrote:
> When I run the loader and specify a non-existent shape file, the error 
> message is "shape is null" which is strictly speaking correct, but not 
> a very good direction for an untutored user.
>      Paul Ramsey
>      Refractions Research
>      Email: pramsey at refractions.net
>      Phone: (250) 885-0632
> _______________________________________________
> 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