[Geoserver-devel] New feature: UTFGrid output format

Hi,
I’m about to start implementing a UTFgrid WMS output format based on the MapBox UTFGrid
specification:
https://github.com/mapbox/utfgrid-spec/blob/master/1.3/utfgrid.md

The output format will be as usual a bit more lax than the spec, we plan to allow non
square requests too, even if the expectation is that we are going to receive mostly tiled requests.

Implementation wise we are going to associate each feature to a progressive number,
use this number as a grayscale color that will be used to paint the feature in question on the map,
and then turn the resulting gray map into a char map according to the utfgrid spec …
which seems simple, but once one takes into account all of our rendering abilities, well,
it’s not going to be so much anymore :wink:

In particular, it’s not clear if we are going to be able to work against rendering transformations,
since they make new features pop up out of thin air, but I’ll see what I can do.

Since output formats are pluggable, it would be possible to implement this as a community
module, but I expect to only have a handful of classes (style transformers, image transcoders,
feature collection decorators to add the grayscale ids as a new attribute) plus some eventual
changes to streaming renderer, so I’m not sure the work is worth its own module… was more
thinking of adding it directly to the gs-wms module, but would also like to hear your opinion.

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Hi,
I guess I’ll move on adding the feature in the core module, as a pluggable and independent
output format with no extra dependencies it does not going to cause issues anyways

Cheers
Andrea

···

On Wed, Nov 4, 2015 at 12:18 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi,
I’m about to start implementing a UTFgrid WMS output format based on the MapBox UTFGrid
specification:
https://github.com/mapbox/utfgrid-spec/blob/master/1.3/utfgrid.md

The output format will be as usual a bit more lax than the spec, we plan to allow non
square requests too, even if the expectation is that we are going to receive mostly tiled requests.

Implementation wise we are going to associate each feature to a progressive number,
use this number as a grayscale color that will be used to paint the feature in question on the map,
and then turn the resulting gray map into a char map according to the utfgrid spec …
which seems simple, but once one takes into account all of our rendering abilities, well,
it’s not going to be so much anymore :wink:

In particular, it’s not clear if we are going to be able to work against rendering transformations,
since they make new features pop up out of thin air, but I’ll see what I can do.

Since output formats are pluggable, it would be possible to implement this as a community
module, but I expect to only have a handful of classes (style transformers, image transcoders,
feature collection decorators to add the grayscale ids as a new attribute) plus some eventual
changes to streaming renderer, so I’m not sure the work is worth its own module… was more
thinking of adding it directly to the gs-wms module, but would also like to hear your opinion.

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Hi Andrea,

I must say that this bit of good news almost sent me through the ceiling!

We were contemplating the possibility to add UTFGrid output to GS as an
external module, building on this abandoned package on GitHub: gs-utfgrid
<https://github.com/eacaps/gs-utfgrid&gt; . Quite a few changes seem to have
happened since Geoserver 2.5, so our code would've been mostly experimental
and thus (not yet) suited for open source.

Now that you plan to support this officially, I'm looking forward to
contributing anything we can, to speed up the development (issues, testing,
pull requests, beer donations...).

M Timita

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/New-feature-UTFGrid-output-format-tp5234423p5235770.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

On Wed, Nov 11, 2015 at 5:25 PM, timita <timita@anonymised.com> wrote:

Now that you plan to support this officially, I'm looking forward to
contributing anything we can, to speed up the development (issues, testing,
pull requests, beer donations...).

Testing will be most appreciated, thank you!
I'll notify you when the UTFGrid implementation is merged.

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

Excellent!

Looking forward to it.

M Timita

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/New-feature-UTFGrid-output-format-tp5234423p5235780.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hi all,
pull request for the UTFGrid format support is here:
https://github.com/geoserver/geoserver/pull/1357

Cheers
Andrea

···

On Wed, Nov 4, 2015 at 12:18 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi,
I’m about to start implementing a UTFgrid WMS output format based on the MapBox UTFGrid
specification:
https://github.com/mapbox/utfgrid-spec/blob/master/1.3/utfgrid.md

The output format will be as usual a bit more lax than the spec, we plan to allow non
square requests too, even if the expectation is that we are going to receive mostly tiled requests.

Implementation wise we are going to associate each feature to a progressive number,
use this number as a grayscale color that will be used to paint the feature in question on the map,
and then turn the resulting gray map into a char map according to the utfgrid spec …
which seems simple, but once one takes into account all of our rendering abilities, well,
it’s not going to be so much anymore :wink:

In particular, it’s not clear if we are going to be able to work against rendering transformations,
since they make new features pop up out of thin air, but I’ll see what I can do.

Since output formats are pluggable, it would be possible to implement this as a community
module, but I expect to only have a handful of classes (style transformers, image transcoders,
feature collection decorators to add the grayscale ids as a new attribute) plus some eventual
changes to streaming renderer, so I’m not sure the work is worth its own module… was more
thinking of adding it directly to the gs-wms module, but would also like to hear your opinion.

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Geosolutions’ Winter Holidays from 24/12 to 6/1

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Best Christmas (software) present!

I'm very keen to start using it in development. I will begin next Monday and
whatever issues I happen to find, if I find any, will be reported via JIRA.

Many thanks for all your amazing work on GS.

M Timita

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/New-feature-UTFGrid-output-format-tp5234423p5240102.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

On Fri, Dec 4, 2015 at 8:31 PM, timita <timita@anonymised.com> wrote:

Best Christmas (software) present!

I'm very keen to start using it in development. I will begin next Monday
and
whatever issues I happen to find, if I find any, will be reported via JIRA.

Thanks a lot, that is going to be helpful.

You will have to build off the source of my pull
request, as the pull has not been merged yet.
In other words, you'll have to checkout the sources from this branch:
https://github.com/aaime/geoserver/tree/utfgrid

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

*Geosolutions' Winter Holidays from 24/12 to 6/1*

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

Thank you, Andrea.

View this message in context: Sent from the at Nabble.com.

···

I will follow your instructions.

Sent from my phone

On 4 Dec 2015, at 20:44, geowolf [via OSGeo.org] <[hidden email]> wrote:

On Fri, Dec 4, 2015 at 8:31 PM, timita <[hidden email]> wrote:

Best Christmas (software) present!

I’m very keen to start using it in development. I will begin next Monday and
whatever issues I happen to find, if I find any, will be reported via JIRA.

Thanks a lot, that is going to be helpful.

You will have to build off the source of my pull
request, as the pull has not been merged yet.
In other words, you’ll have to checkout the sources from this branch:
https://github.com/aaime/geoserver/tree/utfgrid

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Geosolutions’ Winter Holidays from 24/12 to 6/1

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.



Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140


Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/New-feature-UTFGrid-output-format-tp5234423p5240116.html
To unsubscribe from New feature: UTFGrid output format, click here.
NAML


Re: New feature: UTFGrid output format
GeoServer - Dev mailing list archive

Hi Andrea,

I didn't have the patience to wait until Monday and I started off.

Some quick feedback, for now. I'm writing here and not on JIRA because, so
far, I have yet to find any bugs. There are a couple of things that I would
like to suggest as feature requests. Please let me know if JIRA is best to
use for this, and I will simply copy them there, as individual entries.

The experiments have been implemented using our internal library for
overlays on Google Maps, not OpenLayers.

It works exactly as I would expect a UTFGrid implementations to work. Tried
this weekend with multiple layers (points and polygons, in a Container Tree
layer group), and it returns the grid of the 'sandwitched' layers as an
accurate representation of what's visible on the map; data on mouse over or
click is returned in the order in which the layers are arranged in the query
parameter 'layers' - i.e. the layer at the top returns data. Also, it works
as expected when one or more layers in the layer group are filtered.

There are two items that I have on the wishlist.

