[Potlatch-dev] [OpenStreetMap] #3492: Switch off GPS data

2011-01-29 Thread OpenStreetMap
#3492: Switch off GPS data
---+
 Reporter:  BennieD|   Owner:  potlatch-dev@…
 Type:  defect |  Status:  new   
 Priority:  minor  |   Milestone:
Component:  potlatch2  | Version:
 Keywords: |  
---+
 Once GPS data was switched on, it cannot be switched off.

-- 
Ticket URL: http://trac.openstreetmap.org/ticket/3492
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

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


Re: [Potlatch-dev] [OpenStreetMap] #3491: Mapstyle in 25171 missing

2011-01-29 Thread OpenStreetMap
#3491: Mapstyle in 25171 missing
---+
 Reporter:  BennieD|   Owner:  potlatch-dev@…
 Type:  defect |  Status:  new   
 Priority:  blocker|   Milestone:
Component:  potlatch2  | Version:
 Keywords:  Mapstyle   |  
---+
Changes (by BennieD):

  * version:  2.0 =


-- 
Ticket URL: http://trac.openstreetmap.org/ticket/3491#comment:1
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

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


[Potlatch-dev] [OpenStreetMap] #3494: Simple Mode reports Not recognised for most if not all existing tags.

2011-01-29 Thread OpenStreetMap
#3494: Simple Mode reports Not recognised for most if not all existing tags.
-+--
 Reporter:  johng|   Owner:  potlatch-dev@… 
   
 Type:  defect   |  Status:  new
   
 Priority:  minor|   Milestone: 
   
Component:  potlatch2| Version: 
   
 Keywords:  Simple Not recognised  |  
-+--
 This problem has started in the last 24h or so approx 28/1/2011. Tags are
 not recognised in simple mode. The tag details can only be viewed in
 Advanced mode.

 These are not faulty tags as the same is true for drag-and-drop tags newly
 created. Immediately after drag-and-drop the simple mode works, however
 when clicking on the tag later the Not recognised Try looking at the tags
 under the advanced properties message shows.

-- 
Ticket URL: http://trac.openstreetmap.org/ticket/3494
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

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


Re: [Potlatch-dev] [OpenStreetMap] #3486: Relation member list - more info

2011-01-29 Thread OpenStreetMap
#3486: Relation member list - more info
--+-
 Reporter:  Richard Mann  |   Owner:  potlatch-dev@…
 Type:  enhancement   |  Status:  new   
 Priority:  minor |   Milestone:
Component:  potlatch2 | Version:
 Keywords:|  
--+-

Comment(by Richard Mann):

 It would also be really helpful if there was a chain-link icon (or
 similar) that appeared next to a member when/if it shares an end node with
 the previous member. This would give a basic check that members of the
 relation are continuous and ordered.

-- 
Ticket URL: http://trac.openstreetmap.org/ticket/3486#comment:1
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

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


Re: [Potlatch-dev] [OpenStreetMap] #3492: Switch off GPS data

2011-01-29 Thread OpenStreetMap
#3492: Switch off GPS data
-+--
 Reporter:  BennieD  |   Owner:  potlatch-dev@…
 Type:  enhancement  |  Status:  new   
 Priority:  minor|   Milestone:
Component:  potlatch2| Version:
 Keywords:   |  
-+--

Comment(by BennieD):

 Replying to [comment:1 Richard]:
  Yes, it can: see http://help.openstreetmap.org/questions/2338/turn-off-
 gps-traces-in-potlatch-2 . A simpler way to switch it off will be added at
 some point.
 OK, found it , thanks.
 Never thought to look there.
 Neither http://help.openstreetmap.org/questions/2338/turn-off-gps-traces-
 in-potlatch-2, nor Background - vector file...
 A note in Help would make the need for a simpler way less urgent.
 Great work.

-- 
Ticket URL: http://trac.openstreetmap.org/ticket/3492#comment:2
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

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


[OSM-dev] Xapi-servlet deployement in Tomcat

2011-01-29 Thread yvecai

I have trouble to deploy xapi-servlet in Tomcat 6, on ubuntu 10.04.

I compiled a xapi-servlet.war from instruction in 
https://github.com/iandees/xapi-servlet/blob/master/readme.md, copy it 
to a freshly installed Tomcat directory /var/lib/tomcat6/webapps/ and 
restarted Tomcat.


The servlet is deployed with no error in the logfiles, however, when I 
access 
http://localhost:8080/xapi-servlet/api/0.6/way[highway=unclassified], I 
have a 'class not found exception' :


java.lang.ClassNotFoundException: com.yellowbkpk.geo.xapi.servlet.XapiServlet

Also, I can access http://localhost:8080/xapi-servlet/ but not 
http://localhost:8080/xapi-servlet/WEB-INF/index.html


Is there a manual config to do that I missed?

Yves

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


Re: [OSM-dev] Xapi alternative

2011-01-29 Thread Maarten Deen

