Re: [OpenMap Users] getting all OMGraphics inside image

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Aug 26 2003 - 09:48:57 EDT

Do you want to have access to the visible objects from outside the
layer, or just be able to filter the data from inside the layer to only
paint what you need to?

If you are using a layer from the com.bbn.openmap.layer.shape package,
the SpatialIndex object tells the layer which map objects to paint on
the map for a given projection. If the layer has reacted to a
projection, getting the current OMGraphicList from the layer will get
you the map objects on the map.

If you are using the com.bbn.openmap.plugin.esri package (EsriPlugIn),
it doesn't do any spatial filtering and adds all the OMGraphics to the
list that is rendered, and lets java do the clipping. If you really
want to figure out what is on the map, you'd have to get the list and
do some Java 2D API spatial call on the list objects to figure out
which ones are on the map.

Hope this helps,

Don

On Friday, August 22, 2003, at 04:52 PM, Adam Russell wrote:

> Well, stepping away from SimpleHttpImageServer, basically when I make
> a projection I pass ProjectionFactory.makeProjection the expected
> parameters lat,lon,scale,width,height. Obviously then, given a
> specific shp file not everything will be visible given, say, an
> insufficent width/height/scale. My question is of there is any easy
> way of determining what is visible and what is not. I hope that clears
> my question up.
> Thanks!!
> Adam
>
> Don Dietrick wrote:
>
>> Hi Adam,
>>
>> From what perspective do you want to determine this?
>>
>> - Don
>>
>> On Wednesday, August 20, 2003, at 11:02 AM, Adam Russell wrote:
>>
>>> I am creating a map image via SimpleHttpImageServer. How do I
>>> determine which OMGraphics objects are contained within the bounds
>>> of the rendered image? Sorry if this isn't clear to me. It should
>>> seem to have an obvious solution, but I can't seem to determine it.
>>> Thanks!!
>>>
>>> --
>>> [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
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Tue Aug 26 11:51:47 2003

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