# RE: [OpenMap Users] google map and openmap question

From: Guy Pascarella <guy.pascarella_at_issinc.com>
Date: Thu, 23 Mar 2006 05:31:14 -0500

I think Google uses a Miller Cylindrical projection. Apologies of Miller
and LLXY are the same.

-Guy

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Don Dietrick
Sent: Wednesday, March 22, 2006 10:51 AM
To: ryozzo_at_alum.syracuse.edu
Cc: openmap-users_at_bbn.com
Subject: Re: [OpenMap Users] google map and openmap question

Hi Ralph,

I would use an OpenMap map to figure out coordinates of features on the
VMAP from http://geoengine.nima.mil). Once you figure out the Google map
image degree/pixel to zoom ratio, you can figure out the coordinates of the
upper left and lower right corners of the image. Then, you can tell the
OpenMap LLXY projection to give you the scale for those corners.

Hope this helps,

Don

On Mar 9, 2006, at 11:36 PM, ralph yozzo wrote:

> I apologize if this is a crazy question but I want to place points on
> a google map manually on the server side because our target browser
> does not have javascript.
>
> So I grab the image from google e.g.,
> latitude_e6=40611075&longitude_e6=-73984219&z
> m=10000&w=200&h=200&cc=US&min_priority=2 is an image I know it's width
> and height in pixels and the zoom level is 10000
>
> My question is given another point (latitude, longitude) how can I
> project it on the map in general.
>
> I'm using
> float scale = zoom*fudgefactor; // not sure what the
> relationship is between the google map zoom level and the bbn scale
> value.
> com.bbn.openmap.LatLonPoint center = new
> com.bbn.openmap.LatLonPoint(latx, longx);
> com.bbn.openmap.proj.LLXY llxy = new
> com.bbn.openmap.proj.LLXY(center, scale, w, h);
>
> My basic question is what the relationship is between the google map
> zoom level and the bbn scale value?
>
> Or is there a better way?
>
>
> I use forward to get the x, y in pixels to draw one of the markers
> java.awt.Point p = llxy.forward(latitude, longitude);
> graphics2D.drawImage(imagemarker, (int)p.getX(),
> (int)p.getY(), null);
>
> Then, I draw the marker.
>
> The problem is the I don't know what to set the scale to.
>
> Any help would be appreciated.
>
> The documentation on google zoom is pretty sparse.
>
> Ralph
>
> --
> [To unsubscribe to this list send an email to "majdart_at_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_at_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_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
```
Received on Thu Mar 23 2006 - 05:33:17 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT