[OpenMap Users] Projection problem

From: Erling Andreas Fagerlie <erlingfagerlie@gmail.com>
Date: Thu Jan 25 2007 - 04:54:56 EST

Hi,
I've implemented a chart-plugin to ms-iis. This module is listening to
requests from users, and sends a png back to the user based on these
parameters;
LatLon-center, scale, image width and image height. The chart api is based
on Mercator-projection.

I have tried to implement this in openmap as a nearly-wms-service. I've made
a plugin like this;

public class CMAPPlugIn extends WebImagePlugIn implements
ImageServerConstants{

    /** Creates a new instance of CMAPPlugIn */
    public CMAPPlugIn() {

    }

    public String createQueryString(Projection p) {

        LatLonPoint center = p.getCenter();
        float center_lat = center.getLatitude();
        float center_lon = center.getLongitude();

        float scale = p.getScale();
        int height = p.getHeight();
        int width = p.getWidth();

        String url = "
http://www.myserver.com/init.dll?Render?CENTER_LAT="+center_lat+"&CENTER_LON="+center_lon+"&SCALE="+scale+"&IMG_WIDTH="+width+"&IMG_HEIGHT="+height+"&IMG_FORMAT=1
";
        return url;
    }

    public String getServerName() {
        return "name";
    }

}

this I add to a pluginlayer.

My problem is that it works almost fine, but there seems to be som problem
with the scale factor. Can anyone please help me with this?

-Erling

--
[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 Jan 25 05:01:50 2007

This archive was generated by hypermail 2.1.8 : Thu Jan 25 2007 - 05:02:02 EST