1) It would be great if we can have control over what columns are included
in the grid. I tend to work with census data, for instance, which has
hundreds of columns. That adds quite a bit of bulk to each grid tile. I know
that the OGC WMS specification does not provide anything to use for columns,
in the case of a WMS GetMap request, but is there, perhaps, a chance of
requesting the grids via GetFeatureInfo, where a 'propertyName' parameter
could be used?

2) For layer groups, the data returned could match the pattern of
GetFeatureInfo. That is, every feature intersected by the click / hover
event point, could be included in the data (perhpas with the layer name used
as key in the JSON). But, to be honest, I don't see this as something really
important; with some UTFGrid implementations one actually has to write quite
a bit of JS just to make sure they get only the data of the 'surface' layer.

This is only what I got do in a few hours this weekend. We are using
GeoServer to develop the infrastructure for a fairly large project, so if I
come across any issues with the UTFGrid, I will promptly let you know.

Thanks!

M. Timita

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/New-feature-UTFGrid-output-format-tp5234423p5240206.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

On Sun, Dec 6, 2015 at 7:48 PM, timita <timita@anonymised.com> wrote:

Hi Andrea,

I didn't have the patience to wait until Monday and I started off.

Some quick feedback, for now. I'm writing here and not on JIRA because, so
far, I have yet to find any bugs.

Music for my ears :slight_smile:

There are a couple of things that I would
like to suggest as feature requests. Please let me know if JIRA is best to
use for this, and I will simply copy them there, as individual entries.

Thanks. We have prepared a guide for feature requests, it can be found here:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Basically, in Jira we have a lot of those that are many years old and with
little
hope of getting implemented, so we wrote the above in an attempt to get in
only those
that have a chance of actually getting addressed. Public discussion is
indeed the
first step :slight_smile:

1) It would be great if we can have control over what columns are included
in the grid. I tend to work with census data, for instance, which has
hundreds of columns. That adds quite a bit of bulk to each grid tile. I
know
that the OGC WMS specification does not provide anything to use for
columns,
in the case of a WMS GetMap request, but is there, perhaps, a chance of
requesting the grids via GetFeatureInfo, where a 'propertyName' parameter
could be used?

Yes, while implementing UTFGrid I was considering adding a propertyName to
GetMap requests.
We now have like 3 different outputs that could use such parameter,
UTFGrid, KML and vector
tiles, all three returning attributes that it would make sense to choose on
a per request basis.

I cannot promise I'll work on it, we first need to tick all the boxes in
the contract
sponsoring UTFGrid, and this one is not part of the requirements, not are
the
other two similar formats allowing it yet but ...
yeah, it's still a possibility it might happen, I'll let you know if I
move on with it.

2) For layer groups, the data returned could match the pattern of
GetFeatureInfo. That is, every feature intersected by the click / hover
event point, could be included in the data (perhpas with the layer name
used
as key in the JSON). But, to be honest, I don't see this as something
really
important; with some UTFGrid implementations one actually has to write
quite
a bit of JS just to make sure they get only the data of the 'surface'
layer.

Hum hum... so you would like to know that a certain "pixel" contains 3
features,
and to have all 3 of them in the output, with sub-features in the data
section
to represent them?
That would be complicated, I don't have allowance for that much extra
effort.

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

*Geosolutions' Winter Holidays from 24/12 to 6/1*

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

Thanks for pointing that out. I'm glad I didn't go on to add to the years-old
bulk of feature requests :slight_smile:

I will wait until the UTFGrid is merged. I suppose that, when it happens,
that'll be pretty much its final form. Then, if propertyName is missing from
it, I would like to open a discussion about implementing it.

We are still working on building our GeoServer and GeoTools knowledge - from
a development perspective - but in the near future I'm hoping that we could
tackle features like this ourselves.

With the suggestion no 2, yeah, I thought that it might actually require too
much effort. Anyway, when it is truly necessary to have such functionality,
one could simply request a separate grid tile for each layer and then have
some custom JavaScript witchcraft taking care of the rest.

Happy holidays!

M Timita

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/New-feature-UTFGrid-output-format-tp5234423p5240266.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.