[mapserver-users] how use the expression function "area"
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Tue Jan 8 07:29:04 PST 2013
Hi Andrea: In expressions the tag [shape] should be used to reference the current geometry. Many of the drivers don't define a geometry name column (e.g. native shapefiles) so we needed a consistent way to refer to it... So try:
EXPRESSION ( (area([shape]) > 10000000) )
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri
Sent: Tuesday, January 08, 2013 3:56 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] how use the expression function "area"
Hi,
I see in the mapserver 6.2 is added the function "area" to the expressions.
So I try to use this expression:
EXPRESSION ( (area([GEOMETRY]) > 10000000) )
where geometry is the geometry field.
The datasource is a spatialite db where the geometry filed is named "GEOMETRY"
It return this errror:
msOGRLayerInitItemInfo(): OGR error: Invalid field name GEOMETRY.
Perhaps I miss to understanding the mean of area() function ?
Any info is welcome.
Thx,
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
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