[OSM-talk] GML to OSM (Re: convert mapinfo POI to osm for uploading)
maning sambale
emmanuel.sambale at gmail.com
Fri Mar 14 09:16:23 GMT 2008
Thanks for pointing this one out.
Can gpsbabel convert GML to OSM? Last time I checked. it can't:
http://www.gpsbabel.org/htmldoc-1.3.5/The_Formats.html
I may have to dig dipper.
Any other way? POIs are around 7,000 points.
On Fri, Mar 14, 2008 at 5:01 PM, Lambertus <osm at na1400.info> wrote:
> 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
>
>
--
|---------|----------------------------------------------------------|
| __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda |
| '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
| /'.-c |Linux registered user #402901, http://counter.li.org/ |
| | /T |http://esambale.wikispaces.com|
| _)_/LI
|---------|----------------------------------------------------------|
More information about the talk
mailing list