Giter Site home page Giter Site logo

artem78 / lmxconverter Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 666 KB

Converter between Nokia landmarks files (LMX) and other landmark formats

Pascal 100.00%
nokia lmx kml positioning location landmarks converter windows tool utilities gpx gps symbian geolocation

lmxconverter's Introduction

Lmx Converter

Nokia landmarks converter

Converts Nokia landmarks files (LMX) to/from another formats (KML, GPX, GeoJSON). This may be useful if you want to export landmarks from your Nokia phone to other programs (like JOSM or Google Earth). Converted files save in the same dir.

Download

You can download latest build for MS Windows and Linux here.

How to get lmx-file from my phone?

  1. Go to Configurations --> Landmarks or Applications --> Location --> Landmarks depending of your Symbian OS version
  2. Select landmarks you want to export
  3. In menu press Send, write any file name and choose suitable transferring method

Landmarks export

List of exported fields

LMX GPX KML GeoJSON
Name + + + +
Description + + +
Coordinates (latitude and longitude) + + + +
Altitude + + + +
Accuracy (horizontal and vertical) +
Address + +
Phone number + +
Link
Category + +

Conversion examples

input file MyLandmarks.lmx:

<?xml version="1.0" encoding="UTF-8"?>
<lm:lmx xmlns:lm="http://www.nokia.com/schemas/location/landmarks/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nokia.com/schemas/location/landmarks/1/0/ lmx.xsd">
	<lm:landmarkCollection>
		<lm:name>Test landmarks</lm:name>
		<lm:landmark>
			<lm:name>Mount Everest</lm:name>
			<lm:description>The highest point of the Earth</lm:description>
			<lm:coordinates>
				<lm:latitude>27.98806</lm:latitude>
				<lm:longitude>86.92528</lm:longitude>
				<lm:altitude>8848.86</lm:altitude>
				<lm:horizontalAccuracy></lm:horizontalAccuracy>
				<lm:verticalAccuracy></lm:verticalAccuracy>
			</lm:coordinates>
			<lm:addressInfo>
				<lm:street></lm:street>
				<lm:postalCode></lm:postalCode>
				<lm:city></lm:city>
				<lm:state></lm:state>
				<lm:country></lm:country>
				<lm:phoneNumber></lm:phoneNumber>
			</lm:addressInfo>
			<lm:category>
				<lm:name>Mountains</lm:name>
			</lm:category>
			<lm:category>
				<lm:name>World records</lm:name>
			</lm:category>
		</lm:landmark>
		<lm:landmark>
			<lm:name>Mariana Trench</lm:name>
			<lm:coordinates>
				<lm:latitude>11.35</lm:latitude>
				<lm:longitude>142.2</lm:longitude>
				<lm:altitude>-10984</lm:altitude>
			</lm:coordinates>
			<lm:category>
				<lm:name>World records</lm:name>
			</lm:category>
		</lm:landmark>
		<lm:landmark>
			<lm:name>Some place</lm:name>
			<lm:description>This is the description of very interesting place. It can cantains special characters like @/;+&amp;%&lt;&gt;£€$¥¤[]{}~№#|§. Также можно писать по-русски и даже по-китайски - 漢語, 汉语, 中文.</lm:description>
			<lm:coordinates>
				<lm:latitude>-56.1234</lm:latitude>
				<lm:longitude>-44.9876</lm:longitude>
				<lm:altitude>123.669998168945</lm:altitude>
				<lm:horizontalAccuracy>101.620002746582</lm:horizontalAccuracy>
				<lm:verticalAccuracy>5.32000017166138</lm:verticalAccuracy>
			</lm:coordinates>
			<lm:addressInfo>
				<lm:street>Long Street</lm:street>
				<lm:postalCode>123456</lm:postalCode>
				<lm:city>London</lm:city>
				<lm:state>Some state</lm:state>
				<lm:country>Great Britain</lm:country>
				<lm:phoneNumber>+01112223344</lm:phoneNumber>
			</lm:addressInfo>
			<lm:category>
				<lm:name>Test</lm:name>
			</lm:category>
		</lm:landmark>
		<lm:landmark>
			<lm:name>Lat and Lon only</lm:name>
			<lm:coordinates>
				<lm:latitude>46.3393</lm:latitude>
				<lm:longitude>48.035</lm:longitude>
			</lm:coordinates>
		</lm:landmark>
	</lm:landmarkCollection>
</lm:lmx>

output file MyLandmarks.kml:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <Folder>
      <name>Mountains</name>
      <Placemark>
        <name>Mount Everest</name>
        <description><![CDATA[The highest point of the Earth]]></description>
        <Point>
          <coordinates>86.92528,27.98806,8848.86</coordinates>
        </Point>
      </Placemark>
    </Folder>
    <Folder>
      <name>World records</name>
      <Placemark>
        <name>Mount Everest</name>
        <description><![CDATA[The highest point of the Earth]]></description>
        <Point>
          <coordinates>86.92528,27.98806,8848.86</coordinates>
        </Point>
      </Placemark>
      <Placemark>
        <name>Mariana Trench</name>
        <Point>
          <coordinates>142.2,11.35,-10984</coordinates>
        </Point>
      </Placemark>
    </Folder>
    <Folder>
      <name>Test</name>
      <Placemark>
        <name>Some place</name>
        <address>Long Street, London, Some state, Great Britain, 123456</address>
        <phoneNumber>+01112223344</phoneNumber>
        <description><![CDATA[This is the description of very interesting place. It can cantains special characters like @/;+&%<>£€$¥¤[]{}~№#|§. Также можно писать по-русски и даже по-китайски - 漢語, 汉语, 中文.]]></description>
        <Point>
          <coordinates>-44.9876,-56.1234,123.669998168945</coordinates>
        </Point>
      </Placemark>
    </Folder>
    <Placemark>
      <name>Lat and Lon only</name>
      <Point>
        <coordinates>48.035,46.3393</coordinates>
      </Point>
    </Placemark>
  </Document>
</kml>

output file MyLandmarks.gpx:

<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  <wpt lat="27.98806" lon="86.92528">
    <ele>8848.86</ele>
    <name>Mount Everest</name>
    <desc>The highest point of the Earth</desc>
  </wpt>
  <wpt lat="11.35" lon="142.2">
    <ele>-10984</ele>
    <name>Mariana Trench</name>
  </wpt>
  <wpt lat="-56.1234" lon="-44.9876">
    <ele>123.669998168945</ele>
    <name>Some place</name>
    <desc>This is the description of very interesting place. It can cantains special characters like @/;+&amp;%&lt;&gt;£€$¥¤[]{}~№#|§. Также можно писать по-русски и даже по-китайски - 漢語, 汉语, 中文.</desc>
  </wpt>
  <wpt lat="46.3393" lon="48.035">
    <name>Lat and Lon only</name>
  </wpt>
</gpx>

output file MyLandmarks.geojson

{
  "generator" : "LMX Converter 1.3",
  "type" : "FeatureCollection",
  "features" : [{
      "type" : "Feature",
      "geometry" : {
        "type" : "Point",
        "coordinates" : [8.6925280000000001E+001, 2.7988060000000001E+001, 8.8488600000000006E+003]
      },
      "properties" : {
        "name" : "Mount Everest"
      }
    }, {
      "type" : "Feature",
      "geometry" : {
        "type" : "Point",
        "coordinates" : [1.4219999999999999E+002, 1.1350000000000000E+001, -1.0984000000000000E+004]
      },
      "properties" : {
        "name" : "Mariana Trench"
      }
    }, {
      "type" : "Feature",
      "geometry" : {
        "type" : "Point",
        "coordinates" : [-4.4987600000000000E+001, -5.6123399999999997E+001, 1.2366999816894500E+002]
      },
      "properties" : {
        "name" : "Some place"
      }
    }, {
      "type" : "Feature",
      "geometry" : {
        "type" : "Point",
        "coordinates" : [4.8034999999999997E+001, 4.6339300000000001E+001]
      },
      "properties" : {
        "name" : "Lat and Lon only"
      }
    }]
}

lmxconverter's People

Contributors

artem78 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lmxconverter's Issues

A couple of questions

Hi Artem,

I just discovered this interesting repository of yours. A couple of questions:

  • I see the program is in Pascal, which means that it should be compiled. How should one do that? Maybe a compilation Makefile would be handy, to make this straightforward.
  • Do you plan to implement conversion from kml/gpx to lmx as well? It would be useful to be able to pass landmarks created in the computer to the phone.

Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.