User talk:EtienneChove

From OpenStreetMap Wiki
Jump to navigation Jump to search

PythonOsmApi and WPS service

Hi Etienne, I'm luca delucchi an Italian mapper. I'd like use PythonOsmApi inside a WPS service, I did some test and I have a problem when I try the auto changesetauto, this is the code I used

 >>> usern='lucadelu'
 >>> passw='******'
 >>> osmapi = OsmApi(api = unicode('api06.dev.openstreetmap.org'), username = unicode(usern), password = unicode(passw), changesetauto = True, changesetautotags    ={unicode('comment'): unicode('test')})
 >>> for i in range(10):
 ...     node = {unicode('lat'):i, unicode('lon'):i, unicode('tag'):{unicode('place'):unicode('locality'), unicode('name'):unicode(i)}}
 ...     osmapi.NodeCreate(node)
 ...
 >>> osmapi.flush()
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.6/OsmApi.py", line 558, in flush
   return self._changesetautoflush(True)
 File "/usr/lib/python2.6/OsmApi.py", line 564, in _changesetautoflush
   self.ChangesetUpload(self._changesetautodata[:self._changesetautosize])
 File "/usr/lib/python2.6/OsmApi.py", line 424, in ChangesetUpload
   data = self._http("POST", "/api/0.6/changeset/"+str(self._CurrentChangesetId)+"/upload", True, data.encode("utf-8"))
 File "/usr/lib/python2.6/OsmApi.py", line 605, in _http
   return self._http_request(cmd, path, auth, send)
 File "/usr/lib/python2.6/OsmApi.py", line 595, in _http_request
   raise ApiError(response.status, response.reason)
 OsmApi.ApiError: Request failed: 400 - Bad Request


have you some advice for solve this error?

thank's luca

lucadelu 12:59, 19 May 2010


Hi Lucadelu, i just tried this out today and found the bug causing it. Just try the following,it might work.

Replace

 self._conn.putheader('Content-Length', len(send))

with

 self._conn.putheader('Content-Length', str(len(send)))

Srikanthlogic 15:20, 31 October 2010 (UTC)

Feedback request

Hi,

I am working to add new features to Search Translations (link) and would like your feedback on the same. I have an idea of a new feature, called "text search with autosuggest" through which you can specify your search filters in the search box itself (apart from the UI), and also have autosuggest to show the possible values for the filter options. An example is this.

Please write a comment here about what you think of this feature. Also here you may read about the other improvements that are planned.

Thank you and I shall be waiting for your feedback.

Missing file information

Hello! And thanks for your upload - but some extra info is necessary.

Sorry for bothering you about this, but it is important to know source of the uploaded files.

Are you the author of image File:Clcf-import.png ?

Or is it copied from some other place (which one?)?

Please, add this info to the file page - something like "I took this photo" or "downloaded from -website link-" or "I took this screeshot of program XYZ".

Doing this would be already very useful.

Licensing - photos

In case that you are the author of the image: Would you agree to open licensing of this image, allowing its use by anyone (similarly to your OSM edits)?

In case where it is a photo you (except relatively rare cases) author can make it available under a specific free license.

Would you be OK with CC0 (it allows use without attribution or any other requirement)?

Or do you prefer to require attribution and some other things using CC-BY-SA-4.0?

If you are the author: Please add {{CC0-self}} to the file page to publish the image under CC0 license.

You can also use {{CC-BY-SA-4.0-self}} to publish under CC-BY-SA-4.0 license.

Once you add missing data - please remove {{Unknown|subcategory=uploader notified February 2022}} from the file page.

Licensing - other images

If it is not a photo situation gets a bit more complicated.

See Drafts/Media file license chart that may help.

note: if you took screenshot of program made by someone else, screenshot of OSM editor with aerial imagery: then licensing of that elements also matter and you are not a sole author.

note: If you downloaded image made by someone else then you are NOT the author.

Note that in cases where photo is a screenshot of some software interface: usually it is needed to handle also copyright of software itself.

Note that in cases where aerial imagery is present: also licensing of an aerial imagery matter.

Help

Feel free to ask for help if you need it - you can do it for example by asking on Talk:Wiki: new topic.

Please ask there if you are not sure what is the proper next step. Especially when you are uploading files that are not your own work or are derivative work (screenshots, composition of images, using aerial imagery etc).

If you are interested in wider discussion about handling licencing at OSM Wiki, see this thread.

--Mateusz Konieczny (talk) 07:58, 2 February 2022 (UTC)