[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #NPN-807773]: problem with ESRI shapefile

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [IDV #NPN-807773]: problem with ESRI shapefile
  • Date: Tue, 29 Jan 2008 06:05:51 -0700

> Hi Jeff...
> 
> I was trying to plot the "Countries" shp file in this archive:
> 
> <ftp://ftp.ssec.wisc.edu/pub/ssec/tomw/esri.zip>
> 
> and got an exception.  I had unzipped the file, and aimed the IDV at
> the .shp file.  The "Rivers" one worked file, but "Roads" did not,
> either.
> 
Hi Tom,
This is fixed now. The problem was that that one shapefile had one multi-part 
feature which is created as a UnionSet. Normally the features are created as  a 
MapSet. The MapSet is used to hold the attribute values from the dbf file. The 
code assumed that all features were MapSet objects  -thus the class cast 
exception.

I am checking in a fix right now.

-Jeff


Ticket Details
===================
Ticket ID: NPN-807773
Department: Support IDV
Priority: Normal
Status: Closed