[OSM-dev] Rendering transparent OSM maps using Mapnik

2012-02-03 Thread Ciprian Talaba
Hi,

I have a working installation of Mod_tile + Tirex + Mapnik rendering a
small region. The next step was to create s simpler style without
landuse and with transparent background in order to use this as an
overlay. Currently osm.xml have a map background of #B5D0D0 (assuming
that this is due to the fact that a lot of tiles contain water areas).
The rendered tiles have instead a background of #F1EEE8 so somewhere
this is set, but a search in the original style (and any includes) led
me to nothing.

Have anyone tried to generate transparent tiles with Mapnik. I am
missing something here?

Thanks,
Ciprian

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


Re: [OSM-dev] Rendering transparent OSM maps using Mapnik

2012-02-03 Thread Andrew Harvey
On Fri, Feb 3, 2012 at 7:00 PM, Ciprian Talaba cipriantal...@gmail.com wrote:
 Hi,

 I have a working installation of Mod_tile + Tirex + Mapnik rendering a
 small region. The next step was to create s simpler style without
 landuse and with transparent background in order to use this as an
 overlay. Currently osm.xml have a map background of #B5D0D0 (assuming
 that this is due to the fact that a lot of tiles contain water areas).
 The rendered tiles have instead a background of #F1EEE8 so somewhere
 this is set, but a search in the original style (and any includes) led
 me to nothing.

 Have anyone tried to generate transparent tiles with Mapnik. I am
 missing something here?

I haven't done such by modifying osm.xml, but I have done transparent
tiles/stylesheet for OSM data using mapnik as an independent style.

example http://tianjara.net/osmt.html
stylesheet source https://github.com/andrewharvey/osm-hybrid-carto/

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


Re: [OSM-dev] generate image failed

2012-02-03 Thread Anwar Azulfa
i have granted  /var/run/renderd, my tile_dir to www-data

but still error like that,



2012/2/3 Graham Jones grahamjones...@gmail.com

 It looks like www-data needs write permission on /var/run/renderd?

 Graham

 from my phone

 On 3 Feb 2012 07:37, Anwar Azulfa an...@troyans.net wrote:

 I have reconfigure mod_tile again, then

 when i try to restart apache2, renderd
 then execute renderd -f, image still not found

 this is pieces of output:

 Serif-Bold.ttf
 renderd[18198]: DEBUG: Loading font:
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
 renderd[18198]: DEBUG: Loading font:
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
 renderd[18198]: DEBUG: Loading font:
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
 renderd[18198]: DEBUG: Loading font:
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
 renderd[18198]: DEBUG: Loading font:
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
 renderd[18198]: DEBUG: Loading font:
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
 Running in foreground mode...
 renderd[18198]: Starting stats thread
 renderd[18198]: Failed to open stats file: 2
 renderd[18198]: Failed to open stats file: 2
 renderd[18198]: Failed to open stats file: 2
 renderd[18198]: Failed to open stats file: 2
 renderd[18198]: ERROR: Failed repeatedly to write stats, giving up



 i have grant tiledir to www-data in order to can accessed by webserver.

 this is my /etc/renderd.onf

 *[renderd]*
 *;socketname=/var/run/renderd/renderd.sock*
 *num_threads=4*
 *tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET*
 *stats_file=/var/run/renderd/renderd.stats*
 *
 *
 *[mapnik]*
 *#plugins_dir=/usr/lib/mapnik/input*
 *plugins_dir=/usr/local/lib/mapnik2/input*
 *font_dir=/usr/share/fonts/truetype/ttf-dejavu*
 *font_dir_recurse=1*
 *
 *
 *[default]*
 *URI=/osm_tiles2/*
 *XML=/home/dewirobiatul/src/mapnik-style/osm.xml*
 *;HOST=localhost*

 what should i do to solve this ?


 2012/2/3 Andre Joost andre+jo...@nurfuerspam.de
 
  Am 03.02.2012 04:13, schrieb Anwar Azulfa:
 
 ...

 --
 Regards,
 M.Iftakhul Anwar



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




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


Re: [OSM-dev] Rendering transparent OSM maps using Mapnik

2012-02-03 Thread Frederik Ramm

Ciprian,

On 02/03/2012 09:00 AM, Ciprian Talaba wrote:

Have anyone tried to generate transparent tiles with Mapnik. I am
missing something here?


I have had reports of other people having problems with transparent 
tiles and tirex. I never had the time to investigate but before you 
debug any further you should try generating an image with your style 
using generate_image.py; if that works, and using Tirex doesn't, then we 
really need to get to the bottom of this! If OTOH using 
generate_image.py does the same as Tirex then your problem is somewhere 
else.


Bye
Frederik


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


Re: [OSM-dev] Rendering transparent OSM maps using Mapnik

2012-02-03 Thread Andre Joost

Am 03.02.2012 09:00, schrieb Ciprian Talaba:

Hi,

I have a working installation of Mod_tile + Tirex + Mapnik rendering a
small region. The next step was to create s simpler style without
landuse and with transparent background in order to use this as an
overlay. Currently osm.xml have a map background of #B5D0D0 (assuming
that this is due to the fact that a lot of tiles contain water areas).
The rendered tiles have instead a background of #F1EEE8 so somewhere
this is set, but a search in the original style (and any includes) led
me to nothing.

Have anyone tried to generate transparent tiles with Mapnik. I am
missing something here?



The blue background is replaced by a white background along with the 
coastline rendering. To have transparent tiles, just leave out the 
background-color entry from your style.


HTH,
André Joost



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


Re: [OSM-dev] Rendering transparent OSM maps using Mapnik

2012-02-03 Thread Andre Joost

Am 03.02.2012 09:09, schrieb Andre Joost:


The blue background is replaced by a white background along with the
coastline rendering. To have transparent tiles, just leave out the
background-color entry from your style.


EDIT: And the shapefile-rendering!

Greetings,
ajoessen


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


Re: [OSM-dev] Rendering transparent OSM maps using Mapnik

2012-02-03 Thread Ciprian Talaba
Thanks Andre, commenting out the shapefiles layer seem to fix the problem.

--Ciprian

On Fri, Feb 3, 2012 at 10:22 AM, Andre Joost andre+jo...@nurfuerspam.de wrote:
 Am 03.02.2012 09:09, schrieb Andre Joost:


 The blue background is replaced by a white background along with the
 coastline rendering. To have transparent tiles, just leave out the
 background-color entry from your style.


 EDIT: And the shapefile-rendering!

 Greetings,
 ajoessen



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

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


[OSM-dev] OSM 2 Oracle

2012-02-03 Thread Amir Pourabdollah
Hi group,
Greetings from a new comer to this list. For your information, we have started 
developing OSM-GBhttp://www.osmgb.org.uk/ project.

I need help in converting OSM data into Oracle Spatial (direct, no stop-overs!)
As far as I found so far, the ogr2ogrhttp://www.gdal.org/ogr2ogr.html 
converts to Postgres but does not have Oracle output format. Can this be used 
or adopted for Oracle? Any experience?
Also FME and GoLoader seems to do the conversion straight into Oracle, but I 
have not tried. Any idea?
Again, this Java tool also exists: 
http://www.ciss.de/openstreetmap-oracle-konverter.html has anybody tried this?
Any idea will be a great help.
Thanks,
Amir.

This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate image failed

2012-02-03 Thread Lynn W. Deffenbaugh (Mr)

Or renderd needs to run as user www-data?

Lynn (D) - KJ4ERJ

On 2/3/2012 2:53 AM, Graham Jones wrote:


It looks like www-data needs write permission on /var/run/renderd?

Graham

from my phone

On 3 Feb 2012 07:37, Anwar Azulfa an...@troyans.net 
mailto:an...@troyans.net wrote:


I have reconfigure mod_tile again, then

when i try to restart apache2, renderd
then execute renderd -f, image still not found

this is pieces of output:

Serif-Bold.ttf
renderd[18198]: DEBUG: Loading font: 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
renderd[18198]: DEBUG: Loading font: 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[18198]: DEBUG: Loading font: 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[18198]: DEBUG: Loading font: 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[18198]: DEBUG: Loading font: 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
renderd[18198]: DEBUG: Loading font: 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf

Running in foreground mode...
renderd[18198]: Starting stats thread
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: ERROR: Failed repeatedly to write stats, giving up



i have grant tiledir to www-data in order to can accessed by webserver.

this is my /etc/renderd.onf

*[renderd]*
*;socketname=/var/run/renderd/renderd.sock*
*num_threads=4*
*tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET*
*stats_file=/var/run/renderd/renderd.stats*
*
*
*[mapnik]*
*#plugins_dir=/usr/lib/mapnik/input*
*plugins_dir=/usr/local/lib/mapnik2/input*
*font_dir=/usr/share/fonts/truetype/ttf-dejavu*
*font_dir_recurse=1*
*
*
*[default]*
*URI=/osm_tiles2/*
*XML=/home/dewirobiatul/src/mapnik-style/osm.xml*
*;HOST=localhost*

what should i do to solve this ?


2012/2/3 Andre Joost andre+jo...@nurfuerspam.de 
mailto:andre%2bjo...@nurfuerspam.de


 Am 03.02.2012 04:13, schrieb Anwar Azulfa:

...

--
Regards,
M.Iftakhul Anwar



___
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


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


Re: [OSM-dev] OSM 2 Oracle

2012-02-03 Thread Jukka Rahkonen
Hi,

For sure GDAL/OGR supports Oracle http://gdal.org/ogr/drv_oci.html For new
GDAL versions you will need to install the Oracle plugin
separately. It seems that it is not properly documented in the OCI driver
page. If you use Windows you can download GDAL 1.9.0 and Oracle plugin
installers from http://www.gisinternals.com/sdk/

Once you begin, why not to develop a general OSM driver for GDAL as
possible? It could do about the same as osm2pgsql but instead of a named
target it would convert from osm into ogr simple features. After that
ogr2ogr coud do the rest to any format it supports. Data models do not
suit but we are doing the same with osm2pgsql and Mapnik rendering all the
time.

It may still be worth considering to use osm2pgsql first and convert then
with ogr2ogr from PostGIS into Oracle. Then you would have all the tools
ready. Or then you could tweak osm2pgsql so that it could write directly
into Oracle in addition to PostgreSQL. That is probably not very simple.
If you select that road I would love to see it able to write into
Spatialite as well.

-Jukka Rahkonen-

Amir Pourabdollah wrote:
 Hi group,
 Greetings from a new comer to this list. For your information, we have
started developing OSM-GBhttp://www.osmgb.org.uk/ project.

 I need help in converting OSM data into Oracle Spatial (direct, no
stop-overs!)
 As far as I found so far, the ogr2ogrhttp://www.gdal.org/ogr2ogr.html
converts to Postgres but does not have Oracle output format. Can this be
used or adopted for Oracle? Any experience?
 Also FME and GoLoader seems to do the conversion straight into Oracle,
but
 I have not tried. Any idea?
 Again, this Java tool also exists:
 http://www.ciss.de/openstreetmap-oracle-konverter.html has anybody tried
this?
 Any idea will be a great help.
 Thanks,
 Amir.

 This message and any attachment are intended solely for the addressee
and
 may contain confidential information. If you have received this message
in
 error, please send it back to me, and immediately delete it.   Please do
not use, copy or disclose the information contained in this message or
in
 any attachment.  Any views or opinions expressed by the author of this
email do not necessarily reflect the views of the University of
 Nottingham.

 This message has been checked for viruses but the contents of an attachment
 may still contain software viruses which could damage your computer system:
 you are advised to perform your own checks. Email communications with
the
 University of Nottingham may be monitored as permitted by UK
 legislation.___
 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] OSM 2 Oracle

2012-02-03 Thread Sven Geggus
Jukka Rahkonen jukka.rahko...@latuviitta.fi wrote:

 If you select that road I would love to see it able to write into
 Spatialite as well.

osm2pgsql has not been designed (if designed at all) with various backends
in mind but contains pretty much hardcoded assumptions about the Database in
use. I'm afraid redesigning it in such a way (which would of course be nice)
would grow into a complete rewrite.

The hard thing to do in such a converter are incremental updates and
multipolygon conversion. IMO the two features keeping the people still using
osm2pgsql after all.

I don't know the achitecture of imposm but maybe this one is designed with
multiple backends in mind.

Regards

Sven

-- 
Der normale Bürger ist nicht an der TU Dresden und schreibt auch
nicht mit mutt. (Ulli Kuhnle in de.comp.os.unix.discussion)

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

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


Re: [OSM-dev] OSM 2 Oracle

2012-02-03 Thread Frederik Ramm

Hi,

On 02/03/2012 01:39 PM, Jukka Rahkonen wrote:

Once you begin, why not to develop a general OSM driver for GDAL as
possible? It could do about the same as osm2pgsql but instead of a named
target it would convert from osm into ogr simple features.


Osmium can already write out to OGR so it would be a good starting
point for such an universal converter:

http://blog.jochentopf.com/2011-09-14-ogr-support-for-osmium.html

Osmium is not a polished tool but a library; you will have to write a 
little C++ code to use it. For writing to shape files, there's an option 
of using osmjs where you can specify the mapping from OSM features to 
shape features using Javascript - no C++ or compilation required. 
There's nothing like that for writing to OGR yet though.


Bye
Frederik



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


Re: [OSM-dev] OSM 2 Oracle

2012-02-03 Thread Amir Pourabdollah
Hi,
Let me add that I don't need incremental updates to be converted. Just the 
current map is wanted.
Amir.

-Original Message-
From: Sven Geggus [mailto:li...@fuchsschwanzdomain.de] 
Sent: 03 February 2012 13:18
To: dev@openstreetmap.org
Subject: Re: [OSM-dev] OSM 2 Oracle

Jukka Rahkonen jukka.rahko...@latuviitta.fi wrote:

 If you select that road I would love to see it able to write into
 Spatialite as well.

osm2pgsql has not been designed (if designed at all) with various backends
in mind but contains pretty much hardcoded assumptions about the Database in
use. I'm afraid redesigning it in such a way (which would of course be nice)
would grow into a complete rewrite.

The hard thing to do in such a converter are incremental updates and
multipolygon conversion. IMO the two features keeping the people still using
osm2pgsql after all.

I don't know the achitecture of imposm but maybe this one is designed with
multiple backends in mind.

Regards

Sven

-- 
Der normale Bürger ist nicht an der TU Dresden und schreibt auch
nicht mit mutt. (Ulli Kuhnle in de.comp.os.unix.discussion)

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

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

This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM 2 Oracle

2012-02-03 Thread Oliver Tonnhofer

On 03.02.2012, at 14:17, Sven Geggus wrote:
 The hard thing to do in such a converter are incremental updates and
 multipolygon conversion. IMO the two features keeping the people still using
 osm2pgsql after all.
 
 I don't know the achitecture of imposm but maybe this one is designed with
 multiple backends in mind.


It officially supports PostGIS at the moment, but there are experimental 
backends for CouchDB and SQLite (not SpatialLite). And I guess Oracle or 
SpatialLite is more similar to PostGIS than to CouchDB or SQLite...

Regards,
Oliver

-- 
Oliver Tonnhofer| Omniscale GmbH  Co KG| http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn





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


Re: [OSM-dev] generate image failed

2012-02-03 Thread Graham Jones
Very true.  Should have said thar the user running renderd needs access to
the directory, sorry!

from my phone

On 3 Feb 2012 11:50, Lynn W. Deffenbaugh (Mr) ldeff...@homeside.to
wrote:

 Or renderd needs to run as user www-data?

Lynn (D) - KJ4ERJ



On 2/3/2012 2:53 AM, Graham Jones wrote:

 It looks like www-data needs write permission on /var...

___
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] OSM 2 Oracle

2012-02-03 Thread Greg Troxel

Amir Pourabdollah amir.pourabdol...@nottingham.ac.uk writes:

 I need help in converting OSM data into Oracle Spatial (direct, no 
 stop-overs!)
 As far as I found so far, the
 ogr2ogrhttp://www.gdal.org/ogr2ogr.html converts to Postgres but
 does not have Oracle output format. Can this be used or adopted for
 Oracle? Any experience?
 Also FME and GoLoader seems to do the conversion straight into Oracle,
 but I have not tried. Any idea?
 Again, this Java tool also exists:
 http://www.ciss.de/openstreetmap-oracle-konverter.html has anybody
 tried this?
 Any idea will be a great help.

(It isn't surprising that there would be far worse support for
proprietary databases, as few people are in a position to use them.)

I would guess that the interfaces to Oracle Spatial are not so different
From the postgis interfaces, and that you would be able to extend the
various tools that load into postgis (in support of mapnik rendering)
without extreme effort.

  http://imposm.org/docs/imposm/latest/

  http://wiki.openstreetmap.org/wiki/Osmosis


Are you trying to store the entire dataset in the schema used by the
rails port, or the schema used by mapnik, or a reduced set for your
analysis, or ?


pgpQvoF3rAj1b.pgp
Description: PGP signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM 2 Oracle

2012-02-03 Thread Amir Pourabdollah
For this particular purpose, I don't want to build any mapping service on top 
of the Oracle database. This database will be used to do validation analysis 
and quality measures, using a tool that works with Oracle data only. The 
required set is a reduced one. The minimum set may include id, name, type and 
geometery and some node tags for each layer.
Amir.

From: Greg Troxel [g...@ir.bbn.com]
Sent: 03 February 2012 15:37
To: Amir Pourabdollah
Cc: dev@openstreetmap.org; Jeremy Morley; Tracey Mooney
Subject: Re: [OSM-dev] OSM 2 Oracle

Amir Pourabdollah amir.pourabdol...@nottingham.ac.uk writes:

 I need help in converting OSM data into Oracle Spatial (direct, no 
 stop-overs!)
 As far as I found so far, the
 ogr2ogrhttp://www.gdal.org/ogr2ogr.html converts to Postgres but
 does not have Oracle output format. Can this be used or adopted for
 Oracle? Any experience?
 Also FME and GoLoader seems to do the conversion straight into Oracle,
 but I have not tried. Any idea?
 Again, this Java tool also exists:
 http://www.ciss.de/openstreetmap-oracle-konverter.html has anybody
 tried this?
 Any idea will be a great help.

(It isn't surprising that there would be far worse support for
proprietary databases, as few people are in a position to use them.)

I would guess that the interfaces to Oracle Spatial are not so different
From the postgis interfaces, and that you would be able to extend the
various tools that load into postgis (in support of mapnik rendering)
without extreme effort.

  http://imposm.org/docs/imposm/latest/

  http://wiki.openstreetmap.org/wiki/Osmosis


Are you trying to store the entire dataset in the schema used by the
rails port, or the schema used by mapnik, or a reduced set for your
analysis, or ?
This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev