[OpenLayers-Users] open layers with ER mapper or erdas image web server possible??

Andreas Hocevar ahocevar at opengeo.org
Fri Aug 6 08:44:17 EDT 2010


On Aug 6, 2010, at 14:40 , Imran Rajjad wrote:

> thanks for responding, actually I`m already set on geoserver for
> feature data, however the image has been slowing things down, so i was
> hoping to slip in a layer only dedicated to satellite imagery from an
> imaging server. now if i override this function, it will also change
> for wms requests from geoserver, would'nt that be a problem?
> 

Just override it for the ERMapper layer, not for the Layer.WMS prototype:

var sat = new OpenLayers.Layer.WMS("ERMapper", "http://path/to/ermapper", {
    // ... (params like format here)
}, {
    // ... (options like buffer here)
    getURL: function() {...}
});

Regards,
Andreas.

> regards,
> Imran
> On Fri, Aug 6, 2010 at 5:35 PM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>> Hi,
>> 
>> OpenLayers works fine with ERMapper. You can use Layer.WMS, the only caveat is that you might have to override the getURL method:
>> 
>> getURL: function(bounds) {
>>  // ermapper does not like UTF8 URIs
>>  var url = OpenLayers.Layer.WMS.prototype.getURL.apply(this, arguments);
>>  return decodeURIComponent(url);
>> }
>> 
>> Regards,
>> Andreas.
>> 
>> On Aug 6, 2010, at 13:39 , Imran Rajjad wrote:
>> 
>>> Hi list,
>>> 
>>> does open layers work with er mapper or erdas image web server? I have
>>> been setting up a design and i have selected erdas for image mapping
>>> though I am not sure if open layer can work with them since I have
>>> never come across any example or information. any links would be
>>> appreciated.
>>> 
>>> thanks
>>> regards,
>>> Imran
>>> 
>>> --
>>> I.R
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>> 
>> 
>> 
>> --
>> Andreas Hocevar
>> OpenGeo - http://opengeo.org/
>> Expert service straight from the developers.
>> 
>> 
> 
> 
> 
> -- 
> I.R

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list