[Xastir-dev] Anyone else looked at this? - SourceForge.net: Project Info - Little Shape Convertion

Gerry Creager N5JXS n5jxs at tamu.edu
Wed Aug 21 22:58:06 EDT 2002


Got a response back from the developer and he's gonna look at a sample 
offending file.  Right now, it's an alpha release, or so, and will only 
handle single precision data.  He's working on double precision next, he 
said.

His code will work with the gisdatadepot files.

TTFN, gerry

Curt Mills, WE7U wrote:
> On Wed, 21 Aug 2002, Gerry Creager wrote:
> 
> 
>>FWIW, also, I've started working on a little code (really!  C!) to read
>>the headers from the .shp/.shx files for the bounding boxes of each
>>fileset, and write it to a SQL
> 
> 
> Nice!
> 
> 
> 
>>As for the shape tools, I looked at it but I'm getting some problems...
>>like seg faults.  I've not tested extensively but I'm gonna have to look
>>at what they're doing.  Also some problems in the files in the archive:
>>sym links pointing to things in wrong spots, at least on my systems...
>> Still, for a 0.1 release, it's a nice addition.
> 
> 
> If they're using Shapelib then I'm not surprised.  The trick is to
> make sure that you have (index + 1) fields _BEFORE_ you try to read
> field[index].  We had the same problem in Xastir.  Take a look at
> our code.  It has checks before every stinkin' read now.
> 
> It would have been better to make a superset of functions that do
> this automatically and then call Shapelib, but I just
> didn't think of doing that at the time.
> 
> Curt Mills, WE7U                         hacker.NO_*SPAM at tc.fluke.com
> Senior Methods Engineer/SysAdmin
> "Lotto:    A tax on people who are bad at math." -- unknown
> "Windows:  Microsoft's tax on computer illiterates." -- WE7U





More information about the Xastir-dev mailing list