Mitja Kleider wrote:
 Hi Antoine,

 On Fri, 28 Jan 2011 16:11:11 +0100, Antoine Pichon
 antoine.p...@gmail.com wrote:
 I am building an application that needs to access osm poi database. Ex
 : Extract all the banks (or any orther amenity)  of a given area. I
 didn't find this possibility (amenity filtering) in basic API but only
 in xapi

 1/ is there any other possibility instead of xapi to do that ?

 Andy already mentioned the new XAPI implementation.

 Last summer I wrote a POI API [1]. The wiki pages should contain setup
 information and query examples. If you have questions, feel free to
 ask.

 There is a (weak) demonstration server with data covering a tiny area
 at [2]. You probably want to do something like [3] or [4].


 [1] http://wiki.openstreetmap.org/wiki/POI_tools
 [2] http://78.47.225.27/
 [3]
 
http://78.47.225.27/static/examples/map.html?key=amenityvalue=bankzoom=15lat=51.53318lon=9.93624lang=en

 [4]
 
http://78.47.225.27/static/examples/list.html?type=relationosm_id=191361key=amenityvalue=banklang=en


Can you elaborate on how to do bbox queries with this?

Regards,
Maarten

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


[OSM-dev] Potlatch2 - ways all unrecognised?

2011-01-29 Thread Colin Smale

Hi,

I'm not sure if this is the best place to ask this; if not please accept 
my apologies...


I have been using Potlatch2 for several weeks now without serious 
hassles. Since yesterday however it can't recognise a way. What I mean 
by that, is that when you select a way (of any type) it always says it's 
not recognised and doesn't show the information appropriate to the 
type of way. If I switch to Advanced view, all the tags are there, but 
I don't dare to edit anything. Nodes (e.g. POIs) work fine.


I have tried different browsers (I normally use Chrome; I tried Firefox 
and IE8), restarted my computer and cleared out browser caches.


Has anyone got any idea what I can do to fix this?

Thanks in advance for any tips!

Colin

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


Re: [OSM-dev] Patch to osm2pgsql for faster updates

2011-01-29 Thread Frederik Ramm

Hi,

Erik Burrows wrote:

This is almost the exact same data set, same hardware, and same tile
set. 37 minutes for PG 8.4, and 87 minutes for 9.0. I ran the test
twice!


[...]


I don't have an explanation. All I can think of to try to debug is to
set log statement duration=0, and use mapnik_tiles.py to trace each
command, and compare the times. I'll do this over the next day or so.


Any news on this? Have you used the same PostGIS version with PG8.4 and 9.0?

Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

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


Re: [OSM-dev] Potlatch2 - ways all unrecognised?

2011-01-29 Thread Richard Fairhurst

Colin Smale wrote:
 I have been using Potlatch2 for several weeks now without serious 
 hassles. Since yesterday however it can't recognise a way.

We think there's a bug and are looking into it.

cheers
Richard


-- 
View this message in context: 
http://gis.638310.n2.nabble.com/Potlatch2-ways-all-unrecognised-tp5972359p5972467.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

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


Re: [OSM-dev] Potlatch2 - ways all unrecognised?

2011-01-29 Thread Eugene Alvin Villar
There's definitely something off somewhere. I could not use Potlatch 2
for editing since last night.


On Sat, Jan 29, 2011 at 7:21 PM, Richard Fairhurst rich...@systemed.net wrote:

 Colin Smale wrote:
 I have been using Potlatch2 for several weeks now without serious
 hassles. Since yesterday however it can't recognise a way.

 We think there's a bug and are looking into it.

 cheers
 Richard


 --
 View this message in context: 
 http://gis.638310.n2.nabble.com/Potlatch2-ways-all-unrecognised-tp5972359p5972467.html
 Sent from the Developer Discussion mailing list archive at Nabble.com.

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


Re: [OSM-dev] Potlatch2 - ways all unrecognised?

2011-01-29 Thread Richard Fairhurst

Eugene Alvin Villar wrote:
 There's definitely something off somewhere. I could not use Potlatch 2
 for editing since last night.

Yes, like I say, we know.

cheers
Richard


-- 
View this message in context: 
http://gis.638310.n2.nabble.com/Potlatch2-ways-all-unrecognised-tp5972359p5972491.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

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


Re: [OSM-dev] Xapi alternative

2011-01-29 Thread Maarten Deen

Mitja, your From: mi...@kleider.name is malformed.


 On Sat, 29 Jan 2011 10:46:12 +0100, Maarten Deen md...@xs4all.nl
 wrote:
 Can you elaborate on how to do bbox queries with this?


 Like this:

 
http://78.47.225.27/tag/amenity/bank/all/ids.json?bbox=9.7190434375091,51.496178170005,10.15849656249,51.565057661413


 Please note that the data on that server is only covering a small area.

Then I've found a small bug for you
This works fine: 
http://78.47.225.27/tag/amenity/bank/all/ids.json?bbox=9.7,51.496178170005,10.15849656249,51.565057661413


But this does not: 
http://78.47.225.27/tag/amenity/bank/all/ids.json?bbox=9,51.496178170005,10.15849656249,51.565057661413


Apparently the parser can not cope with lat/lon figures without a decimal.

Is there also a possibility to get output as an osm file?

Regards,
Maarten

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


Re: [OSM-dev] Potlatch2 - ways all unrecognised?

2011-01-29 Thread Colin Smale

It is fixed now, in v25177. Thanks!

Colin

On 29/01/2011 12:21, Richard Fairhurst wrote:

Colin Smale wrote:

I have been using Potlatch2 for several weeks now without serious
hassles. Since yesterday however it can't recognise a way.

We think there's a bug and are looking into it.

