[Shapelib] Shapefile testing / standards

Ken S. Elvehjem elvehjem at runestone.net
Mon Apr 13 14:06:31 EST 2009


Hi,

I've been using shapelib (by way of compiling the executables) for years 
now, and we've been fairly happy together.

These shapefiles are produced in sets: a Polygon for an agricultural field 
boundary, a "samples" or Point shapefile for sample locations, and 
optionally an Arc set for line data.

Just recently, I have encountered a problem where the ArcExplorer program 
"likes" my shapefiles just fine, but some other "commercial packages" will 
not read the "Arc" shape, claiming a problem w/ the .dbf file.

Is there someone on the list who is good at shapefiles and is willing to 
look at a couple of examples?  I generally just need a kick in the right 
direction;>)

Sincerely,

Ken
Ken S. Elvehjem
ELVEHJEM TECHNICAL SUPPORT
250 Drury Ave
PO Box 37
Lowry MN  56349
320.283.5684
320.283.5247 h
320.424.1299 c


----- Original Message ----- 
From: "vdp09" <vdp09 at Hotmail.com>
To: <shapelib at lists.maptools.org>
Sent: Monday, March 30, 2009 6:49 PM
Subject: Re: [Shapelib] Shapelib Digest, Vol 47, Issue 4


>
> Hi There,
>
> Were able to figure out this problem? I am having the same problem
>
> Thanks,
>
> Vikas
>
>
>
> Barry Kronenfeld wrote:
>>
>> Tom,
>>
>> You're right, I did change to a newer computer which has 64-bit
>> architecture...  How would this cause a problem?
>>
>> Barry
>>
>>> Barry, did you only change the operation system or did you also
>>> change
>>> the underlying hardware from 32 bit to 64 bit architecture? Maybe
>>> this
>>> could be an issue?
>>>
>>> Regards,
>>> Tom
>>>
>>> Barry Kronenfeld schrieb:
>>> > I think I have had the same problem as Ian.  I used ShapeLib in
>>> VB 6.0 for years using Windows XP without any problems.  Recently
>>> I "upgraded" to Windows Vista and since then I've also encountered
>>> a fatal error whenever I tried to invoke the
>>> DBFReadStringAttribute function.   I don't program in C so I don't
>>> know what is going on underneath, but I suspect it is the same.
>>> >
>>> > - Barry
>>> > ______________
>>> >
>>> > Barry Kronenfeld
>>> > Assistant Professor
>>> > Department of Geography
>>> > George Mason University
>>> > bkronenf at gmu.edu
>>> >
>>> >
>>> >> Send Shapelib mailing list submissions to
>>> >> shapelib at lists.maptools.org
>>> >>
>>> >> To subscribe or unsubscribe via the World Wide Web, visit
>>> >> http://lists.maptools.org/mailman/listinfo/shapelib
>>> >> or, via email, send a message with subject or body 'help' to
>>> >> shapelib-request at lists.maptools.org
>>> >>
>>> >> You can reach the person managing the list at
>>> >> shapelib-owner at lists.maptools.org
>>> >>
>>> >> When replying, please edit your Subject line so it is more specific
>>> >> than "Re: Contents of Shapelib digest..."
>>> >>
>>> >>
>>> >> Today's Topics:
>>> >>
>>> >>   1. Re: DBFReadStringAttribute broken? (Ian Wright)
>>> >>
>>> >>
>>> >> ----------------------------------------------------------------
>>> ---
>>> >> ---
>>> >>
>>> >> Message: 1
>>> >> Date: Thu, 20 Mar 2008 16:05:15 +0000
>>> >> From: Ian Wright <ianw at graticule.com>
>>> >> Subject: Re: [Shapelib] DBFReadStringAttribute broken?
>>> >> To: Shapelib Development <shapelib at lists.maptools.org>
>>> >> Message-ID: <47E28B3B.3050809 at graticule.com>
>>> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>> >>
>>> >> Frank,
>>> >>
>>> >> Thanks for the reply. I have actually downloaded and tested
>>> that
>>> >> version
>>> >> now and the same problem
>>> >> arises when using the lib/dll. I used the makefile to generate
>>> >> these and
>>> >> then tried replacing the ones that
>>> >> I was currently using, and it has exactly the same problem.
>>> >>
>>> >> So I tried including just the shapefil.h and dbfopen.c files as
>>> >> they
>>> >> were the only functions that I was
>>> >> interested in within the project and thought stepping into
>>> these
>>> >> functions would help identify the
>>> >> problem, however it ran fine right to the end. I've tried it a
>>> >> couple of
>>> >> times and as yet haven't had
>>> >> the same problem or any corruption of variables whatsoever when
>>> >> running
>>> >> it just from those source
>>> >> files.
>>> >>
>>> >> I'm not sure exactly what that suggests. Now that I've got it
>>> >> working in
>>> >> windows also I'm planning
>>> >> not to use the DLL etc. and stick with what works for now, so
>>> I'm
>>> >> guessing if there haven't been
>>> >> any other reported problems then it may not be worth worrying
>>> about?>>
>>> >> If you do want to investigate further and theres anything I can
>>> be
>>> >> assistance of then let me know.
>>> >>
>>> >> Ian
>>> >>
>>> >>> Ian,
>>> >>>
>>> >>> I don't see why this is happening.  I would however suggest
>>> you
>>> >>>
>>> >> update
>>> >>
>>> >>> to the
>>> >>> current shapelib code.  There is code that is likely more
>>> recent in:
>>> >>>
>>> >>>   http://download.osgeo.org/shapelib/shapelib_1_2_10.zip
>>> >>>
>>> >>> However, I have also taken the liberty of packaging the latest
>>> >>> development
>>> >>> code and posting it as:
>>> >>>
>>> >>>   http://download.osgeo.org/shapelib/shapelib-1.3.0a1.zip
>>> >>>
>>> >>> Try with updated code and see if the problem persists.   If it
>>> >>>
>>> >> does,
>>> >>
>>> >>> then you
>>> >>> should learn to use your debugger, build the dbfopen.c code
>>> with
>>> >>> debug, and
>>> >>> step through the time "i" becomes corrupted to see what is
>>> going on.
>>> >>>
>>> >>> Best regards,
>>> >>>
>>> >> -- 
>>> >> *Ian Wright*
>>> >> /Software Developer
>>> >> ianw at graticule.com /
>>> >>
>>> >> * Graticule <http://www.graticule.com>
>>> >> * 01132 344000
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------
>>> >>
>>> >> _______________________________________________
>>> >> Shapelib mailing list
>>> >> Shapelib at lists.maptools.org
>>> >> http://lists.maptools.org/mailman/listinfo/shapelib
>>> >>
>>> >>
>>> >> End of Shapelib Digest, Vol 47, Issue 3
>>> >> ***************************************
>>> >>
>>> >>
>>> > _______________________________________________
>>> > Shapelib mailing list
>>> > Shapelib at lists.maptools.org
>>> > http://lists.maptools.org/mailman/listinfo/shapelib
>>> >
>>> >
>>>
>>>
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Shapelib mailing list
>>> Shapelib at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/shapelib
>>>
>>>
>>> End of Shapelib Digest, Vol 47, Issue 4
>>> ***************************************
>>>
>> _______________________________________________
>> Shapelib mailing list
>> Shapelib at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/shapelib
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Re%3A-Shapelib-Digest%2C-Vol-47%2C-Issue-4-tp16229067p22794000.html
> Sent from the ShapeLib mailing list archive at Nabble.com.
>
> _______________________________________________
> Shapelib mailing list
> Shapelib at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/shapelib 



More information about the Shapelib mailing list