Re: [Potlatch-dev] [OpenStreetMap] #3587: Tag keys/values should be restricted to 255 characters

2011-03-24 Thread Richard Fairhurst
Andy Allan wrote:
 Well, I don't have steps to reproduce

I think I'm starting to. This is _really_ weird.

Obviously this isn't the only way to trigger it, but try this:

1. Open a Potlatch 2 instance. Select a way. Select 'Advanced'. Delete some
tags with the 'X' button.
2. In another tab - yes, really - open a page with another Flex SWF. I've
found
http://www.trynull.com/2010/02/11/programatically-select-a-datagrid-cell-in-flex/
works.
3. Go back to the P2 tab. Start selecting ways. It's stuck.

The reason it's stuck is that (in TagGrid.mxml), somehow editedItemPosition
has gained a value, despite no cell being edited. I put a
trace(outerDocument.editedItemPosition) into line 53 of TagGrid.mxml. In
normal operation, clicking 'X' would result in null in the Flash log; when
it's stuck, it results in [Object object].

You can unstick it, very simply, by selecting a cell for editing. That sets
editedItemPosition again properly and all is well with the world.

So we're triggering a Flex bug of some sort. It may, perhaps, have something
to do with bEditedItemPositionChanged not being set to true somewhere in
DataGrid.as. I wonder if there's any event on DataGrid that we can listen
for and then nullify editedItemPosition manually when it fires...

cheers
Richard



--
View this message in context: 
http://gis.638310.n2.nabble.com/Potlatch-dev-OpenStreetMap-3587-potlatch2-advanced-tab-crash-tp6172959p6203607.html
Sent from the Potlatch mailing list archive at Nabble.com.

___
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev


Re: [Potlatch-dev] Crash with custom vector.xml

2011-03-24 Thread Richard Fairhurst
NopMap wrote:
 It used to work with the style sheet simply in the same directory as p2.

Indeed; we moved it because the p2 directory was getting horribly busy and
disorganised.

 Does it need all stylesheets in a subdir? The main stylesheet is still
 working from the main dir.

If you expressly specify a stylesheet URL, it can be anywhere, of course.
But the hardcoded default stylesheets all now point to stylesheets/
(principally stylesheets/potlatch.css and stylesheets/gpx.css).

 Is there any way to find out about such changes in the structure before P2
 crashes?

P2 is advancing at quite a pace but right now we simply don't have enough
developers to write extensive documentation for every change. We don't
even have complete asdocs for the full code yet.

Things like this will stabilise over time, and indeed are doing so, but
the best advice for now is to watch the changelog and the relevant wiki
pages, and above all, ask here if you're not sure.

cheers
Richard




___
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev


Re: [OSM-dev] Develop a Simple Mapping Tool for Mobile Phones

2011-03-24 Thread Yarik
Hi Nic!

 No, I haven't looked at it.

I have just checked it out. Doesn't seem much. It is a trivial
web based app. They are using phonegap for interfacing platform
API, therefore it is not a native Android application. phonegap
has API for accessing camera, PGS sensor and compass, though, so
the further development of this project could be considered.

 But in the short term there is no image processing necessary. Simply
 show the user a crosshair. He can then take multiple shots of an
 object to collect it's height and location.

I trust you that for this particular application no image
processing is required. I am not familiar that much with the
triangulation process. Nevertheless it could be interesting to
have a look into http://opencv.willowgarage.com/wiki/Android in
order to support the long term ideas. This though is not a
part of phonegap therefore requires a navtive app or the
processing must take place on a server.

You have offered help in triangulation in one of the prev
emails. A couple links would be awesome for a quick
initialization. Thanks in advance!

Greets,
Yarik


