[OSM-talk] GML to OSM (Re: convert mapinfo POI to osm for uploading)
Lambertus
osm at na1400.info
Fri Mar 14 09:01:00 GMT 2008
Well in every programming language you would be able to do such a thing.
But maybe you'd be fine by using Gpsbabel [1] which is a free tool to
convert between different gis/gps formats.
[1] www.gpsbabel.org
maning sambale wrote:
> 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
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
More information about the talk
mailing list