Re: [osmosis-dev] bound/bounds element in OSM XML

2011-12-20 Thread Igor Podolskiy

Hi Brett,


I just tried to build the branch and received a test failure. You
relaxed the Bound constructor validation checks to allow a null origin,
but this has caused the BoundTest.testConstructor10 test to fail. I'd
just delete the test, but I'm not 100% sure if I've messed up somewhere
because I *think* I built it successfully last night. I'm wondering if
I'm going crazy ;-)
No you aren't :) I indeed forgot to remove that test. And while I was at 
it, I now also found and fixed some code that assumed Bound.origin != 
null. Sorry I didn't get that right the first time.


I updated the xml-bounds branch in my repo, it is now at commit 59b0e54.

Greetings from Stuttgart
Igor

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


Re: [osmosis-dev] bound/bounds element in OSM XML

2011-12-20 Thread Brett Henderson
On 20 December 2011 20:37, Igor Podolskiy
igor.podols...@vwi-stuttgart.dewrote:

 Hi Brett,


  I just tried to build the branch and received a test failure. You
 relaxed the Bound constructor validation checks to allow a null origin,
 but this has caused the BoundTest.testConstructor10 test to fail. I'd
 just delete the test, but I'm not 100% sure if I've messed up somewhere
 because I *think* I built it successfully last night. I'm wondering if
 I'm going crazy ;-)

 No you aren't :) I indeed forgot to remove that test. And while I was at
 it, I now also found and fixed some code that assumed Bound.origin != null.
 Sorry I didn't get that right the first time.

 I updated the xml-bounds branch in my repo, it is now at commit 59b0e54.


It turned out that I hadn't built it last night, I'd only done a build
without running tests.

Cool, that's looking better.

But unfortunately there's another failure now in the apidb code.  I've
setup a job to build from your repo in Jenkins.
http://dev.openstreetmap.de:23457/hudson/job/osmosis-podolsir/

Building from your xml-bounds branch failed.
http://dev.openstreetmap.de:23457/hudson/job/osmosis-podolsir/1/

There's some sort of Locale problem.  I'll look into it when I get a chance
if you don't beat me to it.

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


[OSM-dev] Nominatim Installation problem - nominatim.xml not found

2011-12-20 Thread Anwar Azulfa
Hi All,

I have tried to set up Nominatim on my server.I following raference from
http://wiki.openstreetmap.org/wiki/Nominatim/Installation

I have insert some .sql file into datbase, then copy website/* into
documentRoot of my subdomain folder.
When i access the domain, When i click *search* button, 404 not found

i have checked error log on  /var/log/apache2.log.this is output of the
error :



[Tue Dec 20 14:40:39 2011] [error] [client 118.137.0.31] PHP Notice:  Use
of undefined constant CONST_BulkUserIPs - assumed 'CONST_BulkUserIPs' in
/var/www/public/searc/search.php on line 7

[Tue Dec 20 14:40:39 2011] [error] [client 118.137.0.31] PHP Notice:
Undefined index: PATH_INFO in /var/www/public/search.php on line 64
[Tue Dec 20 14:40:39 2011] [error] [client 118.137.0.31] File does not
exist: /var/www/public/nominatim.xml





What should i do ?

How to solve this issue ?



-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] coastline extracts

2011-12-20 Thread Frederik Ramm

Hi,

On 12/20/11 00:20, Mikel Maron wrote:

Is there anyone publishing coastlines, as Shapefiles? I need one for Haiti.


I've amended the shapefile build rules on labs.geofabrik.de to add a 
coastline.shp to http://labs.geofabrik.de/haiti/latest.shp.zip and 
already re-generated the download - note however this is only a line 
shape, not a polygon shape.


If you need a polygon shape you could probably cut out the area of 
interest from processed_p.shp with ogr2ogr.


Bye
Frederik

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


Re: [OSM-dev] coastline extracts

2011-12-20 Thread Maurizio Napolitano
Did you look this?
http://haitidata.org/

On Tue, Dec 20, 2011 at 00:20, Mikel Maron mikel_ma...@yahoo.com wrote:
 Is there anyone publishing coastlines, as Shapefiles? I need one for Haiti.

 == Mikel Maron ==
 +14152835207 @mikel s:mikelmaron

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




-- 
Maurizio Napo Napolitano
http://de.straba.us

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


[OSM-dev] OverpassAPI get_rule throw 404

2011-12-20 Thread Cyrille Giquello
Hello

OverpassAPI /api/interpreter is well working but /api/get_rule throw 404

http://www.overpass-api.de/api/interpreter
http://www.overpass-api.de/api/getrule

-- 
Cyrille.

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


Re: [OSM-dev] Script for generating stats by region?

2011-12-20 Thread didier2020

hi,

it's in french but nobody is perfect ;-)
http://lists.openstreetmap.org/pipermail/talk-fr/2011-December/038251.html


-- 
didier
--mapeur amateur--

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


Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found

2011-12-20 Thread Mike Dupont
I think the problem is that you are using

http://svn.openstreetmap.org/applications/utils/nominatim
and not
http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer

if i remember correctly, and please someone correct me if I am wrong,
the export/osm2pgsql/gazetteer
is the right one, and the applications/utils/nominatim is not supported.

thanks,
mike

On Tue, Dec 20, 2011 at 9:15 AM, Anwar Azulfa an...@troyans.net wrote:
 nominatim.xml



-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org

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


Re: [OSM-dev] OverpassAPI get_rule throw 404

2011-12-20 Thread Cyrille Giquello
2011/12/20 Cyrille Giquello cyrill...@gmail.com:
 Hello

 OverpassAPI /api/interpreter is well working but /api/get_rule throw 404

 http://www.overpass-api.de/api/interpreter
 http://www.overpass-api.de/api/getrule

oups...
http://www.overpass-api.de/api/get_rule

-- 
Cyrille.

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


Re: [OSM-dev] problem with osmosis to apply changeset to postgresql db

2011-12-20 Thread Brett Henderson
Hi Oon,

On 20 December 2011 03:14, Oon Arfiandwi ro...@ijo.me wrote:

 Hi Frederik,

 I just try to apply osmosis command below,
 the problem is: Caused by: org.postgresql.util.PSQLException: ERROR:
 relation schema_migrations does not exist

 I read a solution about schema_migrations relation here:
 http://forum.openstreetmap.org/viewtopic.php?id=7396

 then I change the command to:
 osmosis --read-xml-change file=asiadiff.osc --write-pgsql-change
 database=gis user=osm password=x host=localhost
 or
 osmosis --read-xml-change file=asiadiff.osc --write-pgsimp-change
 database=gis user=osm password=x host=localhost

 but still no luck,
 I got another exception: org.postgresql.util.PSQLException: ERROR:
 relation schema_info does not exist


 any other references?


How have you created your database?  Specifically, which scripts did you
use to create the database tables?  The OpenStreetMap project has a number
of different incompatible schemas using PostgreSQL PostGIS extensions all
optimised for different purposes.
http://wiki.openstreetmap.org/wiki/List_of_Database_Schemas

If you wish to use the pgsql tasks in Osmosis you will need to use the
pgsnapshot_*.sql scripts from the scripts directory of the Osmosis
distribution.  More details are available here:
http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#PostGIS_Tasks_.28Snapshot_Schema.29

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


Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found

2011-12-20 Thread Anwar Azulfa
Now i have user gazetteer from
http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer

this is my step by step installation which i follow:

1.createdb

2.import sql file

cat /usr/share/postgresql/8.4/contrib/pg_trgm.sql | psql gazetteer
cat /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql | psql
gazetteer
cat /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql |
psql gazetteer

3.load planet data
./osm2pgsql -S default.style --slim -d gazetteer -C 2048
~/AllMap/indonesia.osm.bz2

4.copy lib into /usr/local/share
sudo mkdir /usr/local/share/gazetteer
sudo cp .libs/gazetteer.so /usr/local/share/gazetteer/gazetteer.so

5.add suplementary data

when i import file below to db
 cat import_country_name.sql | psql gazetteer

i get error message like http://pastebin.com/ctQScVhA


Anyone can help me ? or i cannot ignore that error ?


2011/12/20 Mike Dupont jamesmikedup...@googlemail.com

 I think the problem is that you are using

 http://svn.openstreetmap.org/applications/utils/nominatim
 and not
 http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer

 if i remember correctly, and please someone correct me if I am wrong,
 the export/osm2pgsql/gazetteer
 is the right one, and the applications/utils/nominatim is not supported.

 thanks,
 mike

 On Tue, Dec 20, 2011 at 9:15 AM, Anwar Azulfa an...@troyans.net wrote:
  nominatim.xml



 --
 James Michael DuPont
 Member of Free Libre Open Source Software Kosova http://flossk.org




-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] map disappear on YourS local installation

2011-12-20 Thread Anwar Azulfa
I try install yours on my computer, i have followed reference from
http://wiki.openstreetmap.org/wiki/YOURS

But when i access it via browser, i can't found any map.

then i get idea to pointing js to my map on local computer because i have
own local tiles .

I try to change init function on yournavigation.js with :


 function init() {
   var options = {
projection: new OpenLayers.Projection(EPSG:900913),
displayProjection: new OpenLayers.Projection(EPSG:4326),
units: m,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
 20037508.34, 20037508.34),
numZoomLevels: 16,
controls: [
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.Permalink(),
new OpenLayers.Control.ScaleLine(),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.KeyboardDefaults()

  ]
};
myFirstMap = new OpenLayers.Map(map,options);
var newL = new OpenLayers.Layer.OSM(Default, 
http://localhost/osm_tiles3/${z}/${x}/${y}.png;, {numZoomLevels: 19});
map.addLayer(newL);
 if (!map.getCenter()) {
   var center = new OpenLayers.LonLat(116.97,-2.56);
center.transform(options.displayProjection, options.projection);
map.setCenter(center, 5);
 }

  }


But i stil l can't find map on it ?


What should i do to solve this ?


-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found

2011-12-20 Thread Sarah Hoffmann
Hi,

On Wed, Dec 21, 2011 at 06:17:54AM +0700, Anwar Azulfa wrote:
 Now i have user gazetteer from
 http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer
 
 this is my step by step installation which i follow:
 
 1.createdb
 
 2.import sql file
 
 cat /usr/share/postgresql/8.4/contrib/pg_trgm.sql | psql gazetteer
 cat /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql | psql
 gazetteer
 cat /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql |
 psql gazetteer
 
 3.load planet data
 ./osm2pgsql -S default.style --slim -d gazetteer -C 2048
 ~/AllMap/indonesia.osm.bz2
 
 4.copy lib into /usr/local/share
 sudo mkdir /usr/local/share/gazetteer
 sudo cp .libs/gazetteer.so /usr/local/share/gazetteer/gazetteer.so
 
 5.add suplementary data
 
 when i import file below to db
  cat import_country_name.sql | psql gazetteer
 
 i get error message like http://pastebin.com/ctQScVhA

There is currently a bug in osm2pgsql. It forgets to actually commit
your data. I'm trying to get that fixed in svn. 

For the moment, I have a patch attached. Apply it, recompile osm2pgsql and 
redo everything from step 3.

Sarah
Index: output-gazetteer.c
===
--- output-gazetteer.c  (revision 27287)
+++ output-gazetteer.c  (working copy)
@@ -1020,6 +1020,7 @@
 //   Options-mid-iterate_relations( gazetteer_process_relation );
 
/* No longer need to access middle layer */
+   Options-mid-commit();
Options-mid-stop();
 
/* Stop any active copy */

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