But in freemarker a feature's attributes are stored in a map so there is no
expected order to them. If you require an order then you should define it.

Ian

On 28 Jul 2017 18:44, "dracic" <davor.ra...@gmail.com> wrote:

> Ok. I think I'm not clear enough. I do not want any specific order. I
> would like generic behavior - which is the one when Geofence rules don't
> apply and that is that the attributes are ordered in the way they are
> listed in database tables or in attribute list in geoserver layer
> properties. So that is the way that Geoserver displays attributes by
> default. The other issue is that when Geofence rule is applied, subsequent
> Getfeatureinfo requests have different attribute order. It changes
> constantly. This cannot be expected behavior in any case.
>
> http://gis.hrsume.hr/hrsume/wms
>
> For example layer - gj. If you click at least 10timeson features in qgis
> or any web mapping map that can display external wms and do Getfeatureinfo,
> you will see at least 4 or 5 different attribute orders.
>
> Best regards
> Davor
>
> On Jul 28, 2017 19:04, "Ian Turton [via OSGeo.org]" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5329670&i=0>> wrote:
>
> That is what I would expect, if you require a specific order then you
> should enforce it in the template (which by the way Nabble is deleting
> before they reach the list, please use a proper mail client).
>
> So something like in content.ftl:
>
>
> ${feature.STATE_NAME.value} has these characteristics:
> <ul>
> <li>${feature.PERSONS.value}</li>
> <li>$feature.MALE.value}</li>
> <li>$feature.EMPLOYED</li>
> <ul>
>
>
> or what ever ordering you need.
>
> Ian
>
>
> On 28 July 2017 at 13:47, dracic <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5329667&i=0>> wrote:
>
>> So with the previous template with no Geofence rule limiting attribute
>> access, GetFeatureinfo request orders columns as they are listed in tabel
>> or
>> layer property. With Geofence rule, they have no particular order, and
>> subsequent request can have even different order from previous requests.
>>
>>
>>
>> --
>> View this message in context: http://osgeo-org.1560.x6.nabbl
>> e.com/Geoserver-2-10-external-Geofence-3-2-GetFeatureInfo-pr
>> oblem-tp5329591p5329633.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5329667&i=1>
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>
> --
> Ian Turton
>
> ------------------------------------------------------------------------------
>
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5329667&i=2>
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://osgeo-org.1560.x6.nabble.com/Geoserver-2-10-external-
> Geofence-3-2-GetFeatureInfo-problem-tp5329591p5329667.html
> To unsubscribe from Geoserver 2.10 & external Geofence 3.2 -
> GetFeatureInfo problem, click here.
> NAML
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> ------------------------------
> View this message in context: Re: Geoserver 2.10 & external Geofence 3.2
> - GetFeatureInfo problem
> <http://osgeo-org.1560.x6.nabble.com/Geoserver-2-10-external-Geofence-3-2-GetFeatureInfo-problem-tp5329591p5329670.html>
> Sent from the GeoServer - User mailing list archive
> <http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html> at
> Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
> userlist-guidelines.html
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to