[gdal-dev] OGR shapefile problems
Even Rouault
even.rouault at mines-paris.org
Sun Feb 10 06:05:43 EST 2008
Since yesterday, I've modified a bit the way I've fixed the nParts == 0
polygon case to return an empty OGRMultiPolygon instead of a NULL pointer
(some OGR drivers don't handle very gracefully NULL geometries in creation
mode). So, this is now back to the behaviour of GDAL 1.4 and previous
releases.
I've reviewed the code for other shape types and it should be fine for points,
multipoints and arcs.
Best regards.
Le Sunday 10 February 2008 02:29:45 William Kyngesburye, vous avez écrit :
> So, the patch works. But I notice that you only patched the polygon
> case. I think it's possible that any shape type can have null shape
> data. I don't know if it's correct behavior for shapefiles, but I've
> seen ArcGIS export such shapefiles myself, and I think I've seen it
> happen with point shapefiles as well.
>
> On Feb 9, 2008, at 5:05 PM, Even Rouault wrote:
> > I could reproduce a problem with your file on GDAL trunk and
> > branches/1.5. It
> > is not MAC OS X specific.
> > The issue was the polygon feature whose FID = 22734, with nParts == 0.
> > Fixed in trunk in r13744 and in branches/1.5 in r13755
> >
> > Best regards
> >
> > Le Saturday 09 February 2008 23:31:57 John C. Tull, vous avez écrit :
> >> Hello All,
> >>
> >> I am running into problems with a shapefile using GDAL 1.5 binaries
> >> compiled by William Kyngesburye for OS X Leopard. We are trying to
> >> see
> >> if the problem is a GDAL 1.5 issue, or if it is something OS X
> >> related.
> >>
> >> The file reads properly using pre 1.5 GDAL binaries on OS X and
> >> Ubuntu. I did not have a 1.5 binary on my Ubuntu vm to test. I used
> >> 'ogrinfo -al' on the file.
> >>
> >> If anyone cares to take a look, I have placed the problem file
> >> online.
> >> You can download the landowner shapefile from
> >> http://homepage.mac.com/jctull/
> >>
> >> Thank you,
> >> John Tull_______________________________________________
> >> gdal-dev mailing list
> >> gdal-dev at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> Earth: "Mostly harmless"
>
> - revised entry in the HitchHiker's Guide to the Galaxy
More information about the gdal-dev
mailing list