Re: [OSM-talk] Attempt to make a map of a building floorplan

2008-05-13 Thread Patrick Weber
You will probably have more luck with the following application, which 
does the tile cutting you need:


http://www.casa.ucl.ac.uk/software/googlemapimagecutter.asp

Mapnik is not meant as a tile cutter, but renders data from a XML file, 
so I think it wouldnt be off much use for you.


Cheers
Patrick

Alexander Schwartz wrote:


Hello!

I’m trying to accomplish something and I was hoping someone could 
assist me on this. Basically I have created an isometric 3d render of 
the floor plan of my company’s building. I would like to make a map 
with multiple layers on which users can identify key points, like the 
big conference rooms and bathrooms, etc.


I have this openlayers map set up here - 
http://gtproductions.net/solidworks/TileCache-2.0/


I would like to make it so that I can split the 4096 x 4096 png 
(rendered out from a 3d package) into small blocks so that the map 
doesn’t have to load all the images at once.


I was reading here: 
http://wiki.openstreetmap.org/index.php/Deploying_your_own_Slippy_Map 
that you can use mapnik to do this, but I’m having trouble doing it. I 
am using Windows XP and have tried going through the *“Creating tiles 
using Mapnik and generate_tiles.py” *section but am getting stuck.


I installed postgreSQL and PostGIS in windows using their installers 
and have set up databases. I’m not sure if they’re working because I 
can’t get a test started. One line says “When everything works, use 
generate_tiles.py to create 1000s of tiles in a special hierarchy of 
folders” but it is very vague and I keep getting errors in my 
generate_tiles.py , for example this one:


C:\mapnik-0_5_1\demo\python>c:\Python25\python.exe generate_tiles.py

Traceback (most recent call last):

File "generate_tiles.py", line 108, in 

home = os.environ['C:/map']

File "C:\Python25\lib\os.py", line 435, in __getitem__

return self.data[key.upper()]

KeyError: 'C:/MAP'

I have tried using C:\map and C:/map and there are basically no 
tutorials on how to get this thing going in Windows.


I won’t lie, I’m an artist and not a programmer at all, so this is all 
pretty daunting to me. I would like to just get this thing up and 
running, but would like some advice on how to go about it. I have 
looked into tilecache, openlayers, mapnik, and have gotten mapnik to 
build and run on this windows machine here, but am stuck on how to 
make it split my image up.


If you can offer any assistance or hand-holding, I would greatly 
appreciate it.


-Alex



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
  
begin:vcard
fn:Patrick Weber
n:Weber;Patrick
org:University College London
adr:;;Gower Street;London;;WC1E 6BT;United Kingdom
email;internet:[EMAIL PROTECTED]
title:Engineering Doctorate Student
tel;work:02077185430
tel;cell:07854840450
url:http://www.ucl.ac.uk/cemi
version:2.1
end:vcard

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


[OSM-talk] Attempt to make a map of a building floorplan

2008-05-13 Thread Alexander Schwartz
Hello!

 

I'm trying to accomplish something and I was hoping someone could assist
me on this.  Basically I have created an isometric 3d render of the
floor plan of my company's building. I would like to make a map with
multiple layers on which users can identify key points, like the big
conference rooms and bathrooms, etc.

 

I have this openlayers map set up here -
http://gtproductions.net/solidworks/TileCache-2.0/

 

I would like to make it so that I can split the 4096 x 4096 png
(rendered out from a 3d package) into small blocks so that the map
doesn't have to load all the images at once.  

 

I was reading here:
http://wiki.openstreetmap.org/index.php/Deploying_your_own_Slippy_Map
that you can use mapnik to do this, but I'm having trouble doing it. I
am using Windows XP and have tried going through the "Creating tiles
using Mapnik and generate_tiles.py" section but am getting stuck.

 

I installed postgreSQL and PostGIS in windows using their installers and
have set up databases. I'm not sure if they're working because I can't
get a test started. One line says "When everything works, use
generate_tiles.py to create 1000s of tiles in a special hierarchy of
folders" but it is very vague and I keep getting errors in my
generate_tiles.py , for example this one: 

 

C:\mapnik-0_5_1\demo\python>c:\Python25\python.exe generate_tiles.py

Traceback (most recent call last):

  File "generate_tiles.py", line 108, in 

home = os.environ['C:/map']

  File "C:\Python25\lib\os.py", line 435, in __getitem__

return self.data[key.upper()]

KeyError: 'C:/MAP'

 

 

I have tried using C:\map and C:/map and there are basically no
tutorials on how to get this thing going in Windows.

 

I won't lie, I'm an artist and not a programmer at all, so this is all
pretty daunting to me. I would like to just get this thing up and
running, but would like some advice on how to go about it. I have looked
into tilecache, openlayers, mapnik, and have gotten mapnik to build and
run on this windows machine here, but am stuck on how to make it split
my image up.

 

If you can offer any assistance or hand-holding, I would greatly
appreciate it.

 

-Alex

 

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk