{"id":14,"date":"2006-05-28T22:15:10","date_gmt":"2006-05-28T13:15:10","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2006\/05\/28\/mapserver%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e6%89%8b%e9%a0%86\/"},"modified":"2006-05-28T22:15:10","modified_gmt":"2006-05-28T13:15:10","slug":"mapserver%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/14","title":{"rendered":"MapServer\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806"},"content":{"rendered":"<p>MapServer\u306f\u3001\u4e16\u754c\u3067\u6700\u3082\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30db\u30fc\u30e0\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9WebGIS\u3067\u3059\u3002<br \/>\n\u30aa\u30ea\u30b8\u30ca\u30eb\u306f\u3001\uff11\uff19\uff19\uff10\u5e74\u4ee3\u4e2d\u9803\u306b\u7c73\u56fd\u30df\u30cd\u30bd\u30bf\u5927\u5b66\u3068\u30df\u30cd\u30bd\u30bf\u5929\u7136\u8cc7\u6e90\u5c40\u304a\u3088\u3073NASA\u3068\u306e\u5171\u540c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308bForNet\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff08\u68ee\u6797\u8cc7\u6e90\u7ba1\u7406\uff09\u3067\u958b\u767a\u3055\u308c\u3001\u73fe\u5728\u306fNASA\u304c\u30b9\u30dd\u30f3\u30b5\u30fc\u3067\u3042\u308bTerraSIP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u8cc7\u91d1\u3092\u5f97\u3066\u30df\u30cd\u30bd\u30bf\u5927\u5b66\u3092\u4e2d\u5fc3\u306b\u4e16\u754c\u4e2d\u306e\u958b\u767a\u8005\uff08\u7d04\uff12\uff10\u4eba\uff09\u3067\u958b\u767a\u304c\u7d9a\u3051\u3089\u308c\u304a\u308a\u307e\u3059\u3002<br \/>\nMapServer\u306fCGI\u30d9\u30fc\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001\u5546\u7528\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u6bd4\u3079\u3066\u9ad8\u6a5f\u80fd\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u901a\u5e38\u306e\u5730\u56f3Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u306e\u306b\u5341\u5206\u306a\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30df\u30cd\u30bd\u30bf\u5929\u7136\u8cc7\u6e90\u5c40\u306e\uff28\uff30\u3084\u3001\u30ab\u30ca\u30c0\u653f\u5e9c\u306e\u5730\u56f3\u30b5\u30a4\u30c8\uff08The Atlas of Canada\uff09\u3067\u306f\u3001MapServer\u3092\u4f7f\u3063\u3066\u30ea\u30af\u30ec\u30fc\u30b7\u30e7\u30f3\u3001\u5929\u7136\u8cc7\u6e90\uff08\u68ee\u6797\u3001\u9271\u7269\uff09\u3001\u74b0\u5883\u3001\u793e\u4f1a\u3001\u7d4c\u6e08\u3001\u6b74\u53f2\u7b49\u306e\u591a\u5f69\u306a\u5730\u56f3\u60c5\u5831\u3092\u516c\u958b\u3057\u3066\u304a\u308a\u3001\u9ad8\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5bfe\u3057\u3066\u3082\u9ad8\u3044\u4fe1\u983c\u6027\u304c\u8a8d\u3081\u3089\u308c\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u4ed6\u3001\u6b27\u7c73\u3092\u4e2d\u5fc3\u3068\u3057\u3066\u4e16\u754c\u306e\u81ea\u6cbb\u4f53\u3001\u653f\u5e9c\u6a5f\u95a2\u3084\u6c11\u9593\u3067\u306e\u6570\u591a\u304f\u306e\u5229\u7528\u5b9f\u7e3e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nMapServer\u306e\u516c\u5f0fHP  http:\/\/MapServer.gis.umn.edu\/<br \/>\n\u30df\u30cd\u30bd\u30bf\u5929\u7136\u8cc7\u6e90\u5c40\u306e\uff28\uff30  http:\/\/www.dnr.state.mn.us\/maps\/index.html<br \/>\n\u30ab\u30ca\u30c0\u653f\u5e9c\u306e\u5730\u56f3\u30b5\u30a4\u30c8\u3000  http:\/\/atlas.gc.ca\/site\/english\/index.html<\/p>\n<p><!--more--><br \/>\nApache, PostgreSQL\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3000\u3000*httpd-2.0.50, postgresql-7.4.6\u3067\u78ba\u8a8d<br \/>\n\u5404\u30bd\u30fc\u30b9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff35\uff32\uff2c<br \/>\nfreetype \u3000\u3000 \u3000\u3000  http:\/\/freetype.sourceforge.net\/index2.html<br \/>\ngd\u3000\u3000\u3000\u3000\u3000\u3000 \u3000\u3000  http:\/\/www.boutell.com\/gd\/<br \/>\ngdal\u3000\u3000\u3000\u3000\u3000 \u3000\u3000  http:\/\/www.remotesensing.org\/gdal\/<br \/>\ngeos\u3000\u3000\u3000\u3000 \u3000\u3000\u3000  http:\/\/geos.refractions.net\/<br \/>\nhttpd\u3000\u3000\u3000\u3000 \u3000\u3000\u3000  http:\/\/httpd.apache.org\/<br \/>\nmapserver-patch  http:\/\/www.foss4g.org\/FOSS4G\/MAPSERVER\/mapserver-int.html<br \/>\nmapserver  http:\/\/mapserver.gis.umn.edu\/<br \/>\nphp4 \u3000\u3000\u3000\u3000  http:\/\/www.php.net\/<br \/>\npostgis\u3000\u3000  http:\/\/postgis.refractions.net\/<br \/>\npostgresql  http:\/\/www.postgresql.org\/<br \/>\nproj\u3000\u3000\u3000\u3000  http:\/\/proj.maptools.org\/<br \/>\nxbase\u3000\u3000\u3000  http:\/\/www.e-bachmann.dk\/docs\/xbase.htm<br \/>\njpeg lib  http:\/\/www.ijg.org\/files\/<br \/>\nTIFF lib  ftp:\/\/ftp.remotesensing.org<br \/>\ntiff, jpeg\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nwget http:\/\/www.ijg.org\/files\/jpegsrc.v6b.tar.gz<br \/>\ntar xvzf jpegsrc.v6b.tar.gz<br \/>\ncd jpeg-6b\/<br \/>\n.\/configure &#8211;enable-shared<br \/>\nmake<br \/>\nmake install<br \/>\nwget ftp:\/\/ftp.remotesensing.org\/pub\/libtiff\/tiff-3.7.0.tar.gz<br \/>\ntar zxvf tiff-3.7.0.tar.gz<br \/>\ncd tiff-3.7.0<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\n\u30e9\u30b9\u30bf\u30e9\u30a4\u30ba\u30a8\u30f3\u30b8\u30f3 freetype2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar xvzf freetype-2.1.10.tar.tar<br \/>\ncd freetype-2.1.10<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\n\u753b\u50cf\u51e6\u7406\u30a8\u30f3\u30b8\u30f3 gd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar xvzf gd-2.0.33.tar.tar<br \/>\ncd gd-2.0.33<br \/>\n.\/configure &#8211;prefix=\/usr &#8211;without-x<br \/>\nmake<br \/>\nmake install<br \/>\nphp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar -jxvf php-4.3.11.tar.bz2<br \/>\ncd php-4.3.11<br \/>\n.\/configure<br \/>\n&#8211;with-png-dir=\/usr\/local<br \/>\n&#8211;prefix=\/usr<br \/>\n&#8211;enable-force-cgi-redirect<br \/>\n&#8211;with-exec-dir=\/usr\/bin<br \/>\n&#8211;with-layout=GNU<br \/>\n&#8211;enable-shared=MAX<br \/>\n&#8211;enable-mbregex<br \/>\n&#8211;enable-mbstring<br \/>\n&#8211;enable-zend-multibyte<br \/>\n&#8211;with-freetype=\/usr\/include\/freetype2<br \/>\n&#8211;enable-mbstr-enc-trans<br \/>\n&#8211;with-regex=system<br \/>\n&#8211;with-jpeg=\/usr\/local<br \/>\n&#8211;with-zlib-dir=\/usr\/local<br \/>\nmake, make install<br \/>\n\uff0a&#8211;with-regex=system \u306f\u5fc5\u9808<br \/>\n&#8211;with-apsx2\u306a\u3069HTTPD\u7cfb\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3068MapServer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u306e\u3067\u3064\u3051\u306a\u3044<br \/>\n\u3059\u3067\u306bPHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30bd\u30fc\u30b9\u5c55\u958b\u5f8c\u3001\u6539\u3081\u3066\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<br \/>\ncp php.ini-dist php.ini<br \/>\ncp php.ini \/usr\/local\/lib<br \/>\ncp \/usr\/bin\/php \/usr\/local\/apache2\/cgi-bin<br \/>\n#httpd.conf \u7de8\u96c6<br \/>\nAddType application\/x-httpd-php .php .phtml<br \/>\nAddType application\/x-httpd-php-source .phps<br \/>\nAction application\/x-httpd-php \/cgi-bin\/php<br \/>\n\u6295\u5f71\u30e9\u30a4\u30d6\u30e9\u30ea proj.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar xvzf proj-4.4.9.tar.gz<br \/>\ncd proj-4.4.9<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\n\u30b8\u30aa\u30e1\u30c8\u30ea\u8a08\u7b97\u30a8\u30f3\u30b8\u30f3 geos\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar -jxvf geos-2.1.4.tar.bz2<br \/>\ncd geos-2.1.4<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\n\u5730\u7406\u7a7a\u9593\u30c7\u30fc\u30bf\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u5909\u63db\u30e9\u30a4\u30d6\u30e9\u30ea gdal\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar -jxvf geos-2.1.4.tar.bz2<br \/>\ntar xvzf gdal-1.2.0.tar.tar<br \/>\ncd gdal-1.2.0<br \/>\n.\/configure<br \/>\nmake, make install<br \/>\nPostgreSQL\u3067\u5ea7\u6a19\u3092\u30c7\u30fc\u30bf\u3092\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb postgis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nPostgreSQL\u30bd\u30fc\u30b9\u5c55\u958b\u30d5\u30a9\u30eb\u30c0\u306econtrib\u3067\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u5c55\u958b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar xvzf postgis-1.0.5.tar.gz<br \/>\ncp -R postgis-1.0.5 \/usr\/local\/src\/postgresql-7.4.6\/contrib\/<br \/>\ncd \/usr\/local\/src\/postgresql-7.4.6\/contrib\/postgis-1.0.5\/<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\nMapServer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\ntar xvzf mapserver-4.2.5.tar.gz<br \/>\ncd mapserver-4.2.5<br \/>\npatch -p1 < ..\/mapserver-4.0.1-encoding.diff\n.\/configure\n--with-gd=\/usr\/local\n--with-png=\/usr\/local\n--with-postgis=\/usr\/local\/pgsql\/bin\/pg_config (PostgreSQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6307\u5b9a)\n--with-php=\/usr\/local\/src\/php-4.3.11 (PHP\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6307\u5b9a)\n--with-proj=\/usr\/local\n--with-gif=\/usr\/local\n--with-freetype=\/usr\/include\/freetype2\n--with-zlib=\/usr\/local\n--with-tiff=\/usr\/local INPUT=TIFF\n--with-jpeg=\/usr\/local INPUT=PNG\n\uff0a--with-gd , --with-proj, --with-gif, --with-tiff, --with-jpeg\u306f\/usr\/local \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\n\u30b7\u30b9\u30c6\u30e0\u30e9\u30a4\u30d6\u30e9\u30ea\u30d1\u30b9\u306e\u8ffd\u52a0\nvi \/etc\/ld.so.conf\n\/usr\/local\/lib\n\/usr\/local\/pgsql\/lib (PG_HOME\/lib\u3092\u8ffd\u52a0)\nldconfig\n\u30b5\u30f3\u30d7\u30eb\u52d5\u4f5c\u78ba\u8a8d\nDoccumentRoot\uff1a\/usr\/local\/apache\/htdocs\nwget http:\/\/maps.dnr.state.mn.us\/mapserver_demos\/workshop.zip\nunzip workshop.zip\ncp -R workshop \/user\/local\/apache2\/htdocs\/\ncd \/usr\/local\/apache2\/htdocs\/workshop\/\nvi index.html\n&lt;!-- EDIT THE FORM ACTION --&gt;\n&lt;form name=&quot;demo&quot; method=&quot;GET&quot; action=&quot;\/cgi-bin\/mapserv&quot; onSubmit=&quot;submit_form()&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;layer&quot; value=&quot;lakespy2&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;layer&quot; value=&quot;dlgstln2&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;zoomsize&quot; value=2&gt;\n&lt;!-- EDIT THESE HIDDEN VARIABLES --&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;map&quot; value=&quot;\/usr\/local\/apache2\/htdocs\/workshop\/itasca.map&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;program&quot; value=&quot;\/cgi-bin\/mapserv&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;root&quot; value=&quot;\/workshop&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;map_web_imagepath&quot; value=&quot;\/usr\/local\/apache2\/htdocs\/tmp\/&quot;&gt;\n&lt;input type=&quot;hidden&quot; name=&quot;map_web_imageurl&quot; value=&quot;\/tmp\/&quot;&gt;\ncd \/usr\/local\/apache2\/htdocs\/\nmakedir tmp\nchmod 777 tmp\nworkshop\/index.html\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30bb\u30ec\u30af\u30c8\u30e1\u30cb\u30e5\u30fc\u9078\u629e\u5f8c\u3001\u30b5\u30f3\u30d7\u30eb\u304c\u78ba\u8a8d\u3067\u304d\u308c\u3070\uff2f\uff2b\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MapServer\u306f\u3001\u4e16\u754c\u3067\u6700\u3082\u4f7f\u7528\u3055\u308c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}