CityTilePositioner ctp = new CityTilePositioner(w);
new BuildingTilePositioner(w);
    public static World createWorldFromMapFile(String mapName,        FreerailsProgressMonitor pm) {        pm.setMessage("Setting up world.");        pm.setValue(0);        pm.setMax(5);        int progess = 0;        //Load the xml file specifying terrain types.        URL tiles_xml_url = WorldFactory.class.getResource(                "/jfreerails/data/terrain_tiles.xml");        //	new jfreerails.TileSetFactoryImpl(tiles_xml_url);        WorldImpl w = new WorldImpl();        pm.setValue(++progess);        try {            java.net.URL url = RunTypesParser.class.getResource(                    "/jfreerails/data/cargo_and_terrain.xml");            CargoAndTerrainParser.parse(url, new CargoAndTerrainHandlerImpl(w));        } catch (Exception e) {            e.printStackTrace();            throw new IllegalStateException();        }        pm.setValue(++progess);        WagonAndEngineTypesFactory wetf = new WagonAndEngineTypesFactory();        pm.setValue(++progess);        wetf.addTypesToWorld(w);        pm.setValue(++progess);        URL track_xml_url = WorldFactory.class.getResource(                "/jfreerails/data/track_tiles.xml");	Track_TilesHandlerImpl trackSetFactory = new	    Track_TilesHandlerImpl(track_xml_url, w);        pm.setValue(++progess);        //Load the terrain map        URL map_url = WorldFactory.class.getResource("/jfreerails/data/" +                mapName + ".png");        MapFactory.setupMap(map_url, w, pm);        //Load the city names        URL cities_xml_url = WorldFactory.class.getResource("/jfreerails/data/" +                mapName + "_cities.xml");        try {            InputCityNames r = new InputCityNames(w, cities_xml_url);        } catch (SAXException e) {        }        //Randomly position the city tiles        CityTilePositioner ctp = new CityTilePositioner(w);        //Set the time..        w.set(ITEM.CALENDAR, new GameCalendar(30, 1840));        w.set(ITEM.TIME, new GameTime(0));	//Create the economy	Economy economy = new Economy();	economy.setIncomeTaxRate(25);	economy.setBaseInterestRate((float) 5.0);	w.set(ITEM.ECONOMY, economy, Player.AUTHORITATIVE);        return w;    }