[mapserver-users] Re: AW: [OpenLayers-Users] Projection Problem
Kusum
kusum at infobase.in
Sat Nov 1 05:15:02 PDT 2008
I am using orthographic projection to generate globe layer
Its showing globe but sometimes half of it or some part.
Also I am not able to rotate or pan through the globe.
In openlayers I am using var options =
{
controls: [],
restrictedExtent: extent,
numZoomLevels: 10,
maxResolution:0.49990340909090999,
projection:"EPSG:9840"
}
and my mapfile is as follows:-
EXTENT -180 -90 180 90
UNITS DD
SIZE 550 450
PROJECTION
"proj=ortho"
"ellps=WGS84"
"lat_0=51.0000"
"lon_0=0.0000"
"x_0=0.00"
"y_0=0.00"
END
#World_Background
LAYER
NAME "background1"
STATUS DEFAULT
PROJECTION
"proj=latlong"
END
TYPE RASTER
DATA "wsiearth.tif"
TEMPLATE "ttt.html"
END
I am confused this is due to the extent I have set or projection definition
set in mapfile.
Please help as this is very urgent and I have a deadline to meet.
Regards
Kusum
--------------------------------------------------
From: "Arnd Wippermann" <arnd.wippermann at web.de>
Sent: Friday, October 31, 2008 11:01 PM
To: "'Kusum'" <kusum at infobase.in>
Cc: <users at openlayers.org>
Subject: AW: [OpenLayers-Users] Projection Problem
> You can use MapServer to reproject your georeferenced tiff and
> OpenLayers.Layer.MapServer (or OpenLayers.Layer.WMS) to request it from
> Mapserver.
>
> OpenLayers can not reproject raster data as a desktop application as
> arcgis
> can do. But MapServer could do this part.
>
> Arnd Wippermann
>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
> Auftrag von Kusum
> Gesendet: Freitag, 31. Oktober 2008 12:46
> An: George Mu'ammar; users at openlayers.org
> Betreff: Re: [OpenLayers-Users] Projection Problem
>
> Actually I had a tiff image and it was geo referred and in arc gis I was
> able to see it as globe by changing its projection and to see it in
> openlayers I used OpenLayers.Layer.Image
>
> Did I use the wrong option or Had I to use something different??
>
> Pls reply
>
> Regards
> Kusum
>
> --------------------------------------------------
> From: "George Mu'ammar" <George at muammar.net>
> Sent: Friday, October 31, 2008 5:10 PM
> To: <users at openlayers.org>
> Subject: Re: [OpenLayers-Users] Projection Problem
>
>> Dear Kusum, do this test:
>> Open your gif using any graphics application or browser. Does it look
>> like the map you want to see ? You won't get anything more than that
>> from using an Image layer.
>> Regards
>> --
>> George Mu'ammar
>>
>>
>> Quoting Kusum <kusum at infobase.in>:
>>
>>> Dear All
>>>
>>> I have a world image which I want to show at orthographic projection
>>> so that it appears as a globe.
>>> So I am using this image
>>> var options =
>>> {
>>> numZoomLevels: 10,
>>> projection:"EPSG:9840"
>>> }
>>> layer = new OpenLayers.Layer.Image(
>>> 'World Map',
>>>
>>
>>> 'http://localhost/maplab/app_atlas/images/wsiearth.GIF',
>>> new
>>> OpenLayers.Bounds(-180,-47.48309659090924,180,90),
>>> new OpenLayers.Size(580, 320),
>>> options);
>>>
>>>
>>> But it is shown as a flat image and not as globe.
>>>
>>> I am using Mapserver .
>>> Is there any code change I have to make to get the image in globe form.
>>>
>>> Pls suggest.I am completely messed up.
>>>
>>> regards
>>> Kusum
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
More information about the MapServer-users
mailing list