<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LiangXu Wang &#187; MapServer</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/mapserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>kamap!新手入门</title>
		<link>http://wlx.westgis.ac.cn/374/</link>
		<comments>http://wlx.westgis.ac.cn/374/#comments</comments>
		<pubDate>Wed, 23 May 2007 04:48:21 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>
		<category><![CDATA[gmap]]></category>
		<category><![CDATA[kamap]]></category>
		<category><![CDATA[ms4w]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/374/</guid>
		<description><![CDATA[本文以MS4W为例，介绍如何建立一个简单的kamap!系统，并假设你已经做好了相关的数据，并建立了对应的map文件。 1、下载 若要简单的先浏览一下kamap!在本机上建立后的效果，需要下载下面对应的软件，所有软件都在www.maptools.org的网站上。 MS4W 2.2.3 ka-map! 1.0 gmap demo 其中，gmap是为了演示kamap!的功能的，若你有自己的数据，则可以不用下载。 2、安装 把上面下载的3个zip文件，都解压缩到c:\目录下。最终形成了一个c:\ms4w的目录，所有文件都安装到了这个目录下。 然后执行c:\ms4w\apache-install.bat文件。 ok，这样一个基本系统就搭建好了，你可以通过在WWW浏览器如IE、FIREFOX中浏览本机地址： http://localhost/ 而kamap的地址是： http://localhost/kamap/ 注意： 若在浏览kamap是无法得到地图数据，则有可能是因为浏览器缓存的问题，请先清空浏览器的缓存再试验看看。 3、定制 如何添加自己的数据集？ 打开c:\ms4w\apps\ka-map-1.0\include\config.php文件，注意要用写字板或别的能支持硬回车的文本编辑软件来进行编辑。 注意看到这部分内容： $aszGMap = array ( 'title' =&#62; 'GMap 75', 'path' =&#62; '../../gmap/htdocs/gmap75.map', 'scales' =&#62; array( 40000000, 25000000, 12000000, &#8230; <a href="http://wlx.westgis.ac.cn/374/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>本文以MS4W为例，介绍如何建立一个简单的kamap!系统，并假设你已经做好了相关的数据，并建立了对应的map文件。</p>
<p>1、下载</p>
<p>若要简单的先浏览一下kamap!在本机上建立后的效果，需要下载下面对应的软件，所有软件都在<a href="http://www.maptools.org">www.maptools.org</a>的网站上。<br />
<a href="http://www.maptools.org/dl/ms4w/ms4w_2.2.3.zip">MS4W 2.2.3</a><br />
<a href="http://www.maptools.org/dl/ms4w/ka-map-ms4w-1.0.zip">ka-map! 1.0</a><br />
<a href="http://www.maptools.org/dl/ms4w/gmap_ms4w_ms410.zip">gmap demo</a><br />
其中，gmap是为了演示kamap!的功能的，若你有自己的数据，则可以不用下载。</p>
<p>2、安装</p>
<p>把上面下载的3个zip文件，都解压缩到c:\目录下。最终形成了一个c:\ms4w的目录，所有文件都安装到了这个目录下。<br />
然后执行c:\ms4w\apache-install.bat文件。</p>
<p>ok，这样一个基本系统就搭建好了，你可以通过在WWW浏览器如IE、FIREFOX中浏览本机地址：</p>
<p>http://localhost/</p>
<p>而kamap的地址是：</p>
<p>http://localhost/kamap/</p>
<p>注意：<br />
若在浏览kamap是无法得到地图数据，则有可能是因为浏览器缓存的问题，请先清空浏览器的缓存再试验看看。</p>
<p>3、定制</p>
<p>如何添加自己的数据集？<br />
打开c:\ms4w\apps\ka-map-1.0\include\config.php文件，注意要用写字板或别的能支持硬回车的文本编辑软件来进行编辑。<br />
注意看到这部分内容：</p>
<blockquote><p> <code>$aszGMap = array (<br />
         'title' =&gt; 'GMap 75',<br />
         'path' =&gt; '../../gmap/htdocs/gmap75.map',<br />
         'scales' =&gt; array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000 ),<br />
         'format' =&gt;'PNG'<br />
         /* Sample authorized_users entry. See auth.php for more details:<br />
          * ,'authorized_users' =&gt; array('popplace' =&gt; array('user1', 'user2'),<br />
          *                              'park'     =&gt; array('user1')<br />
          */<br />
 );</p>
<p> $aszMapFiles = array( 'gmap' =&gt; $aszGMap</p>
<p>/* Add more elements to this array to offer multiple mapfiles */</p>
<p>);</p>
<p>/******************************************************************************<br />
 * figure out which map file to use and set up the necessary variables for<br />
 * the rest of the code to use.  This does need to be done on every page load<br />
 * unfortunately.<br />
 *<br />
 * szMap should be set to the default map file to use but can change if<br />
 * this script is called with map=&lt;mapname&gt;.<br />
 */<br />
$szMap = 'gmap';</code></p></blockquote>
<p>假设把你的map文件和地图数据拷贝到c:\ms4w\apps\lzu\目录下，你的map文件为lzu.map，则可以这样定制：<br />
$aszGMap = array&#8230;这部分可以不用动，当然你若不需要，也可以删除之。然后添加：</p>
<blockquote><p><code>$lzuMap = array (<br />
         'title' =&gt; 'LZU',<br />
         'path' =&gt; '../../lzu/lzu.map',<br />
         'scales' =&gt; array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000 ),<br />
         'format' =&gt;'PNG'<br />
 );</code></p></blockquote>
<p>然后这部分要根据上面的信息进行修改：</p>
<blockquote><p><code> $aszMapFiles = array( 'gmap' =&gt; $aszGMap,'lzu'=&gt;$lzuMap);</code></p></blockquote>
<p>注意，这部分的比例尺数据要根据自己的实际情况进行修改：</p>
<blockquote><p>         &#8216;scales&#8217; => array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000 ),</p></blockquote>
<p>如何修改对应的主页文件？<br />
用网页编辑器打开c:\ms4w\apps\ka-map-1.0\htdocs\index.html文件，然后里面的信息则可以自己进行定制。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/374/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>debian testing 中安装mapserver</title>
		<link>http://wlx.westgis.ac.cn/213/</link>
		<comments>http://wlx.westgis.ac.cn/213/#comments</comments>
		<pubDate>Wed, 09 Aug 2006 07:40:18 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MapServer]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/213/</guid>
		<description><![CDATA[mapserver已经尽到debian的库里，直接安装就可以了： aptitude install php4-mapserver 然后提示不能运行在CGI/FCGI模式下： aptitude install libapache2-mod-php4 MAPSERVER运行没有问题了，但MYSQL出问题了： 编辑/etc/php4/apache2/php.ini，把mysql.so前面的注释去掉，重新启动apache2。 下次就直接测试php5相关部分了。]]></description>
			<content:encoded><![CDATA[<p>mapserver已经尽到debian的库里，直接安装就可以了：<br />
aptitude install php4-mapserver<br />
然后提示不能运行在CGI/FCGI模式下：<br />
aptitude install libapache2-mod-php4<br />
MAPSERVER运行没有问题了，但MYSQL出问题了：<br />
编辑/etc/php4/apache2/php.ini，把mysql.so前面的注释去掉，重新启动apache2。</p>
<p>下次就直接测试php5相关部分了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/213/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu dapper下编译mapserver</title>
		<link>http://wlx.westgis.ac.cn/201/</link>
		<comments>http://wlx.westgis.ac.cn/201/#comments</comments>
		<pubDate>Thu, 25 May 2006 17:02:02 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MapServer]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/201/</guid>
		<description><![CDATA[好久没有安装mapserver了，今天才发现mapserver都已经进入官方的源了。 看来已经出了好长时间了，今天要重装mapserver才发现。 ubuntu dapper中的版本是4.6.1 apt-cache search mapserver cgi-mapserver &#8211; cgi module of mapserver mapserver-bin &#8211; mapserver binary utilities mapserver-doc &#8211; documentation for mapserver perl-mapscript &#8211; perl mapserver library php4-mapscript &#8211; module for php4-cgi to use mapserver php5-mapscript &#8211; module for &#8230; <a href="http://wlx.westgis.ac.cn/201/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>好久没有安装mapserver了，今天才发现mapserver都已经进入官方的源了。<br />
看来已经出了好长时间了，今天要重装mapserver才发现。<br />
ubuntu dapper中的版本是4.6.1</p>
<blockquote><p>apt-cache search mapserver<br />
cgi-mapserver &#8211; cgi module of mapserver<br />
mapserver-bin &#8211; mapserver binary utilities<br />
mapserver-doc &#8211; documentation for mapserver<br />
perl-mapscript &#8211; perl mapserver library<br />
php4-mapscript &#8211; module for php4-cgi to use mapserver<br />
php5-mapscript &#8211; module for php5-cgi to use mapserver<br />
python-mapscript &#8211; python mapserver lib</p></blockquote>
<p>debian stable中是4.4.1，testing和unstable是4.8.3版本。</p>
<p>并且发现现在安装mapserver好简单了：</p>
<blockquote><p>
./configure &#8211;with-ogr &#8211;with-gdal &#8211;with-geos &#8211;with-proj &#8211;with-postgis &#8211;with-php=/usr/include/php5/<br />
make<br />
sudo cp php_mapscript.so /usr/lib/php5/20051025/<br />
#// 加入php_mapscript.so的extensions<br />
sudo nano /etc/php5/apache2/php.ini<br />
sudo /etc/init.d/apache2 restart
</p></blockquote>
<p>已经安装了apache2-mpm-prefork，libapache2-mod-php5包。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/201/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webmap.cn使用的WEBGIS技术</title>
		<link>http://wlx.westgis.ac.cn/176/</link>
		<comments>http://wlx.westgis.ac.cn/176/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 03:04:04 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>
		<category><![CDATA[ka-map]]></category>
		<category><![CDATA[webmap]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/176/</guid>
		<description><![CDATA[参见：http://www.webmap.cn 使用的是ka-map!以及Mapserver的CGI方式，还有PHP/MAPSCRIPT方式。 其中的目录浏览、地图制作、快图查询都很有特色。]]></description>
			<content:encoded><![CDATA[<p>参见：http://www.webmap.cn<br />
使用的是ka-map!以及Mapserver的CGI方式，还有PHP/MAPSCRIPT方式。<br />
其中的目录浏览、地图制作、快图查询都很有特色。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/176/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Autodesk Contributes Web Mapping Software to Open Source Community</title>
		<link>http://wlx.westgis.ac.cn/135/</link>
		<comments>http://wlx.westgis.ac.cn/135/#comments</comments>
		<pubDate>Sat, 03 Dec 2005 02:16:15 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/135/</guid>
		<description><![CDATA[参考 http://biz.yahoo.com/prnews/051128/sfm053.html?.v=33 以及 http://mapserverfoundation.org 这对MAPSERVER应该是个好事情。]]></description>
			<content:encoded><![CDATA[<p>参考 http://biz.yahoo.com/prnews/051128/sfm053.html?.v=33<br />
以及 http://mapserverfoundation.org</p>
<p>这对MAPSERVER应该是个好事情。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/135/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu breezy下的mapserver问题</title>
		<link>http://wlx.westgis.ac.cn/127/</link>
		<comments>http://wlx.westgis.ac.cn/127/#comments</comments>
		<pubDate>Thu, 03 Nov 2005 18:12:14 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MapServer]]></category>
		<category><![CDATA[breezy]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/127/</guid>
		<description><![CDATA[升级后，发现mapserver有问题，开始还以为是需要重新编译。 没想到是php4下的插件改目录了，一直没有注意。 在make后，拷贝php_mapscript.so文件到/usr/include/php4/20050606目录下 在最新的debian sarge testing版本中也是同样的问题。 编译方法同上个版本，参考：http://blog.mygis.org/98/]]></description>
			<content:encoded><![CDATA[<p>升级后，发现mapserver有问题，开始还以为是需要重新编译。<br />
没想到是php4下的插件改目录了，一直没有注意。<br />
在make后，拷贝php_mapscript.so文件到/usr/include/php4/20050606目录下</p>
<p>在最新的debian sarge testing版本中也是同样的问题。</p>
<p>编译方法同上个版本，参考：http://blog.mygis.org/98/</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/127/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE中的XMLHTTP</title>
		<link>http://wlx.westgis.ac.cn/106/</link>
		<comments>http://wlx.westgis.ac.cn/106/#comments</comments>
		<pubDate>Wed, 24 Aug 2005 01:27:19 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[xmlhttp]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/106/</guid>
		<description><![CDATA[极度郁闷，最近在调试XMLHTTP时，在FIREFOX上都没有问题，但转到IE上时就出来问题了。 用ubuntu hoary作服务器，WIN2K3＋IE6测试，没有问题。 但用debian作服务器，就出现问题了，但FIREFOX都没有问题。 关键的错误是IE6时，得到的XMLHTTP的responseText是空。]]></description>
			<content:encoded><![CDATA[<p>极度郁闷，最近在调试XMLHTTP时，在FIREFOX上都没有问题，但转到IE上时就出来问题了。<br />
用ubuntu hoary作服务器，WIN2K3＋IE6测试，没有问题。<br />
但用debian作服务器，就出现问题了，但FIREFOX都没有问题。</p>
<p>关键的错误是IE6时，得到的XMLHTTP的responseText是空。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/106/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>xmlhttp request</title>
		<link>http://wlx.westgis.ac.cn/104/</link>
		<comments>http://wlx.westgis.ac.cn/104/#comments</comments>
		<pubDate>Thu, 04 Aug 2005 08:34:53 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[xmlhttp]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/104/</guid>
		<description><![CDATA[使用XMLHTTP实现无刷新显示WEBGIS中的地图及其他相关内容， 可以参考下面这个文章： http://jibbering.com/2002/4/httprequest.html 另外几个JS库 JavaScript: DHTML API, Drag &#038; Drop for Images and Layers http://www.walterzorn.com/dragdrop/dragdrop_e.htm]]></description>
			<content:encoded><![CDATA[<p>使用XMLHTTP实现无刷新显示WEBGIS中的地图及其他相关内容，<br />
可以参考下面这个文章：</p>
<p>http://jibbering.com/2002/4/httprequest.html</p>
<p>另外几个JS库<br />
JavaScript: DHTML API, Drag &#038; Drop for Images and Layers</p>
<p>http://www.walterzorn.com/dragdrop/dragdrop_e.htm</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/104/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MapServer 4.7-cvs在ubuntu 5.04下的安装</title>
		<link>http://wlx.westgis.ac.cn/98/</link>
		<comments>http://wlx.westgis.ac.cn/98/#comments</comments>
		<pubDate>Mon, 04 Jul 2005 15:47:58 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/98/</guid>
		<description><![CDATA[首先从CVS下载最新版本。 然后配置： ./configure &#8211;with-ogr &#8211;with-gdal &#8211;with-geos &#8211;with-proj &#8211;with-postgis &#8211;with-php=/usr/include/php4 &#8211;with-freetype 然后，编译，遇到一个错误，byacc参数错误。 郁闷。 后发现若安装了bison后就可以解决此错误。 sudo apt-get install bison 看看结果： ./mapserv -v MapServer version 4.7 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE]]></description>
			<content:encoded><![CDATA[<p>首先从CVS下载最新版本。<br />
然后配置：</p>
<blockquote><p>./configure &#8211;with-ogr &#8211;with-gdal &#8211;with-geos &#8211;with-proj &#8211;with-postgis &#8211;with-php=/usr/include/php4 &#8211;with-freetype</p>
</blockquote>
<p>然后，编译，遇到一个错误，byacc参数错误。<br />
郁闷。<br />
后发现若安装了bison后就可以解决此错误。</p>
<blockquote><p>
sudo apt-get install bison
</p></blockquote>
<p>看看结果：</p>
<blockquote><p>
./mapserv -v<br />
MapServer version 4.7 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/98/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>fonts.txt字体的别名</title>
		<link>http://wlx.westgis.ac.cn/66/</link>
		<comments>http://wlx.westgis.ac.cn/66/#comments</comments>
		<pubDate>Sat, 02 Apr 2005 15:34:40 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[MapServer]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/66/</guid>
		<description><![CDATA[注意，字体的别名最后不能跟数据。 比如：abc8(不合法） 应以字母结束。]]></description>
			<content:encoded><![CDATA[<p>注意，字体的别名最后不能跟数据。<br />
比如：abc8(不合法）<br />
应以字母结束。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/66/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>

