[Gdal-dev] Changes between 1.1.9 and 1.20
Frank Warmerdam
warmerdam at pobox.com
Mon May 10 16:40:09 EDT 2004
Clay, Bruce wrote:
> Frank:
> Thanks for your reply. I did get that part working from your input
> though I had to modify it slightly to get it to work. The inner loop
> OGR_G_GetGeometryCount returned 1 for all but one ring and that it
> returned 2. I had to use OGR_G_GetPointCount instead.
>
> With that working I believe that all of the polygons are showing but it
> uncovered a problem with the labels. I am using the EP2000 shapefile
> data set for North America (namer.shp). With gdal version 1.1.9 the
> labels all displayed in the correct place. When I diff a data dump from
> my program using version 1.1.9 and gdal-cvs-20040506 most of the label
> points are within a few tenths of a degree away and some even match
> exactly. The problem is the "United States" label. It is in the
> correct spot using version 1.1.9 but over in France when I use the
> gdal-cvs-20040506 version. I suspect the problem is the few Aleutian
> Islands that are west of the International Dateline. The reason I
> suspect those is that when I open the file in fGis or MapView some
> number of Islands are way over on the right of the screen and the rest
> of North America is on the left side. I tried getting the labels at
> different nesting levels to see if I got different results but the
> program crashed in OGRPolygonLabelPoint.
Bruce,
I suspect the old label code was only looking at the first ring or something,
and that is why it is different now. That code is actually from MITAB I
believe, so it would be Daniel M. who could speak to the details.
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
More information about the Gdal-dev
mailing list