Creating the Map Fileのソースを表示
提供: OSGeo.JP Wiki
←
Creating the Map File
移動:
案内
、
検索
あなたには「このページの編集」を行う権限はありません。理由は以下の通りです:
この操作は、以下のグループに属する利用者のみが実行できます:
登録利用者
。
ページの編集を始める前にメールアドレスの確認をする必要があります。
個人設定
でメールアドレスを設定し、確認を行ってください。
このページのソースの閲覧やコピーができます:
<H3> Creating the Map File </H3> <P> The tool msexport to export a QGIS project file to a MapServer map file is installed in your QGIS binary directory and can be used independently of QGIS. To use it from within QGIS, you need to enable the MapServer Export Plugin first using the Plugin Manager (see Section [[#sec:load_core_plugin]]). <P> <DIV ALIGN="CENTER"><A NAME="fig:mapserver_export_dialog"></A><A NAME="32"></A> <TABLE> <CAPTION ALIGN="BOTTOM"><STRONG>Figure:</STRONG> Export to MapServer Dialog </CAPTION> <TR><TD> <DIV ALIGN="CENTER"> </DIV> <P></P> <DIV ALIGN="CENTER"> [clip=true, width=9cm]mapserver_export_dialog </DIV></TD></TR> </TABLE> </DIV> <P> <DL> <DT><STRONG>Map file</STRONG></DT> <DD> <BR> Enter the name for the map file to be created. You can use the button at the right to browse for the directory where you want the map file created. </DD> <DT><STRONG>Qgis project file</STRONG></DT> <DD> <BR> Enter the full path to the QGIS project file (.qgs) you want to export. You can use the button at the right to browse for the QGIS project file. </DD> <DT><STRONG>Map Name</STRONG></DT> <DD> <BR> A name for the map. This name is prefixed to all images generated by the mapserver. </DD> <DT><STRONG>Map Width</STRONG></DT> <DD> <BR> Width of the output image in pixels. </DD> <DT><STRONG>Map Height</STRONG></DT> <DD> <BR> Height of the output image in pixels. </DD> <DT><STRONG>Map Units</STRONG></DT> <DD> <BR> Units of measure used for output </DD> <DT><STRONG>Image type</STRONG></DT> <DD> <BR> Format for the output image generated by MapServer </DD> <DT><STRONG>Web Template</STRONG></DT> <DD> <BR> Full path to the MapServer template file to be used with the map file </DD> <DT><STRONG>Web Header</STRONG></DT> <DD> <BR> Full path to the MapServer header file to be used with the map file </DD> <DT><STRONG>Web Footer</STRONG></DT> <DD> <BR> Full path to the MapServer footer file to be used with the map file </DD> </DL> <P> Only the Map file and QGIS project file inputs are required to create a map file, however by omitting the other parameters, you may end up creating a non-functional map file, depending on your intended use. Although QGIS is good at creating a map file from your project file, it may require some tweaking to get the results you want. For this example, we will create a map file using the project file mapserverproject.qgs we just created (see Figure [[#fig:mapserver_export_dialog|59]]): <P> <OL> <LI>Start the MapServer dialog (see Figure [[#fig:mapserver_export_dialog|59]]) by clicking the mapserver_exportMapServer Export icon in the toolbar menu. </LI> <LI>Enter the name (e.g., qgisproject.map) for your new map file. </LI> <LI>Browse and find the QGIS project file (e.g., mapserverproject.qgs) you previously saved. </LI> <LI>Enter a name (e.g., MyMap) for the map. </LI> <LI>Enter the width and height (e.g., 600 for the width and 400 for the height) for your output image. </LI> <LI>For this example, the layers are in meters, so we change the units to meters. </LI> <LI>Choose ``png'' for the image type. </LI> <LI>Click OK to generate the new map file qgisproject.map. QGIS displays the success of your efforts. </LI> </OL> <P> You can view the map file in any text editor or visualizer. If you take a look, you'll notice that the export tool adds the metadata needed to enable our map file for WMS. <P>
Creating the Map File
に戻る。
案内メニュー
表示
ページ
議論
ソースを表示
履歴
個人用ツール
アカウント作成
ログイン
案内
メインページ
最近の更新
おまかせ表示
ヘルプ
検索
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報