On Wed, 2011-03-23 at 20:22 +0200, Nic Roets wrote:
 On Wed, Mar 23, 2011 at 5:30 PM, Yarik iaroslav.shepty...@hs-bremen.de 
 wrote:
  Hi Nic!
 
 Great to hear! I has been thinking of building a tool like that
 for quite a long time already with slightly different
 functionality than you describe but still very similar. I wrote
 already that I worked on location based mobile games. In many
 games players are encouraged to take pictures of different
 objects. The challenge I always faced in data analyzes was to
 extract any useful information out of those pics about features
 (landmarks in particular). You offer an interesting approach. Do
 you know anything about the last year SoC project? Would it make
 sense to extend its achievements?
 
 No, I haven't looked at it.
 
 Since you say such apps are useful for community, I will develop
 the idea further. I will also try to apply to SoC this year. But
 even in case I fail I would be interested in the development.
 Are you going to apply for SoC too / mentoring?
 
 I'm not going to apply for SoC.
 
 I'd be happy to informally mentor anyone developing software to
 process sensor and GPS data. I built up a little bit of experience
 with my KeypadMapper project, as well as porting Gosmore to Android.
 
 In the long term (i.e. not this year) it would be nice to detect logos
 (trademarks), perhaps do OCR or even photosynth type survey.
 
 But in the short term there is no image processing necessary. Simply
 show the user a crosshair. He can then take multiple shots of an
 object to collect it's height and location.



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] [GSoC] Mentors requirements

2011-03-24 Thread Matthias Meißer

Hi there,

I added a few ideas and I'm intersted in working on a OSM4Games project. 
But I'm still not sure what kind of mentor would be ok.


Does the one need to be member of OSM/OSMF or can it be a assistant on 
my local university, too? Need the person to be very skilled in OSM or 
would be general GIS context be ok? Does he need to cover all kind of 
knowledge to things involved (here: Games technologies)?


thanks for the management!
Matthias

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Develop a Simple Mapping Tool for Mobile Phones

2011-03-24 Thread Nic Roets
On Thu, Mar 24, 2011 at 12:08 PM, Yarik iaroslav.shepty...@hs-bremen.de wrote:
        You have offered help in triangulation in one of the prev
        emails. A couple links would be awesome for a quick
        initialization. Thanks in advance!

Firstly, sensors give you magnetism and gravity as 3D vectors. For
every picture, obtain magnetic East (in the horizontal plane) you take
the cross product of the two vectors. Then you get magnetic North by
taking the cross product of magnetic East and gravity. Then you
project the camera vector onto the horizontal plane to get the azimuth
angle. Then get elevation angle with the cosine rule.

When the user selects multiple photos aimed at the same point, you can
estimate that point using some least squares method. Preferably the
photos should have a large angular separation (as seen from the point
being observed), otherwise the results will be inaccurate (in GPS, it
is called Dilution Of Precision).

All these terms are described on Wikipedia, but they focus on linear
variables. Angles are non-linear. So either one should look at books
or papers describing theodolite computations, or just make your own
approximations and simulations. For example it may be sufficient to
assume the Earth is flat after applying the equirectangular
projection.


 Greets,
 Yarik


 On Wed, 2011-03-23 at 20:22 +0200, Nic Roets wrote:
 On Wed, Mar 23, 2011 at 5:30 PM, Yarik iaroslav.shepty...@hs-bremen.de 
 wrote:
  Hi Nic!
 
         Great to hear! I has been thinking of building a tool like that
         for quite a long time already with slightly different
         functionality than you describe but still very similar. I wrote
         already that I worked on location based mobile games. In many
         games players are encouraged to take pictures of different
         objects. The challenge I always faced in data analyzes was to
         extract any useful information out of those pics about features
         (landmarks in particular). You offer an interesting approach. Do
         you know anything about the last year SoC project? Would it make
         sense to extend its achievements?

 No, I haven't looked at it.

         Since you say such apps are useful for community, I will develop
         the idea further. I will also try to apply to SoC this year. But
         even in case I fail I would be interested in the development.
         Are you going to apply for SoC too / mentoring?

 I'm not going to apply for SoC.

 I'd be happy to informally mentor anyone developing software to
 process sensor and GPS data. I built up a little bit of experience
 with my KeypadMapper project, as well as porting Gosmore to Android.

 In the long term (i.e. not this year) it would be nice to detect logos
 (trademarks), perhaps do OCR or even photosynth type survey.

 But in the short term there is no image processing necessary. Simply
 show the user a crosshair. He can then take multiple shots of an
 object to collect it's height and location.




