11 reputation
1
bio website
location
age
visits member for 2 years, 3 months
seen May 18 '12 at 10:33

May
16
comment OpenLayers Scaleline always wrong in my virtual star map
yes, I tried, still 100000 times bigger than the real one. I changed init=epsg:900913 in the mapfile, and added map: { maxExtent: new OpenLayers.Bounds(-48586319.220000,-34384434.301227,53085639.920000,41837722.801‌​227), maxResolution: 127249.010188,numZoomLevels:40,projection: new OpenLayers.Projection('EPSG:900913'), displayProjection: new OpenLayers.Projection('EPSG:4326')}, in my javascript.
May
15
awarded  Student
May
15
comment OpenLayers Scaleline always wrong in my virtual star map
Dear Aragon, can you tell how to "get olControlScaleLine class element and divide it to 100.000 for real result..."? I know I can get the value in this way: var sl=new OpenLayers.Control.ScaleLine(); alert(sl.div.firstChild.innerHTML);
May
15
comment OpenLayers Scaleline always wrong in my virtual star map
I think now the scale is 100000 times more than the real one.
May
15
comment OpenLayers Scaleline always wrong in my virtual star map
I notice the error because no definition for 900913 in /usr/share/proj/epsg file. I add the definition, and error disappears. And I try to change my mapfile "PROJECTION "init=epsg:900913" END ", the map can show correctly, but scaleline still the same as the old version, and the scale are not correct. Need more help... thank you
May
15
comment OpenLayers Scaleline always wrong in my virtual star map
thanks for the reply. I tried to add two options above, but mapserver return error msg "SRS must valid for all request layer" . Can I ask why you suggest to project EPSG:900913 , but my mapfile using epsg:4326? Sorry, I am a newbie in this field.
May
15
asked OpenLayers Scaleline always wrong in my virtual star map
May
2
comment how to set WMS reprojection config in mapserver if I creating virtual map (e.g. star map)
Works! Thanks a lot! In fact, I just put PROJECTION "init=epsg:4326" END
Apr
3
asked how to set WMS reprojection config in mapserver if I creating virtual map (e.g. star map)