Resending it again ;-) now removed tile.php and config.php also.....

Thanks,
Rahul G. Teni
MS BITS,BE Comp
9822564489


--- On Thu, 8/13/09, Mr. Rahul Teni <rahul_g_t...@yahoo.com> wrote:

From: Mr. Rahul Teni <rahul_g_t...@yahoo.com>
Subject: Fw: Projection issue
To: users@openlayers.org
Date: Thursday, August 13, 2009, 5:56 PM

Resending it by removing image ;-)

Thanks,
Rahul G. Teni
MS BITS,BE Comp
9822564489


--- On Thu, 8/13/09, Mr. Rahul Teni <rahul_g_t...@yahoo.com> wrote:

From: Mr. Rahul Teni
 <rahul_g_t...@yahoo.com>
Subject: Projection issue
To: users@openlayers.org
Date: Thursday, August 13, 2009, 5:43 PM

Hi All,

We are working on project where we have our data in postgis database with 4326 
as projection. We want to overlay that on google projection that is 900913. We 
have searched lot on net and tried to overlay it correctly using KAMAP layer. I 
have searched lot on internet and done every thing which i could imagine. With 
help of that i was able to overlay that but it slightly moves in nature. I have 
read one thread http://openlayers.org/pipermail/users/2007-March/000947.html 
from
 which i could understand that it was not possible at that point. Does that 
fixed in current builds or still it is not possible. I was able to implement it 
with WMS layer successfully but the problem is of cache. I can make use of 
tilecache to fix that problem but my functionality is in such way that we will 
edit particular
 tile and regenerate
 that tile only afterwards. Though at this point of time i am not sure how to 
do that ? ;-) Please see attached snap for the same.

My tile.php and config.php and along with some piece of code for js file and 
map file are attached in this mail. Your help will be highly appreciated on 
this. 

Thanks,
Rahul G. Teni
MS BITS,BE Comp
9822564489





      


      


      

Attachment: india_states.map
Description: Binary data

var options = { maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 
20037508.34, 20037508.34), maxResolution: 156543.0339, units: "m", projection: 
new OpenLayers.Projection("EPSG:900913")};

map = new OpenLayers.Map('map',options);
map.events.on({"moveend": mapEvent});

var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34),
TRANSPARENT: 'true',
isBaseLayer:false
};
 var gphy = new OpenLayers.Layer.Google(
                " Physical",
                {'sphericalMercator': true,'maxExtent': new 
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),type: 
G_PHYSICAL_MAP,numZoomLevels: 18,isBaseLayer: true}
            );
            var gmap = new OpenLayers.Layer.Google(
                "Streets", // the default
                {'sphericalMercator': true,'maxExtent': new 
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),numZoomLevels:
 18,isBaseLayer  : true}
            );
            var ghyb = new OpenLayers.Layer.Google(
                "Hybrid",
                {'sphericalMercator': true,'maxExtent': new 
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),type: 
G_HYBRID_MAP, numZoomLevels: 18,isBaseLayer: true}
            );
            var gsat = new OpenLayers.Layer.Google(
                "Satellite",
                {'sphericalMercator':true,'maxExtent': new 
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),type: 
G_SATELLITE_MAP, numZoomLevels:18,isBaseLayer:true}
            );


         map.addLayers([gsat,gphy,gmap,ghyb]);

indianStateBoundary = new OpenLayers.Layer.KaMap( "Indian State 
Boundary",tilePath,
                {       map: "gmap",
                        g: "__base__",
                        i:"PNG", 
                        opacity:1,
                        isBaseLayer:false,
                        TRANSPARENT:'true'
                },
               options
                
        ); 
map.addLayers([indianStateBoundary]);     
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to