[OSM-talk] GML to OSM (Re: convert mapinfo POI to osm for uploading)

maning sambale emmanuel.sambale at gmail.com
Fri Mar 14 08:37:56 GMT 2008


Hi,

I need help in converting a POI GML file to OSM for upload.  The GML
file is from a Mapinfo file of POIs.

Sample is below:
<ogr:geometryProperty><gml:Point><gml:coordinates>121.101759999999999,14.628990999999999</gml:coordinates></gml:Point></ogr:geometryProperty>
      <ogr:Label>MARIKINA</ogr:Label>
      <ogr:Type>2304</ogr:Type>
      <ogr:TypeHex>0x900</ogr:TypeHex>
      <ogr:EndLevel>0</ogr:EndLevel>
      <ogr:Number></ogr:Number>
      <ogr:Street></ogr:Street>
      <ogr:City>MARIKINA</ogr:City>
      <ogr:Region>NCR</ogr:Region>
      <ogr:Country>Philippines</ogr:Country>
      <ogr:ZipCode>0001</ogr:ZipCode>
    </ogr:mla_poi>
  </gml:featureMember>
  <gml:featureMember>
    <ogr:mla_poi fid="F1">

What I am interested are to convert the:
<ogr:Label>MARIKINA</ogr:Label> to name=Marikina

and the:
    <ogr:Type>2304</ogr:Type> to place=city

I created a CSV file to convert the type code to OSM map features
(from the cgpmapper manual), sample below:
type,description,osm_key,osm_value
10752,dining (other),amenity,restaurant
10753,dining (American),amenity,restaurant
10754,dining (Asian),amenity,restaurant
10755,dining (Barbecue),amenity,restaurant

I know Perl can do this but I know no perl.

cheers,
maning




More information about the talk mailing list