cheers
Richard





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


Re: [OSM-dev] Xapi-servlet deployement in Tomcat

2011-01-29 Thread Ian Dees
I'm not very clear on how to deploy servlets. I used tomcat6 and Ubuntu
10.04, too, but I deployed the war via the tomcat6-admin servlet that is
installed as a separate package. It offers a deploy section where you can
specify the path to the war and the context to deploy the war in. When I use
that it seems to work well.

On Sat, Jan 29, 2011 at 2:44 AM, yvecai yve...@gmail.com wrote:

 I have trouble to deploy xapi-servlet in Tomcat 6, on ubuntu 10.04.

 I compiled a xapi-servlet.war from instruction in
 https://github.com/iandees/xapi-servlet/blob/master/readme.md, copy it to
 a freshly installed Tomcat directory /var/lib/tomcat6/webapps/ and restarted
 Tomcat.

 The servlet is deployed with no error in the logfiles, however, when I
 access
 http://localhost:8080/xapi-servlet/api/0.6/way[highway=unclassified]http://localhost:8080/xapi-servlet/api/0.6/way%5Bhighway=unclassified%5D,
 I have a 'class not found exception' :

 java.lang.ClassNotFoundException:
 com.yellowbkpk.geo.xapi.servlet.XapiServlet

 Also, I can access http://localhost:8080/xapi-servlet/ but not
 http://localhost:8080/xapi-servlet/WEB-INF/index.html

 Is there a manual config to do that I missed?

 Yves

 ___
 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] Potlatch2 - ways all unrecognised?

2011-01-29 Thread Gregory
On 29 January 2011 11:26, Eugene Alvin Villar sea...@gmail.com wrote:

 There's definitely something off somewhere. I could not use Potlatch 2
 for editing since last night.

I've never been able to bring myself to use Potlatch, but I don't think
that's the same bug.
/trolling

-- 
Gregory
o...@livingwithdragons.com
http://www.livingwithdragons.com
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Xapi-servlet deployement in Tomcat

2011-01-29 Thread yvecai

I did that too, but no cigar.
What is the context you used?

Yves

On 29. 01. 11 15:07, Ian Dees wrote:
I'm not very clear on how to deploy servlets. I used tomcat6 and 
Ubuntu 10.04, too, but I deployed the war via the tomcat6-admin 
servlet that is installed as a separate package. It offers a deploy 
section where you can specify the path to the war and the context to 
deploy the war in. When I use that it seems to work well.


On Sat, Jan 29, 2011 at 2:44 AM, yvecai yve...@gmail.com 
mailto:yve...@gmail.com wrote:


I have trouble to deploy xapi-servlet in Tomcat 6, on ubuntu 10.04.

I compiled a xapi-servlet.war from instruction in
https://github.com/iandees/xapi-servlet/blob/master/readme.md,
copy it to a freshly installed Tomcat directory
/var/lib/tomcat6/webapps/ and restarted Tomcat.

The servlet is deployed with no error in the logfiles, however,
when I access
http://localhost:8080/xapi-servlet/api/0.6/way[highway=unclassified]
http://localhost:8080/xapi-servlet/api/0.6/way%5Bhighway=unclassified%5D,
I have a 'class not found exception' :

java.lang.ClassNotFoundException:
com.yellowbkpk.geo.xapi.servlet.XapiServlet

Also, I can access http://localhost:8080/xapi-servlet/ but not
http://localhost:8080/xapi-servlet/WEB-INF/index.html

Is there a manual config to do that I missed?

Yves

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




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


[OSM-dev] Error While Installing osm2pgsql

2011-01-29 Thread Parveen Arora
Hello Dear List,
I have followed the following procedure to install osm2pgsql
cd ~/bin
svn co http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/
cd osm2pgsql
./autogen.sh
./configure
make
But after make command I got the following error:

make  all-recursive
make[1]: Entering directory `/home/parveen/bin/osm2pgsql'
Making all in gazetteer
make[2]: Entering directory `/home/parveen/bin/osm2pgsql/gazetteer'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql/gazetteer'
make[2]: Entering directory `/home/parveen/bin/osm2pgsql'
g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql
-I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include
-DOSM2PGSQL_DATADIR='/usr/local/share'   -g -O2 -MT build_geometry.o
-MD -MP -MF .deps/build_geometry.Tpo -c -o build_geometry.o
build_geometry.cpp
In file included from build_geometry.cpp:37:
/usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
geos/noding/SegmentString.h: No such file or directory
In file included from build_geometry.cpp:37:
/usr/include/geos/geom/prep/PreparedPolygon.h:51: error:
‘geos::noding::SegmentString’ has not been declared
/usr/include/geos/geom/prep/PreparedPolygon.h:51: error: expected ‘;’
before ‘segStrings’
make[2]: *** [build_geometry.o] Error 1
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/parveen/bin/osm2pgsql'
make: *** [all] Error 2


What this error indicates and what should I do now?
Thank's in advance.

-- 
With Kind Regards
Parveen Arora
www.parveenarora.in

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


Re: [OSM-dev] Error While Installing osm2pgsql

2011-01-29 Thread strk
On Sat, Jan 29, 2011 at 10:09:04PM +0530, Parveen Arora wrote:

 make[2]: Entering directory `/home/parveen/bin/osm2pgsql'
 g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql
 -I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include
 -DOSM2PGSQL_DATADIR='/usr/local/share'   -g -O2 -MT build_geometry.o
 -MD -MP -MF .deps/build_geometry.Tpo -c -o build_geometry.o
 build_geometry.cpp
 In file included from build_geometry.cpp:37:
 /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
 geos/noding/SegmentString.h: No such file or directory

