[OSM-dev] Minutely diffs.

2013-11-25 Thread Sajjad Anwar
Hello everyone,

I'm trying to setup the OpenStreetMap rails app and the related workflow. I
was wondering how the minutely diffs generated?

I looked up and came across this bit in the Osmosis documentation -
http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.36#--replicate-apidb_.28--repa.29

Are we running Osmosis with --replicate-apidb every minute?

Would love to know more. Thank you.

Cheers,
Sajjad.
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Restarting renderd, mapnik shared object not found.

2013-11-05 Thread Sajjad Anwar
Hello everyone,

I'm following the guide here
http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/
to setup a tile server.

However, when I restart renderd towards the end of the setup (sudo
/etc/init.d/renderd restart), it fails by saying:

/usr/bin/renderd: error while loading shared libraries:
libmapnik.so.2.1: cannot open shared object file: No such file or
directory

I ran a quick search and came across the troubleshoot page here
https://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting#linking-errors,
but that didn't help much.

Interestingly, when I look at my /usr/lib, I see -
libmapnik2.so.2.0, libmapnik.so.2.2.0, libmapnik2.so.2.0.0,
libmapnik.so.2.2 among others and not libmapnik.so.2.1

Does this mean I've got the wrong version? How do I solve this?
Thank you so much.

Sajjad.

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


Re: [OSM-dev] Restarting renderd, mapnik shared object not found.

2013-11-05 Thread Sajjad Anwar
Also, the machine is Ubuntu 13.04.

On Tue, Nov 5, 2013 at 1:31 PM, Sajjad Anwar sajja...@gmail.com wrote:
 Hello everyone,

 I'm following the guide here
 http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/
 to setup a tile server.

 However, when I restart renderd towards the end of the setup (sudo
 /etc/init.d/renderd restart), it fails by saying:

 /usr/bin/renderd: error while loading shared libraries:
 libmapnik.so.2.1: cannot open shared object file: No such file or
 directory

 I ran a quick search and came across the troubleshoot page here
 https://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting#linking-errors,
 but that didn't help much.

 Interestingly, when I look at my /usr/lib, I see -
 libmapnik2.so.2.0, libmapnik.so.2.2.0, libmapnik2.so.2.0.0,
 libmapnik.so.2.2 among others and not libmapnik.so.2.1

 Does this mean I've got the wrong version? How do I solve this?
 Thank you so much.

 Sajjad.



-- 
Sajjad Anwar | W: http://sajjad.in | T: @geohacker

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


Re: [OSM-dev] Adding fonts to OpenStreetMap Server

2013-06-13 Thread Sajjad Anwar
Hello,

On Jun 12, 2013 8:41 PM, gurpinder chahal chahalgurpinde...@gmail.com
wrote:

 I created OpenStreetMap server using packages.
 Now I want to add my  fonts to it.
 What should I do next?

I presume you are running Mapnik? Here are few posts that will help you
have custom fonts:
1. http://weait.com/content/add-fonts-your-openstreetmap-server
2. Or if you want language specific rendering -
http://sajjad.in/2010/05/setting-up-mapnik-for-rendering-tiles-in-your-language/

Cheers,
Sajjad.


 Thanks in advance.

 --
 Gurpinder Kaur Chahal
 Blog: http://chahalgurpinder95.wordpress.com/

 ___
 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] StyleSheet Generator for OSM [GSoC'12]

2012-03-28 Thread Sajjad Anwar
On Sun, Mar 25, 2012 at 5:36 PM, Parveen Arora m...@parveenarora.in wrote:

 Hi All,

 I want to apply for OSM GSoC.
 I am having idea of StyleSheet Generator for OSM, i.e. users can
 create style-sheets of their own choice based upon their own
 preferences and requirements and those stylesheets can be used using
 any renderer.


 Using this maps for Map for visually handicapped can be created
 easily, the one who can't read small fonts or are having color
 blindness, so that maps suitable for them can be easily available.
 This can have many more benefits like any one who wants to show
 particular roads or points on the map can generate the style-sheets
 for that.


If the stylesheet generator have a proper use case like the above, I would
totally vote for it. I wouldn't want to see another stylesheet converter
though.

Also, if you can provide presets for stylesheets and help people to tweak
that in a proper GUI, that would be interesting. But I guess tilemill does
that job right now pretty well.

One more thing is that there is lot of work already has been done to
 set up map tile server that one can easily do that using few commands,
 and that can be more useful applied with stylesheet generator.

 Please let me know If something similar already exist so that I can
 check that and can look for improvements in that if required.

 If there is nothing exist similar, this can be feasible during the
 GSoC time period.

 Please give your valuable suggestions, feedback and improvements or
 anything else that can be done along with this idea.

 Thank You.

 --
 Parveen Arora
 www.parveenarora.in
 E-Mail: m...@parveenarora.in

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




-- 
Sajjad Anwar | W: http://sajjad.in | T: @geohacker
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] helping #switch2osm

