<DIV style="font-family:Arial, sans-serif; font-size:10pt;">Thanks for quick answers. And many suggestions.<BR><BR>I have no experience with client side transformation on the fly and am not sure how much performance impact it has. Loadtests with mapserver here shows that the throughput is 30 to 50 percent lower when we do server side transformation in mapserver on the fly, though no special optimization. That is one reason I thought it might be good to have everything pretransformed at server side before starting up graphhopper and creating "routedata", if it was possible without changing source code. From what I understand from your reply it is not an easy option as it needs a lot of code rewriting. <BR><BR>But maybe it should be no big problem to do it client side on the fly as it is usually not that many coordinates to transform, especially compared to draw a whole map image. Also I guess we might need routing in the standard reference system anyway.<BR><BR>Questions:<BR>-Does somebody know about any good documentation or examples for client side transformation to start from? Expecially if anybody already done it with graphhopper route API.<BR>-Is there a prefered javascript library for handling Google Polyline Encoding?<BR><BR>Thanks a lot again for your answers.<BR><BR>Regards,<BR>Per<BR><BR>--- graphhopper@gmx.de wrote:<BR><BR>From: Peter <graphhopper@gmx.de><BR>To: graphhopper@openstreetmap.org<BR>Subject: Re: [GraphHopper] Can graphhopper work with any specific spatial reference system?<BR>Date: Thu, 20 Nov 2014 11:32:56 +0100<BR><BR>
<DIV>Hi Per,<BR>
<BR>
I completely agree with Jan. Also doing the transformation on the
server side (e.g. in GraphHopperServlet) could be another
solution.<BR>
<BR>
Regards,<BR>
Peter<BR>
<BR>
On 20.11.2014 11:29, Jan Torben Heuer wrote:<BR>
</DIV>
<BLOCKQUOTE>
Hi Per,
<DIV><BR>
</DIV>
<DIV>I recommend to do it client side, it should be fairly easy to
draw the graphhopper response (Google Polyline Encoding) with
OpenLayers (which then takes care of projections).</DIV>
<DIV>If you prefer a server-side solution, you can use geotools to
covert between 4326 and 3011 before sending the result to the
client. I don’t see much benefit in doing it server-side.</DIV>
<DIV>If you even change the projection in the source file, prepare
to change large parts of the code base.</DIV>
<DIV><BR>
</DIV>
<DIV>HTH,</DIV>
<DIV><BR>
</DIV>
<DIV>Jan</DIV>
<DIV><BR>
</DIV>
<DIV>
<DIV>
<DIV>Am 20.11.2014 um 11:21 schrieb Per Laas <<A href="mailto:per.laas@muchomail.com">per.laas@muchomail.com</A>>:</DIV>
<BR>
<BLOCKQUOTE>
<DIV style="font-family:Arial, sans-serif; font-size:10pt;"><FONT size="2">Hi!<BR>
<BR>
Very good work you have done with graphhopper. Uppsala
local government in Sweden uses SWEREF 99 18 00 (SRID
3011) as spatial reference system for most maps using
among others Mapserver, geowebcache and OpenLayers. It
could be nice to add some routing in these maps.<BR>
<BR>
-Is it possible to make graphhopper service API work
with this spatial reference system? Maybe by creating a
osm.bpf with this </FONT><FONT size="2"><FONT size="2">spatial
reference system?</FONT> I do not know if it is
possible at all, for example using ogr2osm.<BR>
<BR>
-Is</FONT><FONT size="2"> it possible to make the
graphhopper client to work with this spatial reference
system? It seems the default client uses leaflet. I have
read somewhere leaflet is not so strong handling
different </FONT><FONT size="2">spatial reference
systems.<BR>
<BR>
-Is there somebody who know if anybody has used
graphhopper service API with OpenLayers?<BR>
</FONT><FONT size="2"><BR>
-Is there any documentation how to use graphhopper with
your chosen spatial reference system?<BR>
</FONT><BR>
Appreciate any answers<BR>
Thanks, Per<BR>
<BR>
----------------------<BR>
Per Låås<BR>
Valloxvägen 20<BR>
74142 Knivsta<BR>
Tel: +46-18-343561<BR>
Mob: +46-725-196540<BR>
<A href="mailto:per.laas@muchomail.com">per.laas@muchomail.com</A><BR>
----------------------<BR>
</DIV>
</BLOCKQUOTE>
</DIV>
</DIV>
</BLOCKQUOTE>
<BR>
_______________________________________________
GraphHopper mailing list
<A href="/eonapps/ft/wm/page/compose?send_to=GraphHopper%40openstreetmap.org">GraphHopper@openstreetmap.org</A>
<A href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</A>
<BR> <BR><HR>The Free Email with so much more!<BR>=====> http://www.MuchoMail.com <=====</DIV>