<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — GPX]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=523&amp;type=atom" />
	<updated>2019-08-05T17:53:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=523</id>
		<entry>
			<title type="html"><![CDATA[Re: GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5408#p5408" />
			<content type="html"><![CDATA[<p>If you use CSV, then you just read the line, split the line into parts, parse the latitude and longitude values, and convert it to Unity World Position (GetWorldPositionByCoordinates action).</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-08-05T17:53:33Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5408#p5408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5407#p5407" />
			<content type="html"><![CDATA[<p>Thanks Alex for these explanations. I understand it is not easy to work with gpx files which might be different depending on their origin.</p><p>A gpx (or kml) file contains points with lng, lat and altitude and other infos. It is very simple to convert a kml or gpx file to a csv list of values, lat, lng, alt (or xml). A &quot;clean&quot; file, with only the info we need.</p><p>I think it is not appropriate to use the GPX altitude, as it will often not match the RWT terrain, and be under or above the terrain (bad values, resolution of the generated mesh…)</p><p>So we should only use latitude and longitude, altitude being calculated by RWT, as it is done with POIs generation. Altitude might be kept in the file for other purposes (for instance to draw an elevations curve).</p><p>Therefore, the Playmaker script would be much more simple, I mean :</p><p>- Read the 1st line (or the 1st record if a database is used)<br />- Get the altitude<br />- Generate an object at the 1st point (as you do with POIs)<br />- Continue the same way with all the points.<br />- Draw lines between each point, if possible following the terrain</p><p>For this last point, I am using Simplewaypoints, a powerful tool which generates splines between objects, it could do the job easily.</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2019-08-04T15:55:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5407#p5407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5400#p5400" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Yes, this is C #.<br />Theoretically, I can make Playmaker actions.<br />In practice, it will be a big pain to use this because GPX contains a lot of information. Take a look at this class and nested classes:<br /><a href="http://infinity-code.com/doxygen/real-world-terrain/classInfinityCode_1_1RealWorldTerrain_1_1Utils_1_1RealWorldTerrainGPXObject.html">http://infinity-code.com/doxygen/real-w … bject.html</a><br />Some things are conveniently done with Bolt or Playmaker. <br />Working with GPX will be very inconvenient.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-08-03T20:13:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5400#p5400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5399#p5399" />
			<content type="html"><![CDATA[<p>Hi Alex</p><p>I need to import gpx files on a terrain generated with RWT. I tried with EasyRoads, with the import kml process, but it doesn&#039;t seem to work very well (the generated road is on a plane). So I found this topic, but I don&#039;t undestand what you mean -cf previous post - by &quot;As an example you can look at:RealWorldTerrainRoadGenerator.Generate and RealWorldTerrainRoadGenerator.CreateEasyRoads.&quot; I am afraid these are C# commands, right ? Can I find somewhere the full description of the process ? Perhaps could you make PlayMaker actions to do this easily ?<br />Best regards !</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2019-08-03T15:43:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5399#p5399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2442#p2442" />
			<content type="html"><![CDATA[<p>Brilliant - thank you</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2017-06-06T12:26:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2442#p2442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2290#p2290" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Sorry for the long answer.<br />We ported classes to work with GPX into RWT.<br />The new version will be available soon, we need to make one more thing from another thread.</p><p>You need to get a GPX route point, convert it to Unity World Point, create a new roadNetwork, and create a road based on points.</p><p>As an example you can look at:<br />RealWorldTerrainRoadGenerator.Generate and RealWorldTerrainRoadGenerator.CreateEasyRoads.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-05-02T11:01:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2290#p2290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[GPX]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2279#p2279" />
			<content type="html"><![CDATA[<p>Hi, </p><p>I know OnlineMaps has the ability to read GPX files (thanks for that), but I was wondering how I might go about this in RWT and then use this info to create EasyRoad objects? Do you have any suggestions? I&#039;m not overly worried about parsing the GPX myself (although the OnlineMapsGPX object makes this process pretty painless in OLM), it&#039;s pushing this data to the EasyRoads plugin I&#039;m confused about :-/ </p><p>The reason being that I have a GPX file that provides much better quality route information of some cycle paths than the available OSM data for a particular area.</p><br /><p>Any help or suggestions would be very gratefully received.</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2017-04-28T12:48:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2279#p2279</id>
		</entry>
</feed>
