Hi Lonnie,
You code looks fine. How big is the image, and how long are you
waiting for it to load? You might try running with the
-Ddebug.omraster java flag set to get more information about what the
OMScalingRaster is doing.
- Don
On Monday, September 30, 2002, at 10:40 AM, Lonnie D. Goad wrote:
> I have tried using the suggested OMScalingRaster and all boolean values
> show the image being on the map and visible, however, the image is not
> being displayed. Below is my code snippet, does anyone experienced
> with
> this class see a problem here?
>
> private OMScalingRaster unit;
> private MapBean map; //assigned by the beancontext
>
> public ScaleLayer ()
> {
> font = new Font("TimesRoman", Font.BOLD, 12);
> setName("Distance Scale");
> ImageIcon unitIcon = new
> ImageIcon(Environment.get("resource.basepath") + "\\units\\image.gif");
> unit = new OMScalingRaster(37.4f, 127.4f, 37.39f,
> 127.41f, unitIcon);
> unit.generate(map.getProjection());
> }
>
> Thanks,
> Lonnie Goad
>
> -----Original Message-----
> From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
> On Behalf Of Don Dietrick
> Sent: Thursday, September 26, 2002 1:18 PM
> To: Keith Baker
> Cc: openmap-users@bbn.com
> Subject: Re: Adding images geo-referneced to the map
>
>
> Whoa, good question! I forgot. You can use the
> com.bbn.openmap.plugin.CSVTiledImagePlugIn. it requires a csv file
> that lists the coordinates and image location.
>
> - Don
>
> On Thursday, September 26, 2002, at 12:53 PM, Keith Baker wrote:
>
>> Umm... can this OMScalingRaster be created from the properties file
> or
>> would this involve delving into the code?
>>
>> On Thu, 2002-09-26 at 10:51, Don Dietrick wrote:
>>>
>>> On Thursday, September 26, 2002, at 10:42 AM, Lonnie D. Goad wrote:
>>>
>>>> How would one add a gif image georeferenced on the map. Is there a
>>>> certain layer for this?
>>>
>>> You can use the OMScalingRaster object, providing it with the upper
>>> left and lower right coordinates of the image. Bear in mind that if
>>> the projection of the image doesn't match the projection of the
>>> OpenMap
>>> map, there will be accuracy issues. The amount of error varies.
>>>
>>>> I am thinking of ading some Drag and Drop functionality to place
> gif
>>>> images on the map. Would ImageServer play a role in this
>>>> functionality?
>>>
>>> The ImageServer wouldn't play a role. You want to check out the
>>> com.bbn.openmap.tools.beanbox and com.bbn.openmap.tools.dnd packages.
>>>
>>> - Don
>>>
>>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>> 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"]
>>>
>>
>>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 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"]
>
> --
> [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 Sep 30 13:46:01 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT