Hello,<br><br>I am currently trying to plot third party (ie. external website) GeoRSS or KML data on a polar map. This is for a set of demos and articles for GeoWebGuru.com along the lines of the recent Equal Area Map articles (demos can be seen at <a href="http://www.equal-area-maps.com">http://www.equal-area-maps.com</a> ).<br>
<br>I&#39;m currently using the +sterea projection for dev, but I shall be extending this to other polar projections.<br>Data is limited to the northern hemisphere. This is because some of these projections are only valid for one hemisphere, and for the remaining projections (eg. sterea) the opposing hemisphere is generally too distorted for practical use.<br>
<br>My base map is served by WMS, and it is relatively easy to limit this to one hemisphere because I host the data and can clip the data a priori (ie. during my data prep).<br><br>These demos allow a user to plot external KML or GeoRSS data at run time (implemented using OpenLayers).<br>
That currently works well, but OpenLayers is currently plotting the entire data for both hemispheres.<br>I need to clip the GeoRSS or KML data to the northern hemisphere. The projected hemisphere is a circle. Both types of data feed use geographic coordinates, so it is much easier to clip the data as it is read (ie. only accept data where latitude &gt;0deg).<br>
<br>How can I do this in OpenLayers?<br><br>I can&#39;t see an obvious way. I tried setting the vector layer&#39;s maxExtents - not quite what I want, but worth a try. This didn&#39;t work.<br><br>It looks like a custom Strategy implementation might be the way to go? Are there any examples or documentation as to how to write a custom Strategy?<br>
<br>At the moment I&#39;m planning a two part article on polar projections, but if a custom strategy is required, I could write a third article on how to do this.<br><br>Another thought is that I could file a feature request:  To clip vector layers to a shape (or bbox) before the vector layer is re-projected. This could have other applications. For example, an application may wish to let a user limit the display of input data to an area or country of interest.<br>
Anyway, I thought I should post something first in-case this was possible already and to avoid what could be an unnecessary feature request.<br><br><br>Thanks in advance,<br><br>Richard Marsden<br>Winwaed Software Technology LLC<br>
<a href="http://www.winwaed.com">http://www.winwaed.com</a><br><a href="http://www.mapping-tools.com">http://www.mapping-tools.com</a><br><a href="http://www.geowebguru.com">http://www.geowebguru.com</a><br><br>