Which version of GEOS do you have ?

-- strk;

  ()   Free GIS  Flash consultant/developer
  /\   http://strk.keybit.net/services.html

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


Re: [OSM-dev] Error While Installing osm2pgsql

2011-01-29 Thread Patrick Kilian
Hi all,

 make[2]: Entering directory `/home/parveen/bin/osm2pgsql'
 g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql
 -I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include
 -DOSM2PGSQL_DATADIR='/usr/local/share'   -g -O2 -MT build_geometry.o
 -MD -MP -MF .deps/build_geometry.Tpo -c -o build_geometry.o
 build_geometry.cpp
 In file included from build_geometry.cpp:37:
 /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
 geos/noding/SegmentString.h: No such file or directory
 
 Which version of GEOS do you have ?
There was a similar report on IRC this week. That user could only
convince osm2pgsql to build using libgeos 3.2. Version 3.1 did not work
although the source could says that 3.1 should have prepared geometries
and should work. I wonder if this is related to r25070.


HTH,
Patrick Petschge Kilian

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


Re: [OSM-dev] Error While Installing osm2pgsql

2011-01-29 Thread Parveen Arora
On Sat, Jan 29, 2011 at 10:31 PM, strk s...@keybit.net wrote:
 On Sat, Jan 29, 2011 at 10:27:31PM +0530, Parveen Arora wrote:
 On Sat, Jan 29, 2011 at 10:16 PM, strk s...@keybit.net wrote:
  On Sat, Jan 29, 2011 at 10:09:04PM +0530, Parveen Arora wrote:
 
  make[2]: Entering directory `/home/parveen/bin/osm2pgsql'
  g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql
  -I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include
  -DOSM2PGSQL_DATADIR='/usr/local/share'   -g -O2 -MT build_geometry.o
  -MD -MP -MF .deps/build_geometry.Tpo -c -o build_geometry.o
  build_geometry.cpp
  In file included from build_geometry.cpp:37:
  /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
  geos/noding/SegmentString.h: No such file or directory
 
  Which version of GEOS do you have ?

 I am following this
 http://weait.com/content/build-your-own-openstreetmap-server tutorial.
 I think I have not installed any GEOS yet.

 You must have, or you wouldn't have
 /usr/include/geos/geom/prep/PreparedPolygon.h either.

 Maybe is partial or otherwise corrupted install.

I have removed the error thank's for your Information.
My system needs to be install following dependencies
$ sudo apt-get install build-essential libxml2-dev libgeos-dev
libpq-dev libbz2-dev proj

Now Its ok.
Thank you very much
-- 
With Kind Regards
Parveen Arora

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


Re: [OSM-dev] Xapi alternative

2011-01-29 Thread Mitja Kleider
 On Sat, 29 Jan 2011 10:46:12 +0100, Maarten Deen md...@xs4all.nl
 wrote:
 Can you elaborate on how to do bbox queries with this?

 Like this:

 http://78.47.225.27/tag/amenity/bank/all/ids.json?bbox=9.7190434375091,51.496178170005,10.15849656249,51.565057661413

 Please note that the data on that server is only covering a small area.
 
 Then I've found a small bug for you
[...]
 Apparently the parser can not cope with lat/lon figures without a decimal.

Thanks, this is now fixed on the demonstration server.


 Is there also a possibility to get output as an osm file?

OSM output is not yet implemented. You could add it by modifying [1]
from line 100 to 159.

[1]
http://gitorious.org/osm-poi-tools/server/blobs/master/list/views.py#line100



Mitja

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


[OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread Parveen Arora
I have osm2pgsql Installed
I am trying following to load planet file
$cd ~/bin/osm2pgsql
$./osm2pgsql -S default.style --slim -d gis -C 2048
~/planet/planet-100217.osm.bz2

But the Error is:
bash: ./osm2pgsql: No such file or directory

I really don't have any osm2pgsql file, but there is default.style
file in osm2pgsql folder.
What should I do to run above command?

-- 
With Kind Regards
Parveen Arora

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


Re: [OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread Graham Jones
Parveen,
It sounds as though you have not compiled osm2pgsql?

I don't know which operating system you are using, so I would suggest going
through the instructions at http://wiki.openstreetmap.org/wiki/Osm2pgsql.
It has always compiled easily for me on my Ubuntu based machines.

Regards

Graham.

On 29 January 2011 18:37, Parveen Arora parveenarora...@gmail.com wrote:

 I have osm2pgsql Installed
 I am trying following to load planet file
 $cd ~/bin/osm2pgsql
 $./osm2pgsql -S default.style --slim -d gis -C 2048
 ~/planet/planet-100217.osm.bz2

 But the Error is:
 bash: ./osm2pgsql: No such file or directory

 I really don't have any osm2pgsql file, but there is default.style
 file in osm2pgsql folder.
 What should I do to run above command?

 --
 With Kind Regards
 Parveen Arora

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




-- 
Graham Jones
Hartlepool, UK.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread Parveen Arora
On Sun, Jan 30, 2011 at 12:16 AM, Graham Jones grahamjones...@gmail.com wrote:
 Parveen,
 It sounds as though you have not compiled osm2pgsql?
 I don't know which operating system you are using, so I would suggest going
 through the instructions at http://wiki.openstreetmap.org/wiki/Osm2pgsql.
 It has always compiled easily for me on my Ubuntu based machines.
Yes I am also using Ubuntu10.04
I had compiled osm2pgsql, and It was also successful
But now I once again tried to compile it, and It is also giving the
same problem as it was previously giving.
Error during compilation is:

make
make  all-recursive
make[1]: Entering directory `/home/parveen/bin/osm2pgsql'
Making all in gazetteer
make[2]: Entering directory `/home/parveen/bin/osm2pgsql/gazetteer'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql/gazetteer'
make[2]: Entering directory `/home/parveen/bin/osm2pgsql'
g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql
-I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include
-DOSM2PGSQL_DATADIR='/usr/local/share'   -O2 -march=native
-fomit-frame-pointer -MT build_geometry.o -MD -MP -MF
.deps/build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp
In file included from build_geometry.cpp:37:
/usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
geos/noding/SegmentString.h: No such file or directory
In file included from build_geometry.cpp:37:
/usr/include/geos/geom/prep/PreparedPolygon.h:51: error:
‘geos::noding::SegmentString’ has not been declared
/usr/include/geos/geom/prep/PreparedPolygon.h:51: error: expected ‘;’
before ‘segStrings’
make[2]: *** [build_geometry.o] Error 1
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/parveen/bin/osm2pgsql'
make: *** [all] Error 2


-- 
With Kind Regards
Parveen Arora
www.parveenarora.in

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


Re: [OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread Graham Jones
Parveen,
Sounds odd - on my Ubuntu 10.10 system the missing file is there
(/usr/include/geos/noding/SegmentString.h), but I have another machine that
runs Ubuntu 10.04 and sure enough /usr/include/geos does not include a
'noding' directory, so this sounds like it should have the same problem as
yours).
I assume that this is a difference in the libgeos version (10.10 uses
libgeos 3.2.0, but 10.04 has libgeos 3.1.0).

But I have compiled osm2pgsql on it before - in fact I have just re-compiled
it now to check.
I wonder if it is an issue with the version of osm2pgsql - the one I have
just re-compiled successfully is old-ish (svn revision 20565 from March
2010).

That version did not have any fancy autotools configuration - just a
Makefile - it might be worth trying that unless you need a more recent
version.

Note that I use osm2pgsql as a 'black box', so someone that knows more about
it may be able to shed more light on this!

Graham.

On 29 January 2011 18:58, Parveen Arora parveenarora...@gmail.com wrote:

 On Sun, Jan 30, 2011 at 12:16 AM, Graham Jones grahamjones...@gmail.com
 wrote:
  Parveen,
  It sounds as though you have not compiled osm2pgsql?
  I don't know which operating system you are using, so I would suggest
 going
  through the instructions at http://wiki.openstreetmap.org/wiki/Osm2pgsql
 .
  It has always compiled easily for me on my Ubuntu based machines.
 Yes I am also using Ubuntu10.04
 I had compiled osm2pgsql, and It was also successful
 But now I once again tried to compile it, and It is also giving the
 same problem as it was previously giving.
 Error during compilation is:

 make
 make  all-recursive
 make[1]: Entering directory `/home/parveen/bin/osm2pgsql'
 Making all in gazetteer
 make[2]: Entering directory `/home/parveen/bin/osm2pgsql/gazetteer'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/home/parveen/bin/osm2pgsql/gazetteer'
 make[2]: Entering directory `/home/parveen/bin/osm2pgsql'
 g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql
 -I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include
 -DOSM2PGSQL_DATADIR='/usr/local/share'   -O2 -march=native
 -fomit-frame-pointer -MT build_geometry.o -MD -MP -MF
 .deps/build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp
 In file included from build_geometry.cpp:37:
 /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
 geos/noding/SegmentString.h: No such file or directory
 In file included from build_geometry.cpp:37:
 /usr/include/geos/geom/prep/PreparedPolygon.h:51: error:
 ‘geos::noding::SegmentString’ has not been declared
 /usr/include/geos/geom/prep/PreparedPolygon.h:51: error: expected ‘;’
 before ‘segStrings’
 make[2]: *** [build_geometry.o] Error 1
 make[2]: Leaving directory `/home/parveen/bin/osm2pgsql'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/parveen/bin/osm2pgsql'
 make: *** [all] Error 2


 --
 With Kind Regards
 Parveen Arora
 www.parveenarora.in




-- 
Graham Jones
Hartlepool, UK.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Error While Installing osm2pgsql

2011-01-29 Thread Frederik Ramm

Hi,

Parveen Arora wrote:

In file included from build_geometry.cpp:37:
/usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
geos/noding/SegmentString.h: No such file or directory


This is due to geos packages on a number of Ubuntu releases (I *think* 
it is jaunty, karmic, and lucid) being broken. (There may be breakage on 
Debian as well but I've only witnessed on Ubuntu.)


For example, the above file is not included in the geos-dev package in 
jaunty:


$ dpkg -L libgeos-dev|grep SegmentString
$

but if you apt-get source geos-dev, then sure enough

$ find geos-3.0.0 -name SegmentString.h
geos-3.0.0/source/headers/geos/noding/SegmentString.h
$

i.e. these files are not copied into the geos-dev package. You can fix 
the problem by copying them from the source manually, or put them into 
your osm2pgsql directory and modify the include path.


Newest Ubuntu release, maverick, does not have the problem.

This did not affect osm2pgsql until recently, but the change that works 
with prepared statements brought it on.


Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

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


Re: [OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread Parveen Arora
On Sun, Jan 30, 2011 at 12:49 AM, Graham Jones grahamjones...@gmail.com wrote:
 Parveen,
 Sounds odd - on my Ubuntu 10.10 system the missing file is there
 (/usr/include/geos/noding/SegmentString.h),
the same file is also missing here, should I get it from 10.10 now?
because I am using 10.04 now

 but I have another machine that
 runs Ubuntu 10.04 and sure enough /usr/include/geos does not include a
 'noding' directory, so this sounds like it should have the same problem as
 yours).
Yes here also there is no noding directory in that path

 I assume that this is a difference in the libgeos version (10.10 uses
 libgeos 3.2.0, but 10.04 has libgeos 3.1.0).
 But I have compiled osm2pgsql on it before - in fact I have just re-compiled
 it now to check.
 I wonder if it is an issue with the version of osm2pgsql - the one I have
 just re-compiled successfully is old-ish (svn revision 20565 from March
 2010).
Should I also compile older version now?





-- 
With Kind Regards
Parveen Arora

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


Re: [OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread H.S.Rai
On Sun, Jan 30, 2011 at 12:07 AM, Parveen Arora
parveenarora...@gmail.com wrote:

 $./osm2pgsql -S default.style --slim -d gis -C 2048
 ~/planet/planet-100217.osm.bz2

Try without ./

 But the Error is:
 bash: ./osm2pgsql: No such file or directory

 I really don't have any osm2pgsql file, but there is default.style
 file in osm2pgsql folder.

It may be at /usr/bin/osm2pgsql

--
H.S.Rai

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


Re: [OSM-dev] Error While Installing osm2pgsql

2011-01-29 Thread Parveen Arora
On Sun, Jan 30, 2011 at 1:02 AM, Frederik Ramm frede...@remote.org wrote:
 Hi,

 Parveen Arora wrote:

 In file included from build_geometry.cpp:37:
 /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:
 geos/noding/SegmentString.h: No such file or directory

 This is due to geos packages on a number of Ubuntu releases (I *think* it is
 jaunty, karmic, and lucid) being broken. (There may be breakage on Debian as
 well but I've only witnessed on Ubuntu.)

 For example, the above file is not included in the geos-dev package in
 jaunty:

 $ dpkg -L libgeos-dev|grep SegmentString
 $

 but if you apt-get source geos-dev, then sure enough

 $ find geos-3.0.0 -name SegmentString.h
 geos-3.0.0/source/headers/geos/noding/SegmentString.h
I have tried to compile the geos-3.0.0 version, but this is also giving error:
DoubleBits.cpp: In static member function 'static double
geos::index::quadtree::DoubleBits::powerOf2(int)':
DoubleBits.cpp:51: error: 'memcpy' was not declared in this scope
DoubleBits.cpp: In constructor
'geos::index::quadtree::DoubleBits::DoubleBits(double)':
DoubleBits.cpp:94: error: 'memcpy' was not declared in this scope
make[3]: *** [DoubleBits.lo] Error 1
make[3]: Leaving directory `/home/parveen/geos-3.0.0/source/index/quadtree'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/parveen/geos-3.0.0/source/index'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/parveen/geos-3.0.0/source'
make: *** [all-recursive] Error 1

but I got SegmentString.h at following path
~/geos-3.0.0/source/headers/geos/noding#


 i.e. these files are not copied into the geos-dev package. You can fix the
 problem by copying them from the source manually, or put them into your
 osm2pgsql directory and modify the include path.
I have put that SegmentString.h into osm2pgsql folder

and this time it shows at end is:
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql'
make[1]: Leaving directory `/home/parveen/bin/osm2pgsql'



-- 
With Kind Regards
Parveen Arora

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


Re: [OSM-dev] Planet file not loading to osm2pgsql

2011-01-29 Thread Parveen Arora
On Sun, Jan 30, 2011 at 8:39 AM, H.S.Rai hardeep@gmail.com wrote:
 On Sun, Jan 30, 2011 at 12:07 AM, Parveen Arora
 parveenarora...@gmail.com wrote:

 $./osm2pgsql -S default.style --slim -d gis -C 2048
 ~/planet/planet-100217.osm.bz2

 Try without ./
It has worked with using ./
I have compiled geos-3.0.0 the older version and copied the necessary
files to newer one.
It has been start loading

-- 
With Kind Regards
Parveen Arora

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


Re: [OSM-dev] [HOT] Sistema de proyección oficial colombia en #josm #java #sig

2011-01-29 Thread Juan Pizarro
Estimados,

Existe un port para proj4, Java Map Projection Library[2].
podemos desarrollar un plugin basado en [1], el cual utiliza la librería
nombrada, pero con la posibilidad de ingresar la proyección a mano, o
tener una lista de proyecciones probadas.
Saludos

Exist a port to proj4, Java Map Projection Library[2].
We could develop a plugin based on [1], this is a josm projection plugin
using [2], but with the posibility to setting the projection code by
hand, or to have a list of tested projection.
Bye

[1]
http://svn.openstreetmap.org/applications/editors/josm/plugins/epsg31287/
[2] http://sourceforge.net/projects/jmapprojlib/

El sáb, 29-01-2011 a las 15:42 -0500, ouɐɯnH escribió:

 hola maperxs
 
 necesitamos que alguien con conocimeinto de java y sig nos ayude con
 la construcción de una clase de java que funcione como plug-in en JOSM
 para el manejo de los sistemas de coodenadas oficiales de Colombia[1]
 al estilo de [0]
 
 Esta es una tarea sumamente importante ya que si lo logramos muchas
 personas e instituciones podrían hacer directamente su cartografía en
 JOSm sin necesidad de conversión lo que facilitaria los aportes a OSM
 
 salu2
 Humano
 
 [0] 
 http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/data/projection/TransverseMercator.java
 [1] http://spatialreference.org/ref/epsg/?search=colombiasrtext=Search
 
 Referencia
 EPSG:3114: MAGNA-SIRGAS / Colombia Far West zone
 EPSG:3115: MAGNA-SIRGAS / Colombia West zone
 EPSG:3116: MAGNA-SIRGAS / Colombia Bogota zone
 EPSG:3117: MAGNA-SIRGAS / Colombia East Central zone
 EPSG:3118: MAGNA-SIRGAS / Colombia East zone
 EPSG:21891: Bogota 1975 / Colombia West zone
 EPSG:21892: Bogota 1975 / Colombia Bogota zone
 EPSG:21893: Bogota 1975 / Colombia East Central zone
 EPSG:21894: Bogota 1975 / Colombia East
 EPSG:21896: Bogota 1975 / Colombia West zone
 EPSG:21897: Bogota 1975 / Colombia Bogota zone
 EPSG:21898: Bogota 1975 / Colombia East Central zone
 EPSG:21899: Bogota 1975 / Colombia East
 
 --
 Por favor, no me envíe documentos con extensiones .doc, .docx, .xls,
 .xlsx, .ppt, .pptx, .mdb, mdbx
 OpenOffice es libre: se puede copiar, modificar y redistribuir
 libremente. Gratis y totalmente legal.
 http://GaleNUx.com es el sistema de información para la salud
 --///--
 Teléfono USA:  (347) 688-4473 (Google voice)
 skype: llamarafredyrivera
 
 
 


-- 

Juan Pizarro
doingIT Ltda.
10 Oriente N°1887
Talca
  Tel: +56 71 230476
 Mob: +56 9 75891972
 E-Mail: jpiza...@doingit.cl


Soluciones Informáticas
-
OpenStreetMap.org: El Mapa Libre del Mundo 
droid.cl: Comunidad Chilena del sistema operativo Android
attachment: l_firma.png___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] generate_xml.py is not running

2011-01-29 Thread Parveen Arora
To render the map I have tried to run genrate_xml.py with following command
$./generate_xml.py --dbname gis --user parveen --accept-none

but the error is:
Usage: generate_xml.py [template xml] [output xml] parameters

Full help:
 $ generate_xml.py -h (or --help for possible options)

Read 'osm.xml' and print resulting xml to stdout:
 $ generate_xml.py osm.xml

Read template, save output xml, and pass variables as options
 $ generate_xml.py osm.xml my_osm.xml --dbname spain --user postgres --host ''

generate_xml.py: error: The 'inc' path you gave is bogus!

I think their is some problem in the command i am running

How to use it correctly?

-- 
With Kind Regards
Parveen Arora
www.parveenarora.in

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


[josm-dev] JUnit HTML report

2011-01-29 Thread Marcin Floryan

Hi!

I've been contributing to JOSM a couple of years ago and now found some 
more time to work on the project.


I was thinking of looking into unit tests a little bit and extend the 
coverage. Are there any guidelines around unit testing, what's the 
general approach? Do people feel adding more test coverage will be 
valuable for the project?


I also added HTML reports for Junit to the build (as an optional task 
as it may require some dependencies for ant) but since my old SVN 
password doesn't seem to work, I'm attaching it as a patch here.


Finally, I've played with code coverage a little bit and have managed 
to generate a sample coverage report:

http://mfloryan.statnet.pl/josm-test-coverage/

I already have another ant task for generating it automatically but it 
requires cubertura as a dependency so I'm not including it yet. (It 
would be fairly easy though to use maven to fetch these dependencies 
automatically during build without a need to including them in SVN).


Regards,
Marcin
Index: build.xml
===
--- build.xml	(revision 3790)
+++ build.xml	(working copy)
@@ -186,6 +186,16 @@
 		/junit
 	/target
 
+target name=test-html depends=test description=Generate HTML test reports
+!-- May require additional ant dependencies like ant-trax package --
+junitreport todir=${test.dir}/report
+fileset dir=${test.dir}/report
+include name=TEST-*.xml/
+/fileset
+report todir=${test.dir}/report/html/
+/junitreport
+/target
+
 	target name=dist-optimized depends=dist
 		taskdef resource=proguard/ant/task.properties classpath=tools/proguard.jar /
 		proguard
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JUnit HTML report

2011-01-29 Thread Dirk Stöcker

On Sat, 29 Jan 2011, Marcin Floryan wrote:

I was thinking of looking into unit tests a little bit and extend the 
coverage. Are there any guidelines around unit testing, what's the general 
approach? Do people feel adding more test coverage will be valuable for the 
project?


I personaly don't use unit testing at all. :-)

I also added HTML reports for Junit to the build (as an optional task as it 
may require some dependencies for ant) but since my old SVN password doesn't 
seem to work, I'm attaching it as a patch here.


Please creat tickets in Trac. Patches here very likely will be overlooked. 
In the past I removed unknown and inactive accounts. Maybe yours was one 
of them. If you become active again and provide patches, you get a 
brand new one :-)


Ciao
--
http://www.dstoecker.eu/ (PGP key available)


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


Re: [josm-dev] Fwd: Filter Google from Imagery?

2011-01-29 Thread Anthony
On Fri, Jan 28, 2011 at 1:23 PM, Richard Welty rwe...@averillpark.net wrote:
 On 1/28/11 12:03 PM, Anthony wrote:

 Although, frankly, I've always thought the OSMF ban was more of a
 don't-ask-don't-tell one.  And I guess now that my contributions are
 going to be deleted anyway I can come clean.  I've been tracing from
 Google maps for pretty much the entire time I've been contributing,
 and it hasn't hurt anyone.

 consider this scenario:

 Google decides that open mapquest based on osm contributors
 tracing from Google imagery is an issue.

 they decided to sue in the US, and name the OSMF US organization
 (of which i am a board member) as a party to the suit (it's normal
 practice to name lots of people/organizations to such suits.

 OSMF US hasn't purchased insurance to cover directors (maybe we
 should, i'm going to get it on the agenda for the next board meeting).

 as a result of the suit, as a director of a named party, i lose my house.

 now has that hurt anyone?

 something to think about.

Something for *you* to think about maybe, if you think it's something
possible.  Personally I think it's absurd.

I said it hasn't hurt anyone.  I never said there isn't an impossible
scenario that anyone can imagine where someone might get hurt.  If we
want to invent imaginary scenarios, I'm sure I can invent one where my
*not* using Google imagery leads to someone getting hurt or dying.

On Fri, Jan 28, 2011 at 1:26 PM, Frederik Ramm frede...@remote.org wrote:
 Then let's set up a second build process, somewhere outside of
 openstreetmap.{de|org}, where someone who is interested in a non-OSM version
 of JOSM can build releases to his heart's content and distribute them.
 Releases that do not talk to the OSM server preferably, and releases that
 *if* they talk to the OSM server, clearly identify themselves. OSMF could
 then decide to block those releases from accessing the API at any time if
 they so desire.

It sounds to me like Dirk has said he wants JOSM to be a tool which
works with any server that speaks the API, not just openstreetmap.org.
 This makes sense, since the software allows people to change the API.

So, I'd say that any software specific to openstreetmap.org should be
the special build.  If you want to make a compile-time option speak
only to openstreetmap.org, that sounds like a better (and, much
simpler to implement) solution compared to building software which is
specific to OSMF and then hacking on support for other servers in a
special build.

 In fact I would be very happy if someone from outside OSM - one of the
 much-talked-about non-OSM users of JOSM - would set up this build process.
 I'll happily help them prepare the patches that get rid of tile
 blacklisting.

At this point the patch is simple.  Just don't upgrade to the new
version with your change.  But as time goes on it's just going to get
more and more difficult.

In any case, whether the crippled version of JOSM is the default or
the special build, it would be best implemented as a build-time or
user-hidden run-time option, than as a separate codebase.

In C syntax, #define CRIPPLE_TO_ONLY_WORK_WITH_OSMF 0/1.

I'm really not interested in wasting my time learning how to build
JOSM, but if it comes to that I guess I could do so.

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


Re: [josm-dev] JUnit HTML report

2011-01-29 Thread Sebastian Klein

Marcin Floryan wrote:

Hi!

I've been contributing to JOSM a couple of years ago and now found some 
more time to work on the project.


I was thinking of looking into unit tests a little bit and extend the 
coverage. Are there any guidelines around unit testing, what's the 
general approach? Do people feel adding more test coverage will be 
valuable for the project?


Yes, more tests would be good. Jiri has a Hudson/Jenkins job to check 
the tests regularly. (Not sure it is still running.) If you detect any 
bugs, let us know.


Generally our user base is big enough to find serious problems in hot 
code, but complicated things like JoinArea, Conflict handling / Merge 
Layer would benefit from tests.
For validator: If there are false positives, we will get bug reports 
very soon, but if a validation test is turned off by accident, it would 
be good to have a unit test raise an alarm.


I also added HTML reports for Junit to the build (as an optional task as 
it may require some dependencies for ant) but since my old SVN password 
doesn't seem to work, I'm attaching it as a patch here.


Applied it in [3829].

Finally, I've played with code coverage a little bit and have managed to 
generate a sample coverage report:

http://mfloryan.statnet.pl/josm-test-coverage/


I don't think that coverage is important, but I would concentrate on the 
classes that would benefit the most from unit testing.


Sebastian

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