Re: Problem with the DbfTableModel when exporting with EsriShapeExport

From: Don Dietrick <dietrick@bbn.com>
Date: Mon Jul 08 2002 - 23:21:57 EDT

Hi Lonnie,

There actually is a good reason for it, but it might not be very well
explained in the documentation, as well as the code not being quite
correct.

The way I understand it, Shape files have a certain structure that holds
their graphics - that structure is represented in OpenMap in a certain
way. The shape file contains records, and each record has an entry in
the dbf file that describes what that record represents. If the record
shape has multiple parts, they usually get represented in OpenMap as an
OMGraphicList, and in the shape file it becomes a multi-part record, all
parts with the same .dbf record.

So what the code is assuming that any embedded OMGraphicList is holding
parts of the same record. What it is not doing is creating a multi-part
record in the shape file, but that's because there isn't any help to
ensure that an OMGraphicList contains the same OMGraphic types as
required by multi-part records.

Thinking about this again, the code should be modified as you've done.
Multi-part geometry should be created with OMGeometryLists, which is
something for the future. For regular OMGraphics, though, each one
should probably contribute to an individual shape record even if it is
embedded in another OMGraphicList. I'll make this change for the next
release.

Thanks for pointing this out,

Don

On Monday, July 8, 2002, at 02:13 PM, Lonnie D. Goad wrote:

> I was having a problem with the DbfTableModel of shapes I was exporting.
> The problem was that the table displayed only the first row of data, x
> number of times where x = the number of graphics in the list.
> Researching this problem I found that in EsriShapeExport in the
> protected export(OMGraphicList, ArrayList) method the record was only
> being set initially because of the statement if (record == null). I
> commented out this line and don't see any reason for it. Is there a
> reason for it? I am new to the list so I apologize if this issue has
> already been addressed.
>
> Thank You,
>
> ************************
> Lonnie Goad - Programmer
> OptiMetrics Inc.
> 2107 Laurel Bush Rd. Suite 209
> Bel Air, Md. 21015
> LGoad@OptiMetrics.org
> http://www.OptiMetrics.org
> (410)569-6081 ext: 105
> fax: (410)569-6083
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Jul 8 23:22:35 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT