13.07.2015 Views

CERN Building and Map Interface via WWW and on the Palm

CERN Building and Map Interface via WWW and on the Palm

CERN Building and Map Interface via WWW and on the Palm

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<str<strong>on</strong>g>CERN</str<strong>on</strong>g> <str<strong>on</strong>g>Building</str<strong>on</strong>g> <str<strong>on</strong>g>and</str<strong>on</strong>g> <str<strong>on</strong>g>Map</str<strong>on</strong>g> <str<strong>on</strong>g>Interface</str<strong>on</strong>g><str<strong>on</strong>g>via</str<strong>on</strong>g><str<strong>on</strong>g>WWW</str<strong>on</strong>g><str<strong>on</strong>g>and</str<strong>on</strong>g><strong>on</strong><strong>the</strong><strong>Palm</strong>Mark Dönszelmann<str<strong>on</strong>g>CERN</str<strong>on</strong>g>CH-1211 Geneva 23Switzerl<str<strong>on</strong>g>and</str<strong>on</strong>g>Mark.D<strong>on</strong>szelmann@cern.chPéter Jurcsó<str<strong>on</strong>g>CERN</str<strong>on</strong>g>CH-1211 Geneva 23Switzerl<str<strong>on</strong>g>and</str<strong>on</strong>g>Peter.Jurcso@cern.chABSTRACT<str<strong>on</strong>g>CERN</str<strong>on</strong>g> is <strong>on</strong>e of <strong>the</strong> major laboratories in High Energy Physics.It c<strong>on</strong>sists of two large sites <str<strong>on</strong>g>and</str<strong>on</strong>g> several smaller <strong>on</strong>es.Unfortunately <str<strong>on</strong>g>CERN</str<strong>on</strong>g>’s buildings are chr<strong>on</strong>o-chaoticallynumbered. They are <strong>the</strong>refore most of <strong>the</strong> time hard to findwithout a map <str<strong>on</strong>g>and</str<strong>on</strong>g> index.A <str<strong>on</strong>g>WWW</str<strong>on</strong>g> browser can be used to retrieve <strong>the</strong> locati<strong>on</strong> of abuilding by name or number. A set of electr<strong>on</strong>ic maps c<strong>on</strong>taining<strong>the</strong> different <str<strong>on</strong>g>CERN</str<strong>on</strong>g> sites are available in PostScript format.These maps are used to build a database of <strong>the</strong> locati<strong>on</strong>s of <strong>the</strong>buildings which toge<strong>the</strong>r with <strong>the</strong> maps are accessed by someCGI scripts to provide <strong>the</strong> browser with a set of GIF bitmapimages. These images show <strong>the</strong> full <str<strong>on</strong>g>CERN</str<strong>on</strong>g> site, <strong>the</strong> site of <strong>the</strong>requested building <str<strong>on</strong>g>and</str<strong>on</strong>g> an enlargement of <strong>the</strong> exact locati<strong>on</strong> of<strong>the</strong> building.A <strong>Palm</strong> applicati<strong>on</strong> can be used to access <strong>the</strong>se same maps. Inthis applicati<strong>on</strong> <strong>the</strong> maps are stored <strong>on</strong> <strong>the</strong> <strong>Palm</strong> <str<strong>on</strong>g>and</str<strong>on</strong>g> are drawn<strong>on</strong> request in real time. The user is thus able to lookup buildings<str<strong>on</strong>g>and</str<strong>on</strong>g> to interactively scale <str<strong>on</strong>g>and</str<strong>on</strong>g> translate <strong>the</strong> resulting picture. Theapplicati<strong>on</strong> is written in Java to provide portability in future too<strong>the</strong>r h<str<strong>on</strong>g>and</str<strong>on</strong>g>-held devices.locati<strong>on</strong> of <strong>the</strong> detailed map <strong>on</strong> a site map, <str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>the</strong> locati<strong>on</strong> of <strong>the</strong>site map <strong>on</strong> <strong>the</strong> <str<strong>on</strong>g>CERN</str<strong>on</strong>g> map, see figure 2.Thegenerati<strong>on</strong>of<strong>the</strong>mapGIFimageisd<strong>on</strong>ebyusing<strong>the</strong>PostScript map files as input for GhostScript[3] to zoom in <strong>on</strong> <strong>the</strong>detail, translate <str<strong>on</strong>g>and</str<strong>on</strong>g> crop <strong>the</strong> resulting picture. The NetPBMpackage[4] is used to add targets <str<strong>on</strong>g>and</str<strong>on</strong>g> squares <strong>on</strong> <strong>the</strong> resultingmaps, to glue <strong>the</strong> maps toge<strong>the</strong>r <str<strong>on</strong>g>and</str<strong>on</strong>g> to c<strong>on</strong>vert <strong>the</strong>m finally into<strong>on</strong>e GIF file. The <strong>on</strong>-<strong>the</strong>-fly producti<strong>on</strong> of a GIF currently takesa few sec<strong>on</strong>ds.The database is produced offline with a c<strong>on</strong>verter program. Itscans multiple PostScript map files for text entries <str<strong>on</strong>g>and</str<strong>on</strong>g> builds adatabase file to lookup text against maps <str<strong>on</strong>g>and</str<strong>on</strong>g> coordinates. GIFsfor buildings can be produced offline <str<strong>on</strong>g>and</str<strong>on</strong>g> cached for fastretrieval.Keywords<str<strong>on</strong>g>Map</str<strong>on</strong>g>s; <str<strong>on</strong>g>Building</str<strong>on</strong>g>s; PERL; CGI; Java; kvm; <strong>Palm</strong>; <strong>Palm</strong>OS;1 BUILDINGS AND MAPS<str<strong>on</strong>g>CERN</str<strong>on</strong>g> has more than ten sites c<strong>on</strong>taining over 500 buildings.These buildings were often numbered <strong>on</strong> an ad-hoc basis[1]. Tofind your way around <strong>the</strong> chr<strong>on</strong>o-chaotically numbered buildingsat <str<strong>on</strong>g>CERN</str<strong>on</strong>g> you need a map <str<strong>on</strong>g>and</str<strong>on</strong>g> an index. Apart from hardcopies,<strong>on</strong>line access <str<strong>on</strong>g>via</str<strong>on</strong>g> <strong>the</strong> web (http://www.cern.ch/building) usinga web browser <str<strong>on</strong>g>and</str<strong>on</strong>g> offline access to <strong>the</strong> maps using a <strong>Palm</strong>[2](http://www.cern.ch/palm-applicati<strong>on</strong>s) have been madeavailable. Both Web <str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>Palm</strong> interfaces use several maps,drawn up in PostScript, as <strong>the</strong>ir source of informati<strong>on</strong>. <str<strong>on</strong>g>Building</str<strong>on</strong>g>locati<strong>on</strong>s <str<strong>on</strong>g>and</str<strong>on</strong>g> detailed maps are all derived from a single source.2 THE WEB INTERFACEThe Web interface is based <strong>on</strong> a st<str<strong>on</strong>g>and</str<strong>on</strong>g>ard Web browser being ableto show images in GIF format <str<strong>on</strong>g>and</str<strong>on</strong>g> a set of CGI-scripts. A webform allows <strong>the</strong> user to lookup a building by name or number, seefigure 1. The building locati<strong>on</strong> is searched for in a coordinatedatabase, using a CGI-script. This database is extracted offlinefrom <strong>the</strong> original PostScript map. The result of <strong>the</strong> lookup is anHTML file c<strong>on</strong>taining a reference to a GIF. This referencec<strong>on</strong>tains enough informati<strong>on</strong> for ano<strong>the</strong>r CGI-script to produce<strong>the</strong> map of that building. The CGI-script generates this GIFshowing <strong>the</strong> locati<strong>on</strong> of <strong>the</strong> building <strong>on</strong> a detailed map, <strong>the</strong>Figure 1: The initial building lookup form for <strong>the</strong> <str<strong>on</strong>g>Building</str<strong>on</strong>g>interface <str<strong>on</strong>g>via</str<strong>on</strong>g> <str<strong>on</strong>g>WWW</str<strong>on</strong>g>, showing an overview map of <str<strong>on</strong>g>CERN</str<strong>on</strong>g>.3 THE PALM INTERFACEThe <str<strong>on</strong>g>CERN</str<strong>on</strong>g> maps are also available <strong>on</strong> <strong>the</strong> <strong>Palm</strong>, see figure 3. The<strong>Palm</strong> keeps all <strong>the</strong> PostScript maps, pre-c<strong>on</strong>verted, in memory<str<strong>on</strong>g>and</str<strong>on</strong>g> is able to draw, scale <str<strong>on</strong>g>and</str<strong>on</strong>g> translate <strong>the</strong>m interactively. Thedrawing program <str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>the</strong> c<strong>on</strong>verter are both implemented in <strong>the</strong>Java language for portability reas<strong>on</strong>s. The drawing program runsusing <strong>the</strong> kvm[5], an implementati<strong>on</strong> of <strong>the</strong> Java Micro Editi<strong>on</strong><strong>on</strong> <strong>the</strong> <strong>Palm</strong>.


All PostScript maps run through an offline c<strong>on</strong>verter whichbuilds a compressed database for <strong>the</strong> <strong>Palm</strong>. This databasec<strong>on</strong>tains building names <str<strong>on</strong>g>and</str<strong>on</strong>g> numbers, coordinates of <strong>the</strong>irlocati<strong>on</strong> <str<strong>on</strong>g>and</str<strong>on</strong>g> all maps in <strong>the</strong> form of vectors, split up in severallayers.A GUI program provides different panels to display maps, to dolookups <str<strong>on</strong>g>and</str<strong>on</strong>g> to h<str<strong>on</strong>g>and</str<strong>on</strong>g>le user interacti<strong>on</strong>. It also h<str<strong>on</strong>g>and</str<strong>on</strong>g>les <strong>the</strong>decoding of <strong>the</strong> database format. A search through <strong>the</strong> buildingnumbers allows for fast access to any building’s locati<strong>on</strong>. Ac<strong>on</strong>venti<strong>on</strong>al graphics engine draws vectors <str<strong>on</strong>g>and</str<strong>on</strong>g> text straight outof <strong>the</strong> database.4 C<strong>on</strong>clusi<strong>on</strong>sChoosing PostScript as our single <str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>on</strong>ly source of informati<strong>on</strong>for<strong>the</strong><str<strong>on</strong>g>CERN</str<strong>on</strong>g>mapshasproventobeveryeasytomaintain<str<strong>on</strong>g>and</str<strong>on</strong>g>keep up to date. O<strong>the</strong>r large sites or floor plans of libraries <str<strong>on</strong>g>and</str<strong>on</strong>g>computer centres could use <strong>the</strong> same interfaces for access from<strong>the</strong> Web or <strong>on</strong> <strong>the</strong> <strong>Palm</strong>. The Web interface has been available forsome time now <str<strong>on</strong>g>and</str<strong>on</strong>g> has proven its usefulness, while <strong>the</strong> Java<strong>Palm</strong> interface was <strong>on</strong>ly recently added.REFERENCES[1] <str<strong>on</strong>g>CERN</str<strong>on</strong>g>, “What’s <strong>the</strong> logic?”, Bulletin <str<strong>on</strong>g>CERN</str<strong>on</strong>g>, 50/96.[2] <strong>Palm</strong> Computing, “<strong>Palm</strong> C<strong>on</strong>nected Organizer”, 1999.http://www.palm.com/[3] L. Peter Deutsch, “GhostScript, GhostView <str<strong>on</strong>g>and</str<strong>on</strong>g> GSView”,Aladdin Enterprises, 1999.http://www.cs.wisc.edu/~ghost/index.html[4] Jef Poskanzer, “PBMPlus <str<strong>on</strong>g>and</str<strong>on</strong>g> NetPBM package”, 1994.ftp://wuarchive.wustl.edu/graphics/graphics/packages/NetPBM/[5] Sun Microsystems, “The K Virtual Machine (KVM)”, SunMicrosystems, 1999.http://www.javasoft.com/products/kvm/wp/KVMwp.pdfFigure 2: The result of <strong>the</strong> lookup, showing detailedinformati<strong>on</strong> of building 500, its locati<strong>on</strong> <strong>on</strong> <strong>the</strong> Meyrin site<str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>the</strong> locati<strong>on</strong> of <strong>the</strong> Meyrin site within <str<strong>on</strong>g>CERN</str<strong>on</strong>g>.Figure 3: The <str<strong>on</strong>g>Building</str<strong>on</strong>g> <str<strong>on</strong>g>and</str<strong>on</strong>g> <str<strong>on</strong>g>Map</str<strong>on</strong>g> interface <strong>on</strong> a <strong>Palm</strong> V. On <strong>the</strong> left <strong>the</strong> initial screen showing <strong>the</strong> <str<strong>on</strong>g>CERN</str<strong>on</strong>g> site, in <strong>the</strong> middle <strong>the</strong>lookup screen, <str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>on</strong> <strong>the</strong> right <strong>the</strong> result of a lookup of building 500, which can be scaled <str<strong>on</strong>g>and</str<strong>on</strong>g> panned interactively.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!