[Talk-us] Need help with SHP2OSM Rules file
Sam Vekemans
acrosscanadatrails at gmail.com
Thu Aug 27 04:52:12 BST 2009
Thanks Ian,
i'll download the latest version and update my scripts :-)
cheers,
Sam
On 8/26/09, Ian Dees <ian.dees at gmail.com> wrote:
> I was working on those exact same files and accidentally released a version
> of shp-to-osm that uses "contains" instead of "equals" for string
> comparison. Download the 2nd-newest version of shp-to-osm and when your
> rules.txt line looks for a certain key, it will pick it up if the shapefile
> contains (instead of equals) your search string.
>
> Forgive me if that doesn't make too much sense, I'm pretty tired.
>
> Bottom line: try using the second-to-newest released .zip and you'll be able
> to do something like this in the rules file:
>
> outer,TRAIL_USE,B,foot,yes
> outer,TRAIL_USE,C,horse,yes
> outer,TRAIL_USE,H,snowshoe,yes
>
> and (in your example), your .osm output should have all three tags on that
> way.
>
> On Wed, Aug 26, 2009 at 10:22 PM, Chris Hunter <chunter952 at gmail.com> wrote:
>
>> I'm doing some preliminary work on making the state park data from the
>> Minnesota DNR available to the map. I've sliced up the state park
>> boundaries and trails into small enough chunks for JOSM to handle, but I'm
>> having difficulties with my rules.txt file.
>>
>> It may be a silly question, but does the search string in my RULES.TXT
>> have
>> to be an exact match for the program to apply the tags and values I want?
>> The info in the WIKI and the README file wasn't very clear.
>>
>> Here's an example field:
>> TRAIL_USE = BCH
>> (B=Hiking permitted, C=Horses Permitted, and H=Snowshoes permitted)
>>
>> Can I just create 1 separate line for each of the attribute abbreviations,
>> or does SHP2OSM require a line for each attribute in each possible
>> permutation?
>>
>> Thanks in advance,
>> Chris Hunter
>>
>> _______________________________________________
>> Talk-us mailing list
>> Talk-us at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-us
>>
>>
>
--
Twitter: @Acrosscanada
Facebook: http://www.facebook.com/sam.vekemans
More information about the Talk-us
mailing list