[OpenLayers-Users] Projection to show track that goes around the meridian

Christer Nordbø christer at gdm.no
Thu Apr 4 07:32:41 PDT 2013


The function in the link i provided in the previous mail works as far as i
have tested for now. :)

Med vennlig hilsen / Kind regards,
 
Christer Nordbø

 




On 04.04.13 11:32, "Christer Nordbø" <christer at gdm.no> wrote:

>I am using a custom tiled service based on Layer.OSM() - But i do believe
>they want to change it to google maps or something in the future.
>But this is something that i can specify if theres any problems with these
>sort of tile providers.
>
>When not doing it by vector, how would i place the line string? The
>mapserver / osm layer does not have a function of addFeatures() so i can't
>add the line string directly on it.
>
>Currently I'm processing the positions manually by javascript, and for
>each of the position reported, i create a point and then based on all the
>points i create a line string.
>I am then adding it to a vector layer and add the layer directly on to the
>map object. 
>
>I got GeoServer installed as this was something i read about last night.
>But this does not have any in-built tiles. And as I have never used
>geoServer previously. I have no idea how it works.
>I tried looking trough the documentation of it. But it doesn't bring up
>any examples where it would provide a map as a default map. It does have
>some layers as defaults. But only for smaller areas it would seem like.
>
>But did you solve the problem at your end with GeoServer? Or are you still
>looking for a fix for this?
>
>I did read something here that goes into converting the coordinates when
>crossing the meridian. But i was hoping there was some pre-made well
>functioning fix for this as the problem has existed forever, and that
>there would be some sort of fix for this after 4 years since this post :)
>http://lists.osgeo.org/pipermail/openlayers-users/2009-February/010480.htm
>l
>
>
>Med vennlig hilsen / Kind regards,
> 
>Christer Nordbø
>System developer
>Global Digital Media
>
>Global Digital Media
>Gamle Forusvei 8, 4033 Stavanger, Norway
>
>
> 
>
>
>
>
>On 03.04.13 22:15, "Phil Scadden" <p.scadden at gns.cri.nz> wrote:
>
>>
>>> I do see why it would do that. But i was hoping there was some support
>>> in openlayers for making this more or less automatic instead of
>>> breaking up the route.
>>>
>>
>>Welcome to wonderful world of 180 degree problems. I have similar need
>>as I have seismic lines crossing the 180 line. First up, what are you
>>using to serve up the data? I paid for a fix into geoserver (at 2.1.3
>>from memory) to make this possible. It also needed 2.12 openlayers.
>>Critical to making it work is making sure you are serving a tiled map
>>(so there is a tile boundary on the 180 line) from the WMS server.
>>
>>If you are doing it be vector, then consider not doing it by vector.
>>
>>Notice: This email and any attachments are confidential.
>>If received in error please destroy and immediately notify us.
>>Do not copy or disclose the contents.
>>
>>_______________________________________________
>>Users mailing list
>>Users at lists.osgeo.org
>>http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
>_______________________________________________
>Users mailing list
>Users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/openlayers-users
>




More information about the Users mailing list