___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] [GSoC] Mentors requirements

2011-03-24 Thread Yarik
Hi, Matthias.

If you’re not currently involved with an organization and want
to be a mentor for the program, please contact that organization
and speak to them about their mentor selection criteria.
Helps?

from:

http://www.google-melange.com/document/show/gsoc_program/google/gsoc2011/faqs#work

Yarik

On Thu, 2011-03-24 at 12:21 +0100, Matthias Meißer wrote:
 Hi there,
 
 I added a few ideas and I'm intersted in working on a OSM4Games project. 
 But I'm still not sure what kind of mentor would be ok.
 
 Does the one need to be member of OSM/OSMF or can it be a assistant on 
 my local university, too? Need the person to be very skilled in OSM or 
 would be general GIS context be ok? Does he need to cover all kind of 
 knowledge to things involved (here: Games technologies)?
 
 thanks for the management!
 Matthias
 
 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Develop a Simple Mapping Tool for Mobile Phones

2011-03-24 Thread Yarik

Thanks, Nic!
I need time now to digest what you wrote.


On Thu, 2011-03-24 at 14:00 +0200, Nic Roets wrote:
 On Thu, Mar 24, 2011 at 12:08 PM, Yarik iaroslav.shepty...@hs-bremen.de 
 wrote:
 You have offered help in triangulation in one of the prev
 emails. A couple links would be awesome for a quick
 initialization. Thanks in advance!
 
 Firstly, sensors give you magnetism and gravity as 3D vectors. For
 every picture, obtain magnetic East (in the horizontal plane) you take
 the cross product of the two vectors. Then you get magnetic North by
 taking the cross product of magnetic East and gravity. Then you
 project the camera vector onto the horizontal plane to get the azimuth
 angle. Then get elevation angle with the cosine rule.
 
 When the user selects multiple photos aimed at the same point, you can
 estimate that point using some least squares method. Preferably the
 photos should have a large angular separation (as seen from the point
 being observed), otherwise the results will be inaccurate (in GPS, it
 is called Dilution Of Precision).
 
 All these terms are described on Wikipedia, but they focus on linear
 variables. Angles are non-linear. So either one should look at books
 or papers describing theodolite computations, or just make your own
 approximations and simulations. For example it may be sufficient to
 assume the Earth is flat after applying the equirectangular
 projection.
 
 
  Greets,
  Yarik
 
 
  On Wed, 2011-03-23 at 20:22 +0200, Nic Roets wrote:
  On Wed, Mar 23, 2011 at 5:30 PM, Yarik iaroslav.shepty...@hs-bremen.de 
  wrote:
   Hi Nic!
  
  Great to hear! I has been thinking of building a tool like that
  for quite a long time already with slightly different
  functionality than you describe but still very similar. I wrote
  already that I worked on location based mobile games. In many
  games players are encouraged to take pictures of different
  objects. The challenge I always faced in data analyzes was to
  extract any useful information out of those pics about features
  (landmarks in particular). You offer an interesting approach. Do
  you know anything about the last year SoC project? Would it make
  sense to extend its achievements?
 
  No, I haven't looked at it.
 
  Since you say such apps are useful for community, I will develop
  the idea further. I will also try to apply to SoC this year. But
  even in case I fail I would be interested in the development.
  Are you going to apply for SoC too / mentoring?
 
  I'm not going to apply for SoC.
 
  I'd be happy to informally mentor anyone developing software to
  process sensor and GPS data. I built up a little bit of experience
  with my KeypadMapper project, as well as porting Gosmore to Android.
 
  In the long term (i.e. not this year) it would be nice to detect logos
  (trademarks), perhaps do OCR or even photosynth type survey.
 
  But in the short term there is no image processing necessary. Simply
  show the user a crosshair. He can then take multiple shots of an
  object to collect it's height and location.
 
 
 



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [Potlatch-dev] Crash with custom vector.xml

