[Talk-us] Importing campsite in Oregon
Karl Newman
siliconfiend at gmail.com
Mon Aug 25 19:29:59 BST 2008
On Mon, Aug 25, 2008 at 10:51 AM, Tom Brown <thecapcom at gmail.com> wrote:
> On Mon, Aug 25, 2008 at 8:51 AM, Richard Weait <richard at weait.com> wrote:
>
>> On Mon, 2008-08-25 at 08:07 -0700, Tom Brown wrote:
>> > I'm going to be camping in Oregon in a week. OSM didn't seem to
>> > include any campsites in that area so I downloaded positions from the
>> > USFS and a private operator and imported them using ogr2ogr, gpsbabel
>> > and josm.
>> >
>> > The USFS data is public domain. I updated
>> >
>> http://wiki.openstreetmap.org/index.php/Potential_Datasources#US_Forest_Service
>>
>> Good find, Tom.
>>
>> > For the data I got from the google map at
>> > http://www.hoodoo.com/oregon_home.htm I emailed hoodoo and got this
>> > reply:
>> >
>> > ---------- Forwarded message ----------
>> > From: <Umbrella96 at aol.com>
>> > Date: Sun, Aug 24, 2008 at 2:28 PM
>> > Subject: Re: importing campsite locations into Open Street Map
>> >
>> > Our map comes from Google and I doubt that you need my permission, but
>> > if you do, you have it.
>> > Hope things go well,
>> > Chuck
>> >
>> >
>> > Do I need to ping this list for future tiny imports like this? Sorry
>> > for not asking first. I wanted to make sure I could do the import
>> > before asking and before I knew it the data was uploaded. ;-)
>>
>> I suggest that you remove the hoodoo uploads from the OSM database for
>> now. I have to guess, because you didn't include your email to Chuck,
>> but his reply doesn't sound like, "I collected the data on personal
>> trips and authorize you to re-licence it for OSM". In fact, the only
>> things he says is this, "Our map comes from Google..." While he doesn't
>> distinguish between the underlying map which is probably to what he
>> refers, and the campsite data which is probably what you uploaded, his
>> email does not sound to me like the permission that we require.
>>
>>
> Good point regarding how he made his made. I'll ask him to clearify how he
> generated the lat,lng for his map. I suspect he used Google's geocoding +
> manual correction using Google map tiles and satellite images, which isn't
> kosher. I think this answers my question about asking before uploading :-/
>
> Now, to remove...
> curl -g '
> http://osmxapi.hypercube.telascience.org/api/0.5/node[source_ref=http://www.hoodoo.com/oregon_home.htm][bbox=-124,42,-121,46]<http://osmxapi.hypercube.telascience.org/api/0.5/node%5Bsource_ref%3Dhttp://www.hoodoo.com/oregon_home.htm%5D%5Bbbox=-124,42,-121,46%5D>
> '
> returns a 500 error.
>
> Getting a single node works...
> curl -g '
> http://osmxapi.hypercube.telascience.org/api/0.5/node[name=Secret][bbox=-124,42,-121,46]<http://osmxapi.hypercube.telascience.org/api/0.5/node%5Bname=Secret%5D%5Bbbox=-124,42,-121,46%5D>
> '
> <?xml version='1.0' standalone='no'?>
> <?xml version='1.0' standalone='no'?>
> <osm version='0.5' generator='osmxapi: OSM Extended API'
> xmlns:osmxapi='http://www.informationfreeway.org/osmxapi/0.5'
> osmxapi:uri='/api/0.5/node[name=Secret][bbox=-124,42,-121,46]'
> osmxapi:planetDate='200808251732' osmxapi:copyright='2008 OpenStreetMap
> contributors' osmxapi:instance='zappy2'>
> <node id='290956783' lat='43.540833' lon='-122.449493' user='Tom Brown'
> osmxapi:users='Tom Brown' timestamp='2008-08-25T14:39:20Z'>
> <tag k='name' v='Secret'/>
> <tag k='source_ref' v='http://www.hoodoo.com
> /oregon_home.htm'/>
> <tag k='tourism' v='camp_site'/>
> </node>
> </osm>
>
> but I can't get requests by user to work. [user=Tom Brown] seems to just
> search for user=Tom and user=Tom+Brown finds nothing. Instead I ran
> curl -g '
> http://osmxapi.hypercube.telascience.org/api/0.5/node[tourism=camp_site][bbox=-124,42,-121,46]<http://osmxapi.hypercube.telascience.org/api/0.5/node%5Btourism=camp_site%5D%5Bbbox=-124,42,-121,46%5D>'
> > campsites.osm
> loaded the osm in josm, did a search to select the hoodoo source_ref data,
> deleted and uploaded. Sweet!
>
I think when you're requesting from osmxapi you have to encode special
characters in your request. So, instead of a space in user=Tom Brown, you'd
put %20, which is the URL encoding for a space (ASCII hex code 20), so you'd
put user=Tom%20Brown. Similar for the colon and maybe also the slashes in
your source_ref tag (I don't know the codes for those offhand).
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-us/attachments/20080825/cfe738ed/attachment.html>
More information about the Talk-us
mailing list