<div dir="ltr">The links to ogr2ogr pointed to mapserver. I have mapserver, but i can't find the osmconf.ini file.<div><br></div><div>i have now installed FWTools 2.4.7 on windows 7 32 bit and i still can't find that file. </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 1, 2013 at 2:00 AM, Jukka Rahkonen <span dir="ltr"><<a href="mailto:jukka.rahkonen@latuviitta.fi" target="_blank">jukka.rahkonen@latuviitta.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Why didn't you like the GDAL utility program ogr2ogr? The command to use<br>
for converting OSM points into a point shapefile is<br>
ogr2ogr -f "ESRI Shapefile" osm_points.shp input.osm points<br>
<br>
If you want to change the field names you can use the following syntax<br>
ogr2ogr -f "ESRI Shapefile" osm_points.shp input.osm<br>
-sql "select name as alias_name from points"<br>
<br>
Edit the osmconf.ini file for selecting the tags you want to include in<br>
the shapefile. Osmconf.ini is a plain text file and GDAL ships with a<br>
template which has helpful comments. Here is a snippet.<br>
<br>
# keys to report as OGR fields<br>
attributes=name,barrier,highway,ref,address,is_in,place,man_made<br>
# keys that, alone, are not significant enough to report a node as a OGR<br>
point<br>
unsignificant=created_by,converted_by,source,time,ele<br>
# keys that should NOT be reported in the "other_tags" field<br>
ignore=created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME<br>
# uncomment to avoid creation of "other_tags" field<br>
#other_tags=no<br>
<br>
-Jukka Rahkonen-<br>
<div><div class="h5"><br>
<br>
amrit karmacharya wrote:<br>
> I need to make shapefiles with custom tags from osm data. I have gone<br>
> through every method in shapefile wiki on osm.<br>
><br>
> For me the best method is LocalOSMToSHP. It let's me define the file, the<br>
> tags I want and even create alais for column.<br>
><br>
> The problem is the prog needs to be on same location as the osm file and<br>
> the rules file is not much configurable.<br>
><br>
> Is there a more friendlier app with the same functions as localosmtoshp.<br>
</div></div>> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> <a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
><br>
<br>
<br>
</blockquote></div><br></div>