[mapserver-users] confused about using GridObj

Venkat Rao Tammineni vtammineni at roulacglobal.com
Tue May 5 08:10:10 EDT 2009


Hi

	See here for more ....Here is an example.


LAYER

  NAME "SAMPLE GRID"
  PROJECTION 
	  "proj=latlong"
	  "ellps=WGS84"
	  "datum=WGS84"
  END
  TYPE LINE
  STATUS DEFAULT
  CLASS
	COLOR 0 255 128
	  LABEL
		TYPE BITMAP
		SIZE MEDIUM
		COLOR 255 128 89
	  END
  END

    GRID  
	  MINSUBDIVIDE 64
	  MAXSUBDIVIDE 64
	  LABELFORMAT "DDMMSS" 	
   END
END

Thanks,

Venkat


-----Original Message-----
From: Venkat Rao Tammineni [mailto:vtammineni at roulacglobal.com] 
Sent: Tuesday, May 05, 2009 5:38 PM
To: 'Ahmet Temiz'; 'mapserver-users at lists.osgeo.org'
Subject: RE: [mapserver-users] confused about using GridObj

Hi,

GridObj Class

Constructor

The grid is always embedded inside a layer object defined as a grid
(layer->connectiontype = MS_GRATICULE)
 (for more docs : http://trac.osgeo.org/mapserver/wiki/MapServerGrid)

A layer can become a grid layer by adding a grid object to it using :
ms_newGridObj(layerObj layer)

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

Members

Type 	Name
double 	minsubdivide
double 	maxsubdivide
double 	minarcs
double 	maxacrs
double 	mininterval
double 	maxinterval
string 	labelformat

Methods

int set(string property_name, new_value)
    Set object property to a new value.


Thanks, 

Venkat


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz
Sent: Tuesday, May 05, 2009 5:30 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] confused about using GridObj

hello

I am confused about using GridObj in java-mapscript


Is there any example code containing  
gridobj in java-mapscript

regards

Ahmet Temiz

--
Open WebMail Project (http://openwebmail.org)


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list