[gdal-dev] Polygon

Frank Warmerdam warmerdam at pobox.com
Fri Mar 4 07:47:46 EST 2011


On 11-03-04 05:02 AM, Alexandre Leclerc wrote:
> Anybody can help me please ?
>
> I feel that the SHPWriteObject() write a bad way in the file.
>
> Do you think it could come from compiler ? I use Borland C++ 6
>
> When I edit the file in text editor it seems good, the length of the file is 1904
>
> But when I read file with SHPOpen() the psSHP->nFileSize attribute is 100…
> oddly this corresponds to the size of the header (shx).
>
> So I wonder if It comes from compiler or not…
>
> What do you think ?

Alexandre,

It sounds like you neglected to close the file so the header remains as
it was on creation.  Shapelib related questions are better sent to the
Shapelib mailing list.


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