2012-01-18 Thread Sajjad Anwar
On Thu, Jan 19, 2012 at 1:23 AM, Roger Weeks ro...@tethr.org wrote:

 Michal Migurski has build this tool, which is pretty close to what I was
 tallking about:

 http://linode.teczno.com/~migurski/tiledrawer/

 It builds a map server for you on an EC2 instance or other machine running
 Ubuntu 11.10. I'm trying it out now, will give more specifics once it's
 done and ready to use.


This looks promising. I'll also give it a shot. TileStache is another
awesome project by Michal Migurski http://tilestache.org/, which is an easy
to use, Python based tile server.

Roger Weeks


 On Wed, Jan 18, 2012 at 11:45 AM, Parveen Arora m...@parveenarora.inwrote:

 On Fri, Jan 13, 2012 at 8:15 PM, Kai Krueger kakrue...@gmail.com wrote:
  We should try and get more of the rendering tool stack into the standard
  repositories of Ubuntu and Feodora. That would probably make it easier
  to install a tile server. There are already a bunch of osm programs in
  the ubuntu repositories (e.g. josm and osm2pgsql, although the later is
  rather old), but programs like mod_tile, renderd and tirex are still
  missing.
 
  I wanted to see if I can do that, but then didn't get around to it. So
  if anyone else wants to try this it would be great. However, to get it
  into the next long term release 12.04, one would probably need to do
  this very soon.
 Hi Kai,

 I am interested to o this task to include it in the Ubuntu repositary,
 moreover we can also provide a add on feature of customised map tiles
 according to the choice of the users rather than the default tiles.

 Please let me know what should I need to do and what should I need to
 know?

 Thank You.


 --
 Parveen Arora
 www.parveenarora.in
 E-Mail: m...@parveenarora.in

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





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




-- 
Sajjad Anwar | W: http://sajjad.in | T: @geohacker
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] helping #switch2osm

2012-01-12 Thread Sajjad Anwar
On Jan 13, 2012 3:37 AM, Mikel Maron mikel_ma...@yahoo.com wrote:

 Hi

 Over the past couple days, I gave some assistance to someone setting up
their own tile infrastructure. They mostly got along on their own,
following http://weait.com/content/build-your-own-openstreetmap-server, and
picking through the wiki, but they definitely could've had an easier time.

 And we should expect more of this soon, and we want this! Nestoria and
StreetEasy switching, the Wired article. Just the beginning.

Yes. The time when people are recognising the power of OSM is here. We
should welcome everyone.

 How do we help folks get their tile servers up and running even easier.
Here's some suggestions we discussed...

 1) Clear instructions, at an easily findable address (outside the wiki,
which is hard to follow) (anyone register switch2osm.com? or tryosm.org).
Should include some description of the different options, with links for
getting into the details ... but at least a clear guide through the well
worn path of setting up a tile server.

 2) A packaged solution, like a chef recipe, to install everything needed.

 3) A VM image for an open source virtualization package, that has
everything installed. May not necessarily be for production, but at least
make it easy to try things out.

 4) 

Might be an overkilling idea, why not some quick screen casts? I guess
videos will be more easier to grasp than guides.

 Would the EWG be the place to get this together?

 Cheers
 Mikel


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

 ___
 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] ./generate_image.py returns error

2010-08-29 Thread Sajjad Anwar
Hi,

I'm trying to setup mapnik again and stuck. This is what I have done so far:

1. Setup the pgsql db named cal_l10n
2. Checked out from Mapnik SVN.
3. Setup Mapnik
4. Ran ./generate_image.py --dbname 'cal_l10n'
This return the following error:

inc/entities.xml.inc:9: parser warning : PEReference: %layers; not found
%layers;
^
Traceback (most recent call last):
  File ./generate_image.py, line 37, in module
mapnik.load_map(m,mapfile)
RuntimeError: XML document not well formed:
Entity 'layer-admin' not defined (encountered in file 'osm.xml' at line
6571)

5. tried re creating the osm.xml file using ./generate_xml.py, but getting
the same error.

What could be wrong?

