[OSGeoJapan-discuss] mapserverについて3
"臼井"
usui @ fk-kosha.or.jp
2014年 11月 19日 (水) 17:34:09 PST
田原様
お世話になります
先ほど気が付いて直してみましたが
おなじ現象がでてきます
DaisukeTahara wrote:
> お世話になっております
> 田原といいます。
>
> msShapefileOpen(): Unable to access file. (/var/www/html/GISweb/tif/index.shp)
> なのに
>
> SHAPEPATH "/var/www/html/GISweb/test_tif"
>
> test_ なのが気になったりしますが、関係ないです?
>
> (2014/11/20 9:53), "臼井" wrote:
> > かやま様
> >
> > お世話になります
> >
> > 一覧です
> >
> > [root @ KouWeb01 tif]# cd /
> > [root @ KouWeb01 /]# ls -l /var/www/html/GISweb/tif/index.shp
> > -rwxrwxr-x 1 kousya kousya 43620 11月 17 12:49 2014 /var/www/html/GISweb/tif/index.shp
> > [root @ KouWeb01 /]# chkconfig --list httpd
> > httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
> > [root @ KouWeb01 /]# ps auxw | grep httpd
> > root 15828 0.0 0.4 74380 17216 ? Ss 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15832 0.0 0.2 74380 10768 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15833 0.0 0.2 74380 10784 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15834 0.0 0.2 74380 10776 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15835 0.0 0.2 74380 10780 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15836 0.0 0.2 74380 10780 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15930 0.0 0.2 74380 10772 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15943 0.0 0.2 74380 10720 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15946 0.0 0.2 74380 9940 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15947 0.0 0.2 74380 9940 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > daemon 15948 0.0 0.2 74380 9940 ? S 09:43 0:00 /usr/local/apache2/bin/httpd -k start
> > root 16385 0.0 0.0 5436 824 pts/1 S+ 09:48 0:00 grep httpd
> > [root @ KouWeb01 /]#
> >
> > SELINUXは切ってあります
> >
> > よろしくお願いします
> >
> >
> >
> >
> > Yoichi Kayama wrote:
> >> 臼井様
> >>
> >> かやまです
> >>
> >> msDrawMap(): Image handling error. Failed to draw layer named 'tile'.
> >> msShapefileOpen(): Unable to access file. (/var/www/html/GISweb/tif/
> >> index.shp)
> >> msShapefileOpen(): Unable to access file. (/var/www/html/GISweb/tif/index.shp)
> >>
> >> が問題のようですね
> >>
> >>> ファイルの権限も確認しましたが
> >>> 大丈夫なようでした
> >> ls -l /var/www/html/GISweb/tif/index.shp
> >>
> >> の出力結果はどのようなかんじでしょうか?
> >>
> >> httpd の動作ユーザは Apache ですか?
> >>
> >>
> >> SELinux というセキュリティモジュールは動かしていますか?
> >>
> >> http://rfs.jp/server/security/selinux01.html
> >> もしそれが有効な場合上記のページにあるように一時的に無効にしたらアクセス
> >> できるとか。
> >>
> >>
> >>
> >>
> >>
> >>
> >> 2014年11月20日 9:06 "臼井" <usui @ fk-kosha.or.jp>:
> >>> かやま様
> >>>
> >>> お世話になります
> >>>
> >>> 臼井です
> >>>
> >>> 教えていただいた通り
> >>>
> >>> エラーログを確認しました
> >>>
> >>>
> >>>
> >>> msDrawMap(): Image handling error. Failed to draw layer named 'tile'.
> >>> msShapefileOpen(): Unable to access file. (/var/www/html/GISweb/tif/index.shp)
> >>> msShapefileOpen(): Unable to access file. (/var/www/html/GISweb/tif/index.shp)
> >>>
> >>>
> >>>
> >>> どうも、大量なtiffのため、インデックスを作成したのですが
> >>> index.shpが開けないみたいなようです
> >>> ファイルの権限も確認しましたが
> >>> 大丈夫なようでした
> >>>
> >>> 今回、ベクタデータもWMS配信しており
> >>> そちらのシェイプファイルは正常に動きました
> >>>
> >>> 呼び込めないのがわかったのですが..
> >>>
> >>> よろしくお願いします
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> 現在mapserver バージョン6.2 をつかって
> >>>
> >>> ラスターデータをWMSで配信してオーバーレイしようと
> >>> 考えています
> >>> windows環境のMS4W上ではうまくいったのですが
> >>> LINUXで構築したサーバで同様なことをすると
> >>>
> >>> 元データがラスター(geotiff)のレイヤだけうまく配信されません
> >>> 何が原因なのかよく分からないので助言をいただけますでしょうか
> >>>
> >>> mapファイルは以下の通りです
> >>>
> >>>
> >>>
> >>>
> >>> MAP
> >>>
> >>> NAME "WMS-Server"
> >>>
> >>> SIZE 600 600
> >>> EXTENT -91280.64 -110481.75 175656.073 223821.067
> >>>
> >>>
> >>> IMAGETYPE PNG
> >>> TRANSPARENT ON
> >>> IMAGECOLOR 255 255 255
> >>>
> >>> #UNITS DD
> >>> UNITS meters
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> ####################################################
> >>> # Start of web interface definition
> >>> ####################################################
> >>>
> >>>
> >>>
> >>> PROJECTION
> >>> #"init=epsg:4326"
> >>> "init=epsg:30166"
> >>> END
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> ####################################################
> >>>
> >>>
> >>> FONTSET "/var/www/html/GISweb/wms/common/fonts/msfontset.txt"
> >>>
> >>> ####################################################
> >>>
> >>> #DEBUG ON
> >>>
> >>>
> >>> ####################################################
> >>> # Start of web interface definition
> >>> ####################################################
> >>> WEB
> >>>
> >>>
> >>>
> >>> #Windows
> >>> IMAGEPATH "/ms4w/tmp/ms_tmp/"
> >>> IMAGEURL "/ms_tmp/"
> >>>
> >>> METADATA
> >>> "wms_title" "WMS-Server"
> >>> "wms_onlineresource" "http://172.16.150.45/cgi-bin/mapserv.exe?map=/var/www/html/GISweb/wms/wmstif_index.map&"
> >>> #"wms_srs" "EPSG:4326 EPSG:3857"
> >>> "wms_srs" "EPSG:30166 EPSG:3857"
> >>> #"ows_enable_request" "*"
> >>> "wms_enable_request" "*"
> >>> END
> >>>
> >>>
> >>> END
> >>>
> >>> SHAPEPATH "/var/www/html/GISweb/test_tif"
> >>>
> >>> ####################################################
> >>> # Start of layer definitions
> >>> ####################################################
> >>>
> >>> LAYER
> >>> NAME "tile"
> >>> TYPE RASTER
> >>> STATUS ON
> >>> TILEINDEX "index.shp"
> >>> TILEITEM "Location"
> >>> METADATA
> >>> "wms_title" "tile"
> >>>
> >>> "wms_srs" "EPSG:30166"
> >>> END
> >>>
> >>> PROJECTION
> >>> #"init=epsg:4326"
> >>> "init=epsg:30166"
> >>> END
> >>>
> >>> MAXSCALE 25000
> >>>
> >>>
> >>> CLASS
> >>> EXPRESSION "1"
> >>> STYLE
> >>> COLOR 0 0 0
> >>> END
> >>> END
> >>>
> >>>
> >>>
> >>>
> >>> END # Layer
> >>>
> >>>
> >>> END #Map
> >>>
> >>>
> >>> 公益財団法人 福井県建設技術公社
> >>> 業務課 企画管理G 臼井 裕喜
> >>>
> >>>
> >>> _______________________________________________
> >>> OSGeoJapan-discuss mailing list
> >>> OSGeoJapan-discuss @ lists.osgeo.org
> >>> http://lists.osgeo.org/mailman/listinfo/osgeojapan-discuss
> > ┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏
> > ┏━━━┓
> > ┃\_/┃公益財団法人 福井県建設技術公社
> > ┗━━━┛ 業務課 企画管理G
> > 臼井 裕喜
> > ┏┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
> > ┏┌
> > ┏┌ 〒910-0003 福井県福井市松本3丁目16番10号
> > ┏┌ (福井県福井合同庁舎5F)
> > ┏┌ TEL 0776-20-0395
> > ┏┌ FAX 0776-21-3934
> > ┏┌ usui @ fk-kosha.or.jp
> > ┏┌ http://www.fk-kosha.or.jp/
> > ┏
> >
> >
> >
> > _______________________________________________
> > OSGeoJapan-discuss mailing list
> > OSGeoJapan-discuss @ lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/osgeojapan-discuss
> >
> >
>
>
> --
> ■北海道地図株式会社 総合技術センター研究開発課
> 田原 大輔 (tahara @ hcc.co.jp)
> Tel : 0166-62-4711 Fax:0166-62-4713
┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏
┏━━━┓
┃\_/┃公益財団法人 福井県建設技術公社
┗━━━┛ 業務課 企画管理G
臼井 裕喜
┏┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┏┌
┏┌ 〒910-0003 福井県福井市松本3丁目16番10号
┏┌ (福井県福井合同庁舎5F)
┏┌ TEL 0776-20-0395
┏┌ FAX 0776-21-3934
┏┌ usui @ fk-kosha.or.jp
┏┌ http://www.fk-kosha.or.jp/
┏
More information about the OSGeoJapan-discuss
mailing list