<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23536"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>Hi Scott,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>the Graticule Control is used to display a longitude, latitude
grid on the map. That's what you want.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>But it seems, that the Graticule not works very well for
polar projections. The OpenLayers example </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>shows some strange results, if you pan or
zoom.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>If you only want a grid without labels, then it will be
easier to use a static file with the grid.</FONT> </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>The GraticuleXY is a modification of the Graticule
to display an orthogonal grid in the map projection on the
map.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>For most cases it may be useless. I work often with
projection Gausss-Kruger and UTM and in these cases it is
usefull</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>to have a grid in map projection.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>example</FONT> <FONT color=#0000ff size=2 face=Arial>with
Graticule, GraticuleXY and static grid file </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial><A
href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL212/world_3411_new.asp">http://gis.ibbeck.de/ginfo/apps/OLExamples/OL212/world_3411_new.asp</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968271213-23112013><FONT color=#0000ff
size=2 face=Arial>Arnd</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> Scott Chilcote
[mailto:scottchilcote@yahoo.com] <BR><B>Gesendet:</B> Freitag, 22. November 2013
20:37<BR><B>An:</B> arnd.wippermann@web.de<BR><B>Cc:</B>
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> Re: AW: [OpenLayers-Users]
Problem Setting maxExtent for Polar Projection(EPSG:3995)<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: #000; FONT-SIZE: 12pt">
<DIV id=yiv1663947099>
<DIV>
<DIV
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: #000; FONT-SIZE: 12pt">
<DIV id=yiv1663947099>
<DIV id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_20489>
<DIV
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: #000; FONT-SIZE: 12pt"
id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_20488
class=yiv1663947099yui_3_13_0_ym1_1_1385048340202_20475>
<DIV id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_18><SPAN
id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_28>Hello Arnd,</SPAN></DIV>
<DIV
style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"
id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_30
class=yiv1663947099yui_3_13_0_ym1_1_1385048340202_20476><BR clear=none><SPAN
id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_28></SPAN></DIV>
<DIV
style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px"
id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_34
class=yiv1663947099yui_3_13_0_ym1_1_1385048340202_20477><SPAN
id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_28>Thanks very much for your
help. The OLC 210 Cache site is very helpful, as was your message.
<BR><BR>I was able to fix my OpenLayers projection by switching to meters, and
removing the resolution values I had declared. They were calculated for
degrees, not meters! You can see from the map image I have attached that
it looks much better now.<BR clear=none><BR clear=none>You can also see from the
black lines in the center and the black smear at the bottom that the graticule
does not work for this projection. It worked fine for the default
projection, EPSG:4326.<BR clear=none><BR>So I have one more question for you, if
you can help. It is about a mesage that you answered on this mailing list
last year.<BR clear=none><BR clear=none>From this message thread: <A
id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_21584
href="http://osgeo-org.1560.x6.nabble.com/Graticule-Layer-not-in-latlng-td4989063.html"
shape=rect rel=nofollow target=_blank><FONT
id=yiv1663947099yui_3_13_0_ym1_8_1385048340202_21>http://osgeo-org.1560.x6.nabble.com/Graticule-Layer-not-in-latlng-td4989063.html</FONT></A><BR
clear=none>You mention that the OpenLayers Graticule control does not work
correctly for projections that use units of meters. You also mention that
you needed to re-implement the <SPAN
style="FONT-WEIGHT: bold">Graticule.js</SPAN> code to use map units. And
on the http://gis.ibbeck.de/OLClient, I see that there is
OpenLayers.Control.GraticuleXY().<BR clear=none><BR clear=none>My question
relates to the Graticule Demo for OpenLayers v2.13, located here:<BR
clear=none><A id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_23903
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/graticule.html"
shape=rect rel=nofollow target=_blank><SPAN
id=yiv1663947099yui_3_13_0_ym1_8_1385048340202_42>http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/graticule.html</SPAN></A><SPAN
style="TEXT-DECORATION: underline"
id=yiv1663947099yui_3_13_0_ym1_8_1385048340202_48><BR clear=none></SPAN><A
id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_23903
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/graticule.html"
shape=rect rel=nofollow target=_blank><SPAN
id=yiv1663947099yui_3_13_0_ym1_8_1385048340202_42></SPAN></A><BR
clear=none></SPAN></DIV>
<DIV id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_20>If you look at the map on
the right side, you can see that it uses a graticule for a polar
projection. If you look at the page source, you will see that the
projection is defined for Proj.4 and has units of meters. This graticule
control (graticuleCtl2) is using OpenLayers.Control.Graticule().<BR><BR>So my
question is simply, why does this demo work? Has support for the Graticule
in map units been added to OpenLayers? It is certainly not working on my
map, which uses nearly identical syntax to define the graticule control.
<BR><BR>In fact, if I view my map with its broken graticule and then display
this demo web page, it stops working there too :-P<BR><BR>Thanks again for
any clues! I really appreciate the help.<BR><BR>Scott<BR><BR></DIV>
<DIV id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_22>--<BR clear=none>Scott
Chilcote<BR clear=none>scottchilcote@yahoo.com<BR></DIV>
<DIV id=yiv1663947099yqt96392 class=yiv1663947099yqt3831795361>
<DIV id=yiv1663947099yqt15488 class=yiv1663947099yqt1115818892>
<DIV style="DISPLAY: block" id=yiv1663947099yui_3_13_0_ym1_7_1385048340202_24
class=yiv1663947099yahoo_quoted><BR clear=none><BR clear=none>
<DIV
style="FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; FONT-SIZE: 12pt"
id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_18424
class="yiv1663947099yui_3_13_0_ym1_1_1385048340202_16806 yiv1663947099yui_3_13_0_ym1_1_1385048340202_20479">
<DIV
style="FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; FONT-SIZE: 12pt"
id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_18423
class="yiv1663947099yui_3_13_0_ym1_1_1385048340202_16807 yiv1663947099yui_3_13_0_ym1_1_1385048340202_20480">
<DIV dir=ltr id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_18425><FONT
id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_18426 size=2 face=Arial>On
Tuesday, November 19, 2013 4:47 PM, Arnd Wippermann
<arnd.wippermann@web.de> wrote:<BR clear=none></FONT></DIV>
<DIV id=yiv1663947099yui_3_13_0_ym1_1_1385048340202_18422
class=yiv1663947099y_msg_container>Hi Scott,<BR clear=none><BR clear=none>The
maxExtent have to be set in map projections coordinates. <BR
clear=none>EPSG:3995 is a projection with the north pole as center and the
coordinates<BR clear=none>0,0. <BR clear=none>The maxExtent in the OL example
describe a square with the north pole in the<BR clear=none>center.<BR
clear=none><BR clear=none>As you want your map in projection EPSG:3995, you
don't need the maxExtent<BR clear=none>in UTM coordinates.<BR clear=none><BR
clear=none>Add maxResolution: 43008.234375 ( = 5505054 / 128) to your map
options and<BR clear=none>zoom to maxExtent.<BR clear=none><BR clear=none>See
this example<BR clear=none><A
href="http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=data/wmc/epsg_3995_Arctic_pol"
shape=rect rel=nofollow
target=_blank>http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=data/wmc/epsg_3995_Arctic_pol</A><BR
clear=none>ar.wmc.xml<BR clear=none><BR clear=none>Arnd<BR clear=none><BR
clear=none><BR clear=none>-----Ursprüngliche Nachricht-----<BR clear=none>Von:
<A href="mailto:openlayers-users-bounces@lists.osgeo.org" shape=rect
rel=nofollow target=_blank
ymailto="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</A><BR
clear=none>[mailto:<A href="mailto:openlayers-users-bounces@lists.osgeo.org"
shape=rect rel=nofollow target=_blank
ymailto="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</A>]
Im Auftrag von ScottCh<BR clear=none>Gesendet: Dienstag, 19. November 2013
18:16<BR clear=none>An: <A href="mailto:openlayers-users@lists.osgeo.org"
shape=rect rel=nofollow target=_blank
ymailto="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</A><BR
clear=none>Betreff: [OpenLayers-Users] Problem Setting maxExtent for Polar<BR
clear=none>Projection(EPSG:3995)<BR clear=none><BR clear=none>Hello OpenLayers
Users,<BR clear=none><BR clear=none>I appear to be setting the maxExtent values
for my EPSG:3995 projection<BR clear=none>incorrectly.<BR clear=none><BR
clear=none>According to <A
href="http://spatialreference.org/ref/epsg/3995/" shape=rect rel=nofollow
target=_blank>http://spatialreference.org/ref/epsg/3995/</A><BR
clear=none><<A href="http://spatialreference.org/ref/epsg/3995/" shape=rect
rel=nofollow
target=_blank>http://spatialreference.org/ref/epsg/3995/</A>> , the
bounds for this<BR clear=none>projection in degrees are "everything north of 60
degrees north latitude" or<BR clear=none>bounds -180, 60 and 180, 90.<BR
clear=none><BR clear=none>I used the Earth Point online calculator (<BR
clear=none><A href="http://www.earthpoint.us/convert.aspx" shape=rect
rel=nofollow target=_blank>http://www.earthpoint.us/convert.aspx</A><BR
clear=none><<A href="http://www.earthpoint.us/convert.aspx" shape=rect
rel=nofollow target=_blank>http://www.earthpoint.us/convert.aspx</A>> )
to convert this to UTM. This<BR clear=none>gave me 332705mE 6655205mN and
2000000mE 2000000mN.<BR clear=none><BR clear=none>Does this mean that I need to
use 332705, 6655205, 2000000, 2000000 as the<BR clear=none>bounds in
meters? <BR clear=none><BR clear=none>This seems incorrect to me, in part
because of this OpenLayers<BR clear=none>implementation example:<BR
clear=none><A
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/polar-projecti"
shape=rect rel=nofollow
target=_blank>http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/polar-projecti</A><BR
clear=none>ons.html<BR clear=none><<A
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/polar-project"
shape=rect rel=nofollow
target=_blank>http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/polar-project</A><BR
clear=none>ions.html><BR clear=none>The bounds used for each polar projection
it provides are -5505054,<BR clear=none>-5505054, 5505054, 5505054.<BR
clear=none><BR clear=none>I looked up EPSG:3576 (which it uses), and it uses
"everything above 45<BR clear=none>degrees" for its bounds. This suggests
that my guess (to use UTM<BR clear=none>conversion) is wrong.<BR clear=none><BR
clear=none>I decided to try using the same maxExtent values as the polar
projection<BR clear=none>demo.<BR clear=none><BR clear=none>This gave me:<BR
clear=none><BR clear=none> map0 = new OpenLayers.Map(<BR
clear=none> "Map", {<BR clear=none>
controls:[<BR clear=none>
new OpenLayers.Control.PanZoomBarMod({zoomWorldIcon:true,<BR
clear=none>forceFixedZoomLevel:true}),<BR clear=none>
new OpenLayers.Control.ArgParser(),<BR clear=none>
new OpenLayers.Control.Navigation(),<BR
clear=none> new
OpenLayers.Control.Attribution()<BR clear=none>
],<BR clear=none> projection: new
OpenLayers.Projection('EPSG:3995'),<BR clear=none>
units: 'm',<BR clear=none>
//maxExtent:new OpenLayers.Bounds(-180,60,180,90),<BR clear=none>
maxExtent:new OpenLayers.Bounds(-5505054, -5505054,
5505054,<BR clear=none>5505054),<BR clear=none>
<BR clear=none> numZoomLevels: 7<BR
clear=none> }<BR clear=none>
);<BR clear=none><BR clear=none>I show the bounds in degrees commented out as a
form of documentation. The<BR clear=none>problem with this code is that it
does not work properly. When I display my<BR clear=none>map in Firefox, it
takes several seconds before showing a blank rectangle<BR clear=none>for the
map. Then I get an "unresponsive script" alert box. The map never<BR
clear=none>draws. <BR clear=none><BR clear=none>I have experimented with
other values for the maxExtent, and the results<BR clear=none>vary a lot.
If I use the degree values on the commented out line, I get a<BR clear=none>map
that looks like this:<BR clear=none><BR clear=none><<A
href="http://osgeo-org.1560.x6.nabble.com/file/n5089954/olprojection.jpg"
shape=rect rel=nofollow
target=_blank>http://osgeo-org.1560.x6.nabble.com/file/n5089954/olprojection.jpg</A>>
<BR clear=none><BR clear=none>This map rendering has several problems. You can
see from the edges of the<BR clear=none>graticule that the extents are not set
correctly. The graticule is supposed<BR clear=none>to be radial with the
center at the north pole instead of rectangular.<BR clear=none><BR clear=none>At
this point I have tried several different sets of values - admittedly<BR
clear=none>guesses - as the maxExtent bounds, and the results are always similar
to<BR clear=none>these two situations. Either it times out and does not
draw, or it draws<BR clear=none>something similar to the standard EPSG:4326
projection over my base layer<BR clear=none>map. I have looked through a
lot of documentation, but haven't found enough<BR clear=none>clues yet.
Can someone point me in the right direction where to find out<BR clear=none>how
to correctly set the maxExtent bounds for my projection?<BR clear=none><BR
clear=none>Thanks for your help,<BR clear=none><BR clear=none>Scott C.<BR
clear=none><BR clear=none><BR clear=none><BR clear=none><BR clear=none>--<BR
clear=none>View this message in context:<BR clear=none><A
href="http://osgeo-org.1560.x6.nabble.com/Problem-Setting-maxExtent-for-Polar-Proj"
shape=rect rel=nofollow
target=_blank>http://osgeo-org.1560.x6.nabble.com/Problem-Setting-maxExtent-for-Polar-Proj</A><BR
clear=none>ection-EPSG-3995-tp5089954.html<BR clear=none>Sent from the
OpenLayers Users mailing list archive at Nabble.com.<BR
clear=none>_______________________________________________<BR clear=none>Users
mailing list<BR clear=none><A href="mailto:Users@lists.osgeo.org" shape=rect
rel=nofollow target=_blank
ymailto="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</A><BR
clear=none><A href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
shape=rect rel=nofollow
target=_blank>http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><BR
clear=none><BR clear=none><BR
clear=none></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>