|
|
行1: |
行1: |
− | <H3>
| + | --[[利用者:Sanak|Sanak]] 2009年10月5日 (月) 13:53 (UTC)このページは削除予定です。 |
− | Creating the Project File
| + | |
− | </H3>
| + | |
− | | + | |
− | <P>
| + | |
− | The MapServer Export Plugin operates on a saved QGIS project file and
| + | |
− | <SPAN CLASS="textbf">not</SPAN> on the current contents of the map canvas and legend. This
| + | |
− | has been a source of confusion for a number of users. As described below,
| + | |
− | before you start using the MapServer Export Plugin, you need to arrange
| + | |
− | the raster and vector layers you want to use in MapServer and save this
| + | |
− | status in a QGIS project file.
| + | |
− | | + | |
− | <P>
| + | |
− | | + | |
− | <DIV ALIGN="CENTER"><A NAME="fig:mapserver_export_qgs"></A><A NAME="7"></A>
| + | |
− | <TABLE>
| + | |
− | <CAPTION ALIGN="BOTTOM"><STRONG>Figure:</STRONG>
| + | |
− | Arrange raster and vector layers for QGIS project file </CAPTION>
| + | |
− | <TR><TD>
| + | |
− | <DIV ALIGN="CENTER">
| + | |
− | </DIV>
| + | |
− | <P></P>
| + | |
− | <DIV ALIGN="CENTER"> [clip=true, width=12cm]mapserver_export_qgis
| + | |
− | | + | |
− | </DIV></TD></TR>
| + | |
− | </TABLE>
| + | |
− | </DIV>
| + | |
− | | + | |
− | <P>
| + | |
− | In this example, we demonstrate the four steps required to create a simple
| + | |
− | project file which can be used to create the MapServer map file.
| + | |
− | We use raster and vector files from the QGIS sample dataset [[#label_sampledata]].
| + | |
− | | + | |
− | <P>
| + | |
− | | + | |
− | <OL>
| + | |
− | <LI>Add the raster layer landcover.tif clicking on the
| + | |
− | mActionAddRasterLayerAdd Raster Layer icon.
| + | |
− | </LI>
| + | |
− | <LI>Add the vector Shapefiles lakes.shp, majrivers.shp and
| + | |
− | airports.shp from the QGIS sample dataset clicking on the
| + | |
− | mActionAddNonDbLayerAdd Vector Layer icon.
| + | |
− | </LI>
| + | |
− | <LI>Change the colors and symbolize the data as you like (For example see
| + | |
− | Figure [[#fig:mapserver_export_qgis]])
| + | |
− | </LI>
| + | |
− | <LI>Save a new project named mapserverproject.qgs using
| + | |
− | File > mActionFileSaveSave Project.
| + | |
− | </LI>
| + | |
− | </OL>
| + | |
− | | + | |
− | <P>
| + | |