[mapserver-users] how use the expression function "area"

Andrea Peri aperi2007 at gmail.com
Tue Jan 8 07:39:22 PST 2013


Hi,

Thx very much.
It work perfectly !



2013/1/8 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>:
> 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
>
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the mapserver-users mailing list