MapServer with notes (b)

2010-12-23  来源:本站原创  分类:Mobile  人气:99 

There are two internationally popular open source map tile cache server: geowebcache and tilecache.
geowebcache based on J2EE architecture, with a complete Web graphical management interface, support for concurrent multi-process cutting diagram, you can always see the progress and remaining time cutting plans, with geoserver is very appropriate.
titlecache prepared using python, CGI mode, very small, 2.11 version only surprising 68K! (This is much like MapServer).
titlecache using SHELL or DOS command line program to run cutting plans, real-time progress information output cut plans.
Select titlecache mapserver cache server as a map section, included in the ms4w_3.0beta10 tilecache plug-in, the beta version of a problem,
We manually added the official version ms4w_2.3.1 tilecache server, follow these steps:

1, the official website from the tilecache installation package tilecache-2.11.tar.gz, the installation package applies to all operating systems, we use Windows XP.
2, extract the installation package, which will be tilecache-2.11 overall directory copy ms4w the apps directory.
3, into the ms4w the http.d directory, create a new text file named httpd_tilecache.conf, as follows:
Alias / tilecache / "/ ms4w/apps/tilecache-2.11 /"
<Directory "/ms4w/apps/tilecache-2.11/">
AllowOverride None
Options ExecCGI
Order allow, deny
Allow from all
</ Directory>
addHandler cgi-script. cgi. py
4, into the ms4w/apps/tilecache-2.11 directory, open the tilecache.cgi file, modify the first line of the python compiler path, for example,
#! E: \ Python25 \ python.exe
5, open the directory tilecache.cfg file, modify the cache tab, specify the local disk cache directory, for example,
type = Disk
base = F: / tmp / tilecache
Add a road label, specify the type of map services, service address, mapfile file path, layer name, raster format, the spatial reference system code, such as
type = WMS
url = &
layers = road
extension = png
srs = EPSG: 4326
6, restart Apache
7, open the index.html file under tilecache, according to practical situation openlayers.js path, for example,
<script src="/openlayers/OpenLayers.js"> </ script>
Modify the layer parameters, such as
layer = new OpenLayers.Layer.WMS ("road", "tilecache.cgi?", {layers: 'road', format: 'image / png'});

Use the browser to access, Web pages will display the map after tilecache treatment, the client viewed the map file is saved in tilecache.cfg slice the file specified temporary directory, here is the F: / tmp / tilecache directory, if the client is in the request contains a map, these maps will no longer be dynamically generated by MapServer, but directly from the cache directory to read a static image file. For large volume of users, high concurrent access maps, tile caching mechanism can be very effective to improve the client to read, showing the speed of the map.

Through the implementation of script, you can manually generate the map section, the following command issued to the road layer map 0-6 slice files.
python "F: \ ms4w \ apps \ tilecache-2.11 \" road 0 6
Wait is finished, enter the cache directory can be found in documents just released the map section.

  • MapServer Study Notes 2010-07-30

    1, MapServer Introduction MapServer is provided by the University of Minnesota WebGIS solution. MapServer is a successful open-source WebGIS services. In the server-side CGI application to connect through the Web Server and GIS spatial database, the

  • MapServer with notes (b) 2010-12-23

    There are two internationally popular open source map tile cache server: geowebcache and tilecache. geowebcache based on J2EE architecture, with a complete Web graphical management interface, support for concurrent multi-process cutting diagram, you

  • MapServer using the Notes (a) 2010-12-23

    The previous test, we use the shape file as a map data source, let's read from the Oracle Spatial spatial database of geographic data. mapserver provides two ways to connect oracle spatial database, native oracle spatial and ogr. Package provides sup

  • Windows, the Mapserver - MS4W Installation Notes 2010-07-29

    1 \ MS4W folder must be placed in the root directory of the disk; 2, run apache-install.bat must be turned off before the IIS and other services; 3, suggesting that apache has started later, MS4W even if the installation was successful, and then ente

  • arcgis api for flex Study Notes 2011-07-01

    arcgis api for flex study notes 2011-03-09 21:06:10 Tags: api arcgis flex study notes original works, for permission to reproduce, reprint, please be sure to indicate the form of hyperlinks original source of article, author information and this stat

  • ROR Study Notes 1 2009-03-09

    Installed at the success of ROR environment (yes, I installed InstantRails-2.0-win), the first thing done is to create a simple DB demo, the steps are as follows: 1.Rails Appliction Medium Create New Rails App ... 2. Create Application Framework: rai

  • Chinese FckEditor V2.6 fckconfig.js Notes 2009-03-09

    Chinese FckEditor V2.6 fckconfig.js Notes Common Description: 1.FCKConfig.SkinPath = FCKConfig.BasePath + 'skins / default /'; this is to control the style of the fck editor, there are other two options, one is office2003 style, there is a gray-style

  • js Study Notes (3) 2009-03-16

    Dojo Study Notes (2. DjConfig explain) dojo are djConfig a built-in Global Settings object, its role is through its control of behavior dojo First of all, we need to quote the former dojo.js statement djConfig object in order to load when dojo.js be

  • J2ee Development Without ejb reading Notes <1> 2009-04-02

    Our company is too old to use the framework, and is based on jdk1.4, of course, this does not deny that she is an excellent framework. Recently, the project director to allow me to take some time to study another company's products to see if we can a

  • Java Notes Annotations can really simplified J2EE development? 2009-04-07

    With the J2EE entered after 5.0 time, Java EE5.0's a lot of features have also been widely used in J2EE programs. The Java EE5.0 Notes (Annotations) characteristic is one of the most widely used characteristics of one. If a slight glance at the lates

  • "Software Architecture Design" reading notes 2009-04-07

    Recently read "software architecture color design" of this book, harvest story, happened to see this online book notes, is reproduced below: 【Title】 : Software Architecture Design Press 【】 : Electronics Industry Press People s : Wen Yu Foreword

  • "The Return of the King" reading notes JavaScript Object-Oriented Programming (2) 2009-04-08

    I. What is a prototype JS objects can return the prototype property references a prototype object type (indeed a mouthful), let us understand that separate. Object Class (Class) and the object instance (Instance) are between a "create" relations

  • "The Return of the King" reading notes JavaScript object-oriented programming (1) 2009-04-08

    Skip JS core (language structure, data types, functions, objects, collections, strings, etc.) as well as BOM, DOM part of this series of notes to summarize the main "The Return of the King" object-oriented programming part of the knowledge point

  • Books <Programming Ruby 2nd> Notes 1 2009-04-12

    Should not be regarded as the new Ruby you learn, review should be considered. Rails are also used by some, but not done so before the notebook. I once wrote a post to discuss about Perl, Python and Ruby, and written price is also an objective. Here

  • A LITTLE CSS Notes 2009-04-29

    margin and padding property margin and padding property can be simply understood as the elements outside and inside from the margins: margin-top, margin-right, margin-bottom, margin-left, padding-top, padding-right, padding-bottom and padding-left Cl

  • ruby embedded Notes 2009-04-30

    Notes of ruby is embedded = end begin = begin The End, and Writing are the top line, that is, = must be the first letter of his party. At this identifier between the two notes are asking after the = begin and = end before there is a space of at least

  • Notes About Hibernate 2009-05-25

    Done memorandum EJB3 early exposure time enjoy the writing very hibernate and spring is now also supported haha In the past few years, Hibernate development, Java database almost become the de facto standard for persistence. It is very powerful, flex

  • jQuery grammar summary and Notes 2009-06-20

    1, Introduction 1.1, an overview of WEB2.0 and ajax with the idea at the rapid development of Internet communication, one after another there have been some excellent Js framework, there is one of the most famous Prototype, YUI, jQuery, mootools, Bin

  • How to use the Java 5 Annotation (Notes) to simplify the Hibernate code 2009-07-19

    Note how to use Java 5 to simplify the Hibernate code, persistence layer and the coding process easier. Traditionally, Hibernate configuration relies on external XML documents: a database mapping is defined as a set of XML mapping file, and loaded at

  • hibernate-depth study notes 2009-07-28

    hibernate-depth study notes Keywords: hibernate o / r maping Hb just in the fire is abuse, seen, but not very ormaping understand that we are now looking to re-hb, before many areas are not Now suddenly have a lot about all the basic . Logo generator