On Mon, Apr 1, 2013 at 11:34 AM, Сергей Колосов <[email protected]>wrote:
> Hi all.
> I'm trying to apply filter WITHIN to WMS layer from OpenLayers:
>
> WITHIN(the_geom, POLYGON((35 49, 35 51, 39 51, 39 49, 35 49)))
>
> Everything works fine until i use PostGIS layer instead of Shapefile .
> Then i need to use the "geom" field.
> So the question is how can i know what field to use if i have both PostGIS
> and Shapefile layers?
>
>
Each sources names the fields in a slightly different way. You have to
check the results of
the WFS DescribeFeatureType to see the names of the attributes, or use the
list of attributes in the
layer edit page.
In the particular case, "the_geom" is just a conventional name for
shapefiles (the geometry has
no name there), for postgis it's the name of the column that has the
geometry, so it can have any
name
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users