2011-03-24 Thread NopMap

Richard Fairhurst wrote:
 
 
 It does, but you need to put it in the stylesheets/ directory.
 
 

It used to work with the style sheet simply in the same directory as p2.

Does it need all stylesheets in a subdir? The main stylesheet is still
working from the main dir.

Is there any way to find out about such changes in the structure before P2
crashes?

bye
Nop


--
View this message in context: 
http://gis.638310.n2.nabble.com/Crash-with-custom-vector-xml-tp6201539p6203886.html
Sent from the Potlatch mailing list archive at Nabble.com.

___
Potlatch-dev mailing list
potlatch-...@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev


Re: [OSM-dev] [GSoC] Mentors requirements

2011-03-24 Thread Matthias Meißer
Thanks Yarik, but I was looking for some oppinion of users that were 
already involved in GSoC :)

But I guess I will just give it a try ;)

Matthias

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] [GSoC] Mentors requirements

2011-03-24 Thread Ian Dees
I am pondering that right now. On one hand I would prefer to see a mentor be
someone that is familiar with the OSM project and can give advice and
feedback about how to work with the OSM community and its tools, but on the
other hand I am excited to see completely unrelated and new people
contribute to OSM.

Currently I'm leaning towards allowing external mentor/student pairs *as
long as they participate with the GSoC process completely*. I would be much
more inclined to accept a student or mentor with no previous work in the OSM
community if they provided a thorough plan for how they would integrate
their work into the existing OSM community and continue to participate in
OSM after GSoC completed.

2011/3/24 Matthias Meißer dig...@arcor.de

 Hi there,

 I added a few ideas and I'm intersted in working on a OSM4Games project.
 But I'm still not sure what kind of mentor would be ok.

 Does the one need to be member of OSM/OSMF or can it be a assistant on my
 local university, too? Need the person to be very skilled in OSM or would be
 general GIS context be ok? Does he need to cover all kind of knowledge to
 things involved (here: Games technologies)?

 thanks for the management!
 Matthias

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] osm2psql windows binary

2011-03-24 Thread Sven Geggus
Christian H. Bruhn br...@arcor.de wrote:

 Could someone please update the Windows binary of osm2psql [1]. The
 file is almost 1 year old and doesn't support pbf.

Well, PBF support has been added, but this is one of the reasons why it is
not that easy anymore to build a full featured osm2psql, even on Linux. If
somebody needs assistance with Debian stable (squeeze) I will be able to
help.

If somebody wants to set up some automatic build of a windows binary using
mingw (prefered) or even cygwin, I will happily provide a shell account on
one of our openstreetmap.de/FOSSGIS Servers to do this.

I suppose for the Windows crowd this would be very useful.

I will however not try to do this myself because I have zero interest in
supporting operating systems which I do not even use.

Sven

P.S.: Thats just the way Open Source worked from the very beginning! You
should not expect anybody to do something _for you_, just _do it yourself_.
If you get into trouble doing it people will usually help.

-- 
The only thing we have to fear is fear itself (Franklin D. Roosevelt)


/me is giggls@ircnet, http://sven.gegg.us/ on the Web

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] osm2psql: minor hstore rework

2011-03-24 Thread Sven Geggus
4YI,

i just commited a small change to the hstore functionality in osm2pqgsl.

Until now any tag has been added to the hstore column regardless if this key
had an exclusive column or not. This has been changed now.

For people who really need all tags in the hstore column an additional
commandline switch has been added to restore the original behaviour (do
these people exist?).

While doing this I also noticed that the special tag z_order has been
added to the hstore column by mistake. It is now hardcoded to ignore
z_order when adding tags to the hstore column.

The rework should not change anything for people who exclusively use a
hstore column (no other tag columns). Peter Körners hstore stuff should also
be unaffected.

Regards

Sven