Regards.
-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in | Twitter:
geohacker
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate_xml.py not generating osm.xml file?

2010-08-27 Thread Sajjad Anwar
Dear Akos,

I think you have misunderstood the purpose of generate_xml.py
generate_xml.py as far as I understand is to prepare the osm dataset (by
default osm.xml) ready for rendering. It fetches the style sheets, symbol
information etc and modifies the dataset to create the new osm.xml

The README coming with mapnik also explains its use.

Regards.

-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in | Twitter:
geohacker
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate_xml.py not generating osm.xml file?

2010-08-27 Thread Sajjad Anwar
Taking the freedom to post the email that skipped the list


From: Ákos Maróy a...@maroy.hu
Date: Fri, Aug 27, 2010 at 7:43 PM
Subject: Re: [OSM-dev] generate_xml.py not generating osm.xml file?
To: Sajjad Anwar sajja...@gmail.com


Sajjad,

 I think you have misunderstood the purpose of generate_xml.py
 generate_xml.py as far as I understand is to prepare the osm dataset (by
 default osm.xml) ready for rendering. It fetches the style sheets,
 symbol information etc and modifies the dataset to create the new osm.xml

 The README coming with mapnik also explains its use.

thanks for the answer.

I did read the README file, but this seems to be a catch-22 here. if it
uses osm.xml itself to generate osm.xml - how do you initially create
the first osm.xml, from the style sheets / templates?


Akos

-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in | Twitter:
geohacker
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate_xml.py not generating osm.xml file?

2010-08-27 Thread Sajjad Anwar
Dear Akos


 I did read the README file, but this seems to be a catch-22 here. if it
 uses osm.xml itself to generate osm.xml - how do you initially create
 the first osm.xml, from the style sheets / templates?

 The osm.xml file is a bit confusing in this scenario. You can see that the
osm.xml file that came along with Mapnik is not the dataset, rather, it
contains certain rules which support the rendering of tiles. You are
actually loading the map data into the pgsql db and asking *
generate_image.py *or*generate_tiles.py *to generate the image or set of
tiles as the case may be.

If you want to make some modifications in the styles and fonts for the
rendering, you could tweak this rule file.
Also note that, Mapnik does not intend you to give the data in xml format,
but it reads the data only from the pgsql database.

The following link contains pointers to setting up Mapnik and basic rules
file modifications
http://sajjad.in/mapping/setting-up-mapnik-for-rendering-tiles-in-your-language/

http://sajjad.in/mapping/setting-up-mapnik-for-rendering-tiles-in-your-language/
Hope
this helps

Cheers
-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in | Twitter:
geohacker
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] GSoC 2010 : OSM Mashup Generator

2010-04-23 Thread Sajjad Anwar
Hi!

This is just to update about my proposal. I'm right now learning RoR and the
OpenLayers API. So far, I have made good progress with understanding the
OpenLayers API and is pretty much sure that, the mashup generator could be
done in RoR.

The initial step would be of letting the user to choose the map to be
embedded. This could achieved through API request.
Please pull in your comments/suggestions on the same!

Thanks!

Regards.

-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] GSoC 2010. OpenStreetMap Mashup Generator Project

2010-03-15 Thread Sajjad Anwar
Glad to hear the responses.

Please also take the possibility into account to draw your yown points,
 lines and shapes onto the map and export them (link to them) into
 various formats.

Drawing lines and shapes on to the map is pretty much possible with
OpenLayers API. So, we can include this feature to the to-do list.


 I could think of some public platform like github, where one can draw
 points on to the map and another one lines and a third person can then
 aggregate the feeds of those two maps into their own map, linking to the
 original sources and receiving updates from them.


This would be interesting. People can share the maps easily with their own
changes being made. But how many?
Let us prioritize the tasks.
I'm right away adding it to the ideas page.

Regards.

-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] GSoC 2010. OpenStreetMap Mashup Generator Project

2010-03-14 Thread Sajjad Anwar
Hi,

I have put forward an idea into the GSoC 2010 wiki page. The link is here
http://wiki.openstreetmap.org/wiki/GSoC_Project_Ideas_2010#OpenStreetMap_Mashup_generator
It is basically to create an easy to use mashup generator based on
OpenLayers API,  to enable people to use OpenStreetMap data in various ways
including presenting on a web page and taking print outs.

I would personally love to take this project forward, if everyone thinks
this is worth developing and feasible. Waiting for comments and suggestions.


Regards.
-- 
Sajjad Anwar | http://geohackers.in | Blog: http://sajjad.in
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev