[Geoserver-users] Error Using the Pregeneralized Features module on Geoserver

Hello,

I am trying to use the pregeneralized features extension for limiting the
number of vertices drawn for a large dataset that resides in PostGIS
(geometry type 'MultiLineString'). I've been through the tutorials and the
help forums and adjusted my .xml config file in many different ways
according to all the info I've found. I have also set up my Generalizing
Data Store on geoserver in the exact manner that was specified in this
tutorial:

http://osgeo-org.1560.x6.nabble.com/attachment/3819796/0/pregen_tutorial.html
<http://osgeo-org.1560.x6.nabble.com/attachment/3819796/0/pregen_tutorial.html&gt;

After zooming and panning around in OpenLayers, I am still receiving the
following message in the geoserver logs:
"2014-10-08 10:00:10,973 WARN [org.geotools.data.gen] - No hint for geometry
distance in query, fallback to base feature"

From my understanding, this means that something in the config file is not

right and geoserver is defaulting to the base "the_geom" column for
rendering the pipelines.

Here is my .xml file:

<?xml version="1.0" encoding="UTF-8"?>
<GeneralizationInfos version="1.0">
  <GeneralizationInfo dataSourceNameSpace="pipelines_pregen"
dataSourceName="pipelines"
featureName="pipelines_general_tx_1"
baseFeatureName="domestic_pipelines_tx_1" geomPropertyName="the_geom">
    <Generalization distance="5000" featureName="domestic_pipelines_tx_1"
geomPropertyName="the_geom5000"/>
  </GeneralizationInfo>
</GeneralizationInfos>

I've checked and all the parameters are populated correctly in the xml file
according to the guidelines laid out in this thread:

http://osgeo-org.1560.x6.nabble.com/New-postgis-feature-pregeneralized-tutorial-question-tp3797025p3797026.html
<http://osgeo-org.1560.x6.nabble.com/New-postgis-feature-pregeneralized-tutorial-question-tp3797025p3797026.html&gt;

Does anybody know of any reasons why this would be failing to generalize my
features? Any help would be greatly appreciated!

Thanks!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-Using-the-Pregeneralized-Features-module-on-Geoserver-tp5166527.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Joel

No, this is not an error in your configuration.

The renderer component does not pass a proper hint to the Data Source, the result is the log message

“No hint for geometry distance in query, fallback to base feature”

and the original geometry is used.

@Andrea
I think this a regression. The problem is here
org.geotools.data.gen.PreGeneralizedFeatureSource.getRequestedDistance(Query)

Should Joel Open a JIRA issue.

Cheers
Christian

···

On Wed, Oct 8, 2014 at 6:00 PM, joel.schmitt <joel.schmitt@anonymised.com> wrote:

Hello,

I am trying to use the pregeneralized features extension for limiting the
number of vertices drawn for a large dataset that resides in PostGIS
(geometry type ‘MultiLineString’). I’ve been through the tutorials and the
help forums and adjusted my .xml config file in many different ways
according to all the info I’ve found. I have also set up my Generalizing
Data Store on geoserver in the exact manner that was specified in this
tutorial:

http://osgeo-org.1560.x6.nabble.com/attachment/3819796/0/pregen_tutorial.html
<http://osgeo-org.1560.x6.nabble.com/attachment/3819796/0/pregen_tutorial.html>

After zooming and panning around in OpenLayers, I am still receiving the
following message in the geoserver logs:
“2014-10-08 10:00:10,973 WARN [org.geotools.data.gen] - No hint for geometry
distance in query, fallback to base feature”

From my understanding, this means that something in the config file is not
right and geoserver is defaulting to the base “the_geom” column for
rendering the pipelines.

Here is my .xml file:

<?xml version="1.0" encoding="UTF-8"?>

I’ve checked and all the parameters are populated correctly in the xml file
according to the guidelines laid out in this thread:

http://osgeo-org.1560.x6.nabble.com/New-postgis-feature-pregeneralized-tutorial-question-tp3797025p3797026.html
<http://osgeo-org.1560.x6.nabble.com/New-postgis-feature-pregeneralized-tutorial-question-tp3797025p3797026.html>

Does anybody know of any reasons why this would be failing to generalize my
features? Any help would be greatly appreciated!

Thanks!


View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-Using-the-Pregeneralized-Features-module-on-Geoserver-tp5166527.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH

Christian-- Thank you for responding to my issue. I'm assuming Andrea is an
admin for this forum as I've seen her in plenty of other threads giving very
helpful, Geoserver-specific advice.

Do you think I should go ahead and open a JIRA issue?

Thanks again,
Joel

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-Using-the-Pregeneralized-Features-module-on-Geoserver-tp5166527p5167240.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Oct 13, 2014 at 4:13 PM, joel.schmitt <joel.schmitt@anonymised.com

wrote:

Christian-- Thank you for responding to my issue. I'm assuming Andrea is an
admin for this forum as I've seen her in plenty of other threads giving
very
helpful, Geoserver-specific advice.

That would be a "him" :-p

Do you think I should go ahead and open a JIRA issue?

Please do open

Cheers
Andrea

--

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

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