[Shapelib] possible bug when reading the boundaries ?
Stephane Routelous
route at CAE.COM
Thu May 20 09:05:36 EDT 2004
Hi Frank,
I totally agree about your argument for "standard component" use.
I'm trying to push using ShapeLib instead of trying to fix the lib we have
for read/write shape file (I think it will be a bigger job to fix the
existing one rather to to use yours).
BTW, I think it is not a big problem to add the fallback reading the .shp if
the .shx is corrupt.It will make the ShapeLib stronger when reading
incorrect shape files (like ours :-( )
Thanks,
Stephane
http://www.exotk.org
-----Original Message-----
From: shapelib-bounces at lists.maptools.org
[mailto:shapelib-bounces at lists.maptools.org]On Behalf Of Frank Warmerdam
Sent: Thursday, May 20, 2004 12:59 AM
To: Shapelib Development
Subject: Re: [Shapelib] possible bug when reading the boundaries ?
Stephane Routelous wrote:
> Hi Dave,
>
> I checked the code that we hqave for reading and writting shapefiles, an
> it seems that the guy who wrote it "forgot" to write the extent in the
> shx file :-(
Stephane,
Ahh. Another reason to try and use a standard component for implementing
file formats (especially when writing!). If such files are common "in the
wild" I would be willing to apply a patch to shpopen.c that would use the
.shp if the .shx seems to be corrupt.
Best regards,
--
---------------------------------------+------------------------------------
--
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
Shapelib mailing list
Shapelib at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib
More information about the Shapelib
mailing list