Hi Everybody,
My task is to write an application that shows the map of a city
(streets) and puts the street names on the map;
My problem is as follows: my goal is to create a Layer that contains
street names (and the (lat, long) coordinates at which one wants to
put the string on the map).
I have good shapefiles (SHP, SHX, DBF) - tested with other map
viewers.
I cloned class EsriPlugIn by ripping off the GUI components of this
bean. I use the same data access methods as EsriPlugIn (so I have a
DbfTable Model _model and an EsriGraphicsList _list).
The DBF file contains among other things the full name of the streets
(e.g. 'BLOOR ST W') and the city name.
I walk through all records of _model, extract the id/gid [which is
supposed to be unique] and then I go and extract an OMGraphic object
using
omg = _list.getOMGraphicAt( <the gid> )
In for some gid's omg in NULL although the data in the DBF file is
correct and I know that the shapefile is good.
My data is of type=3 (Polyline). I cast omg to an EsriPolyLine egr.
Then I look at egr.getExtents() and I find the values to be
_incorrect_.
What am I doing wrong?
Thanks,
Vladimir
-- [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 Thu Mar 27 20:23:57 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT