Andreas Weller | 1 Apr 2009 02:08
Picon
Favicon

[OSM-dev] generate shapefiles

Hi!
How do I generate an ESRI shapefile from the OSM data?
I wish to supply a polygon or rectangle and get back the shapefile for
that area...

Is there any script I can use for this?

Thanks and
Regards,
  Andreas Weller
Iván Sánchez Ortega | 1 Apr 2009 02:16
X-Face
Face
Picon
Favicon
Gravatar

Re: [OSM-dev] generate shapefiles

El Miércoles, 1 de Abril de 2009, Andreas Weller escribió:
> Hi!
> How do I generate an ESRI shapefile from the OSM data?
> I wish to supply a polygon or rectangle and get back the shapefile for
> that area...

> Is there any script I can use for this?

http://trac.openstreetmap.org/browser/applications/utils/export/osm2shp

--

-- 
----------------------------------
Iván Sánchez Ortega <ivan <at> sanchezortega.es>

Don't let your mind wander -- it's too little to be let out alone.
_______________________________________________
dev mailing list
dev <at> openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
Frederik Ramm | 1 Apr 2009 02:33
Favicon

Re: [OSM-dev] generate shapefiles

Hi,

Andreas Weller wrote:
> How do I generate an ESRI shapefile from the OSM data?
> I wish to supply a polygon or rectangle and get back the shapefile for
> that area...

There is no service that does that for you. You have to download the OSM 
data - either a small section through the Export tab or a large section 
through OSMXAPI or by getting an exerpt from somewhere - and then run 
software on it.

The c++ program has already been mentioned. There's also a ruby 
implementation (see the "Export" section on http://osmlib.rubyforge.org/).

You can download ready-made shapefiles for certain areas from 
download.cloudmade.com (lots of countries) or download.geofabrik.de 
(some continents, some countries, and some administrative subdivisions 
in .fr,.uk,.de). Both providers use different structures and select 
different features for their shapefiles.

Bye
Frederik

--

-- 
Frederik Ramm  ##  eMail frederik <at> remote.org  ##  N49°00'09" E008°23'33"
Ævar Arnfjörð Bjarmason | 1 Apr 2009 11:32
Picon
Gravatar

[OSM-dev] Adding support for relations to change_tags.py and other stuff

(CC-ing to OSM-dev in case anyone else finds this interesting)

Background: I've been looking for some sort of XML-SAX-like engine to
do massive changes to OSM data so that I can do mass-edits without
writing all the tedious parsing/upload/diff logic myself.

change_tags.py looks perfect for this with a few caveats, some of
which have patches & suggestions for:

Firstly it doesn't handle relations, in the attached patch I've
implemented support for this which seems to work, except:

* The Nodes/Ways/Relations count doesn't seem to work.

This appears to be due to some race condition in the XML parser I
can't find, if I change the counting code around line 300 to this:

        if name in ['node', 'way', 'relation', 'tag']:
            if name == 'relation':
                print "Read relation"
            self.read[name] += 1

And run this command:

PYTHONPATH=. python
~/src/osm/applications/utils/change_tags/change_tags.py --dry-run
--verbose --check-api --file Iceland.osm  --module iceland --function
test
Nodes: 259621/0, Ways: 5288/0, Relations: 0/0, 0 complete
Read relation
(Continue reading)

Grant Slater | 1 Apr 2009 11:37

API + Licensing Update

SteveC has posted 2 import updates rolled into 1.
http://www.opengeodata.org/?p=459

Shaun McDonald has also just announced the launch of "Crap-O-Surface 
Detector" with OSM smoothness tag support.
http://blog.shaunmcdonald.me.uk/2009/04/the-crap-o-surface-detector/

Any other important April 1st announcements I miss?

/ Grant
Brett Henderson | 1 Apr 2009 12:29
Gravatar

Re: [OSM-dev] 0.6 on PostgreSQL

Thanks Shaun/Matt, I didn't get to try it out today but will do so as 
soon as I can.

Shaun McDonald wrote:
> Hi Brett,
>
> I'm starting to write up the instructions for postgres at
> http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/postgres
>
> The adapter I'm using is postgresql
>
> I now have the automated builder using the postgres database:
> http://cruise.shaunmcdonald.me.uk/builds/api06-postgres
>
> This is running at the same time as the MySQL automated builder, so 
> that we can make sure that all tests pass on both MySQL and postgres 
> all the time.
>
> Shaun
Ævar Arnfjörð Bjarmason | 1 Apr 2009 13:18
Picon
Gravatar

Re: [OSM-dev] Adding support for relations to change_tags.py and other stuff

On Wed, Apr 1, 2009 at 9:32 AM, Ævar Arnfjörð Bjarmason
<avarab <at> gmail.com> wrote:
> * I haven't
* "I haven't tried to upload anything with these changes"

_______________________________________________
dev mailing list
dev <at> openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
Christopher Schmidt | 1 Apr 2009 13:36

Re: [OSM-dev] Adding support for relations to change_tags.py and other stuff

On Wed, Apr 01, 2009 at 09:32:01AM +0000, Ævar Arnfjörð Bjarmason wrote:
> (CC-ing to OSM-dev in case anyone else finds this interesting)
> 
> Background: I've been looking for some sort of XML-SAX-like engine to
> do massive changes to OSM data so that I can do mass-edits without
> writing all the tedious parsing/upload/diff logic myself.
> 
> change_tags.py looks perfect for this with a few caveats, some of
> which have patches & suggestions for:
> 
> Firstly it doesn't handle relations, in the attached patch I've
> implemented support for this which seems to work, except:
> 
> * The Nodes/Ways/Relations count doesn't seem to work.
> 
> This appears to be due to some race condition in the XML parser I
> can't find, if I change the counting code around line 300 to this:
> 
>         if name in ['node', 'way', 'relation', 'tag']:
>             if name == 'relation':
>                 print "Read relation"
>             self.read[name] += 1
> 
> And run this command:
> 
> PYTHONPATH=. python
> ~/src/osm/applications/utils/change_tags/change_tags.py --dry-run
> --verbose --check-api --file Iceland.osm  --module iceland --function
> test
> Nodes: 259621/0, Ways: 5288/0, Relations: 0/0, 0 complete
(Continue reading)

Iulian Banaga | 1 Apr 2009 13:50
Picon

[OSM-dev] GSOC 2009 - Android navigation application

Hello,

My name is Iulian Banaga and I am interested in applying to GSOC 2009 for an OSM project. I have been working on an Android navigation application that will use OSM data for 3-4 months now, and I am preparing my bachelor thesis using this application. When I started the development I have a quick look other the existing routing applications for OSM and how they are using the data, render the map and calculate the route.

At that time I thought that one of the best solutions to do all of these  tasks is Navit. I studied the application in more detail and I choose o
use the same model for data. I had to write my own converter from OSM format to my own binary format. The next step was to start to understand how to use the OpenGL features that are already present in Android framework. In this moment the rendering is almost demoable, and I was able to see some results even on real devices like the OMAP Zoom II Development platforms and the port of  Android on HTC Tytn II.

Right now I am starting on the routing part and I am ready to  incorporate some ideas from Navit. Besides that I believe I will have to use some ideas presented in Gosmore and TravelerSalesman.

It will be very nice if I will be accepted for GSOC 2009, as this application will definitely get finished in time as I will sustain my  bachelor thesis in late June. I am waiting for any ideas on the routing  engine as this is the part that will be most wanted by the end users and also the part that will probably require the most time to be able to get results in a reasonable time on a mobile device.

Best regards,
Iulian
_______________________________________________
dev mailing list
dev <at> openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
marcus.wolschon | 1 Apr 2009 15:05
Gravatar

Re: [OSM-dev] GSOC 2009 - Android navigation application


Hello Iulian!

On Wed, 1 Apr 2009 07:50:19 -0400, Iulian Banaga <iulian.banaga <at> gmail.com>
wrote:
> At that time I thought that one of the best solutions to do all of these
> tasks is Navit.

Wasn't Android Java-only or is there support for applications in C?

> I studied the application in more detail and I choose o
> use the same model for data. I had to write my own converter from OSM
> format
> to my own binary format.

What was your motivation to use your own binary format?

Did you look at OsmBin?
What was the shortcommint in Navit's format?

> Right now I am starting on the routing part and I am ready to 
incorporate
> some ideas from Navit. Besides that I believe I will have to use some
ideas
> presented in Gosmore and TravelerSalesman.

Can you elaborate on this some more?
What ideas do you want to combine?

> It will be very nice if I will be accepted for GSOC 2009, as this
> application will definitely get finished in time as I will sustain my
> bachelor thesis in late June. I am waiting for any ideas on the routing
> engine as this is the part that will be most wanted by the end users and
> also the part that will probably require the most time to be able to get
> results in a reasonable time on a mobile device.

Marcus

Gmane