-- 
Um Kontrolle Ihres Kontos wiederzugewinnen, klicken Sie bitte auf das
Verbindungsgebrüll. (aus einer Ebay fishing Mail)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Version 0.2 of Open Source Routing Machine (OSRM) released

2011-03-24 Thread Dennis Luxen
Hi Folks,

version 0.2 of the Open Source Routing Machine (OSRM) has just been
released. The major improvements since the first release are:

* Improved overall memory consumption by at least 25%
* Much faster I/O thanks to binary intermediate data files
* Start and target can be on arbitrary points of any street segment
* Support for PBF formatted and BZ2 compressed OSM files
* Support for HTTP 1.1 gzip/deflate compression
* Server can be bound to any IP/Port in the system
* many, many bug fixes and many under-the-hood improvements

You can grab the latest code from the website at  or give it a test
drive on the web [2] hosted by our friends at Geofabrik. There is a
wiki, forum and bug-tracker available at the project's website in case
you have any questions and/or bugs.

Thanks to the fine people who contributed to this release.

Best,
Dennis

[1] http://project-osrm.org/
[2] http://routingdemo.geofabrik.de/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[osmosis-dev] Openstreetmap export equivalent osmosis command

2011-03-24 Thread Jesús Francisco
The subject has the question: what is the openstreetmap export to osm
equivalent command string with osmosis.

Example:

 osmosis --rx file=thefile --boundig-box top=the same top at
openstreet left= bottom= right=

This command doesn't make the same results as the export tool from
openstreetmap, based on a big map and boudingboxing an small sector,
the small sector has less streets than the generated by the export
tool. I have teste with completeWays=True and --used-node.

___
osmosis-dev mailing list
osmosis-...@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


[OSM-dev] Osmfilter32 and ghost nodes

2011-03-24 Thread yvecai

Hi,
I'm trying osmfilter to filter out way and relations with a particular tag.
It works well, but there is a lot of 'ghost' nodes remaining after 
filtering. Any ideas from what it's from?


   zcat planet_updated.osm.gz | ./osmfilter32 --drop-nodes | gzip -1
wr.osm.gz
   zcat wr.osm.gz | ./osmfilter32 --drop-ways | gzip -1 r.osm.gz
   zcat lim.gz r.osm.gz wr.osm.gz lim.gz planet_updated.osm.gz |
   ./osmfilter32 -kpiste:type=nordic planet_osmfiltered.osm

After that I have a ton of amenity=parking, restaurants, ...

Yves

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] bug in the help system

2011-03-24 Thread M∡rtin Koppenhoefer
I don't know where to report this, and if someone can do something
about it, (couldn't find it in trac). Just wanted to let you know that
there is a bug in the help system: you can not cancel your vote later
than 1 day after you cast it. This timer should be reset when the
answer is edited.

cheers,
Martin

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] bug in the help system

2011-03-24 Thread Tom Hughes

On 24/03/11 22:52, M∡rtin Koppenhoefer wrote:


I don't know where to report this, and if someone can do something
about it, (couldn't find it in trac). Just wanted to let you know that
there is a bug in the help system: you can not cancel your vote later
than 1 day after you cast it. This timer should be reset when the
answer is edited.


I would think that http://jira.osqa.net/ would be the place ;-)

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [josm-dev] Google Summer of Code

2011-03-24 Thread Jonas Stein
 until 2005-02-11 it is still time to offer a project for Google's summer
 of code. So if anyone has good ideas to offer and/or wants to do
 mentorship for a student in this program, please tell now, so we can do
 the necessary paperwork.

 See also http://www.google-melange.com/

The old Fuzzer Plugin got some freshup. It is called scanaerial now.
It works fine, but it could work fantastic, if someone 
has fun to rewrite the aerea detection algorithm.
The one we use is very slow and dumb. There are much better ones
for this case. 
I think the size of that project is fine for a google summer code project.

https://github.com/jonasstein/scanaerial

Kind regards,

-- 
Jonas Stein n...@jonasstein.de


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev