Re: projection

From: Donald Dietrick <dietrick@bbn.com>
Date: Thu Dec 06 2001 - 20:25:47 EST

Hi Chhaya,

If you ascii file has each location on a separate line, separated by
commas, you can display its contents using the
com.bbn.openmap.layer.location.LocationLayer, with the
CSVLocationHandler. The Java API documentation for those classes have
more details on how to configure the LocationLayer with the
CSVLocationHandler, and how to specify that certain columns represent
latitudes, longitudes, and location names.

Hope this helps,

Don

On Thursday, December 6, 2001, at 05:25 PM, Chhaya Mudgal wrote:

> Hi,
>
> I have ascii file containing latitude and longitude in decimal degrees
> for a coast line. I just want to plot those coordinates as a mercator
> projection.
> Can I read a file of coordinates? Is it possible to do this kind of
> plotting using openMap? I am not using any shpae file or image file, I
> have only text file of lat/lon coordinates.
> Thanks
>
> Chhaya
>
> On Thu, 6 Dec 2001, Donald Dietrick wrote:
>
>> Hi Chhaya,
>>
>> Yes, you can, by instantiating the Mercator class.
>>
>> Do you want to plot the points on a map, or just translate the decimal
>> degree coordinates to Mercator coordinates? If you just want to
>> translate the coordinates so that they map to another Mercator map,
>> then
>> you might have to play around with the 'scale' of the Mercator
>> projection you create. It's a relative term that doesn't have much
>> meaning outside of OpenMap, but definitely will affect the values of
>> the
>> translated coordinates.
>>
>> Regards,
>>
>> Don
>>
>> On Thursday, December 6, 2001, at 01:39 PM, Chhaya Mudgal wrote:
>>
>>> I have an ascii file of latitude and longitude values in decimal
>>> degrees.
>>> Can I make a mercator projection of it using openmap projection and
>>> mercator classes.
>>>
>>> Thanks
>>>
>>> Chhaya
>>>
>>> --
>>> [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"]
>>>
>>>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>> --
>> [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"]
Received on Thu Dec 6 20:23:36 2001

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