PHP/MapScript GridObjクラス

コンストラクタ:

gridは常に、グリッドとして定義されたレイヤオブジェクトに組み込まれます。 (layer->connectiontype = MS_GRATICULE)
(詳しくは:http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerGrid
レイヤは次の関数を使ってグリッドオブジェクトを追加すると、グリッドレイヤになります:

ms_newGridObj(layerObj layer)

例:
$oLayer = ms_newlayerobj($oMap);
$oLayer->set("name", "GRID");
ms_newgridobj($oLayer);
$oLayer->grid->set("labelformat", "DDMMSS");

メンバ:

double    minsubdivide;
double    maxsubdivide;
double    minarcs;
double    maxacrs;
double    mininterval;
double    maxinterval;
string    labelformat;

メソッド:

BlinkListblogmarksdel.icio.usdiggFarkfeedmelinksFurlLinkaGoGoNewsVineNetvouzRedditYahooMyWebFacebook int set(string property_name, new_value)

オブジェクトのプロパティをnew_valueに設定します。エラーの場合 -1が返ります。

                                                                                                                                                                                                                                                                                                                                                           

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License