[OpenMap Users] Projection problem

From: Erling Andreas Fagerlie <erlingfagerlie_at_gmail.com>
Date: Thu, 25 Jan 2007 10:54:56 +0100

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
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

    /** 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 = "
        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?


[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 Jan 25 2007 - 04:56:36 EST

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