GolfML to OpenStreetMap - Now what?

104 views
Skip to first unread message

Pierre Mareschal

unread,
Jul 10, 2012, 11:03:13 AM7/10/12
to Golf Markup Language
Hi there,

I would appreciate some help for the GolfML to OpenStreetMap bridge/conversion.

As expected, it wasn't too difficult to build a xslt to convert a golf course as described in GolfML into xml osm format.
I will add the stylesheet to perform the conversion to the golfml project later today.

1. So I now have a xml osm file. Where do I go from there? How and where can I test this file?
I'd like to upload it to some kind of osm sandbox to see how it looks like. How can I proceed?


2. I felt the need of a structure to shell around "golf holes" and "golf courses". I used an osm relation. Is that OK? Here is my thought:
= A golf hole consists of patches of land (green, fairways, rough...) and isolated "points" such as tree, tee, or pin (=hole=middle of green). I felt the need to group all those related items (ways and nodes) into a "relation". Is that OK?
= A course is a set of "holes" (as defined above). Again, I felt the need to "group" those holes into an entity and I used a relation to put them together. Was that OK?

I guess that sandboxing my data will soon clarify my questions.



Once this GolfML to OSM conversion works, I will work on the opposite direction, to convert an OSM file and extract golf information to generate a GolfML document with the course description. I already have a few golf courses, either from the OSM/golf discussion (Doral courses), or from Maps4Locus.

Many thanks for your help.

Pierre

PS: Have a look at this project. They even mention golfml. It is time to revive that project!



Jean-Jacques MONOT

unread,
Jul 12, 2012, 5:17:48 PM7/12/12
to golf-marku...@googlegroups.com
Hello all 

1.  Where do I go from there?  -> in principle, with JOSM you should be able to upload OSM compatible files to OSM server
How and where can I test this file? with a renderer like Maperitive (windows app) you hsould be able to test it ; however as golf rules are not officially published, default rules for Maperitive will not display your OSM tags ... you have to use you own rules (as I do) ..... for Pierre : I will send my golf rules in a PM 

2.  I used an osm relation. Is that OK? during my mapping process inside OSM using the on line Potlatch editor, I must admit that I have so much used the "OSM relation" feature .... I should in order to group all elements and linked them to a unique element (as the golf club)
-> today, what I do, is a rough mapping process without any relations between the elements, and it is the rendering rules in Maperitive for a specific export zone (in one OSM file) that allows me to gather these elements for one unique major element (as the golf club)
-> I agree that certainly we should use relation to gather and link elements.

In Map4Locus, I have put the OSM file corresponding to Cergy Pontoise golf club ; this file is obtained using the export capacity of the OSM web site. You can use it for your tests.

In parallel, I am preparing a Wince/Android app for the display of golf data and maps, and for score cards notation. I will make this app compatible with GolfML for courses and score cards (but I need some time to develop it ....).

For golf data, I am analyzing some web sources.

Best regards.



2012/7/10 Pierre Mareschal <golf.marku...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Golf Markup Language" group.
To post to this group, send email to golf-marku...@googlegroups.com.
To unsubscribe from this group, send email to golf-markup-lang...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/golf-markup-language?hl=en.

Pierre Mareschal

unread,
Jul 13, 2012, 4:00:13 AM7/13/12
to golf-marku...@googlegroups.com
Ok thank you.

I got Maperitive up and running on Mac and PC (Parallels Desktop), but I need to learn it a bit now.
I downloaded your Cergy Pontoise OSM file and see what I can extract from there. At this time, I think I will need several "passes" to generate GolfML from it, but I'll do it. Give me a few days.

It seems that things are running for golfml and osm. Let's make sure the osm golf proposal progresses.

I'm looking forward to testing your app! We need an equivalent on iphone/ipad.

We now need to work on web sites.

Gooood! After years of latency, this project comes a bit live again! I think that OSM is the key to progress, at least on the golf course side.
We'll work on the golf scorecard and golfer logbook later.

Best regards,
Reply all
Reply to author
Forward
0 new messages