logo       

Re: DBF required in compressed shapefile: msg#00479

gis.jump.devel

Subject: Re: DBF required in compressed shapefile

Yes, the problem is the call to CompressedFile.openFile() throws an exception if the file is not found.

In this case it looks like a try catch block around the call will do the trick.

Larry

On 9/25/07, Paul Austin <mail-lists@xxxxxxxxxxxx> wrote:
Larry,

You're right the CompressedFile class throws an exception if it can't
find the file. Maybe you could add a boolean parameter to it to return
null instead of an exception if the file does not exist to allow you to
ignore missing files.

Paul

Larry Becker wrote:
> Apparently DBF files are required when loading a shapefile archive.  I
> got this message when trying to load world_vector_shoreline.zip:
> "couldn't find world_vector_shoreline.dbf in compressed file
> world_vector_shoreline.zip".
>
> If you extract it to a folder first, it loads without a problem.
> Sounds like the archive code is making unnecessary assumptions.
>
> regards,
> Larry Becker
> --
> http://amusingprogrammer.blogspot.com/
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



--
http://amusingprogrammer.blogspot.com/ -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise