Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

estimate_extent with PostGis 2.1.0 #3273

Closed
divya1c opened this issue Jan 29, 2016 · 4 comments
Closed

estimate_extent with PostGis 2.1.0 #3273

divya1c opened this issue Jan 29, 2016 · 4 comments

Comments

@divya1c
Copy link

divya1c commented Jan 29, 2016

Hi!

I set estimated_extent parameter to true in my xml file, and I get these warnings -
CONTEXT: SQL function "st_estimated_extent" during startup
WARNING: ST_Estimated_Extent signature was deprecated in 2.1.0. Please use ST_EstimatedExtent

Is there a way to avoid these warnings? I am using PostGis 2.1.0.

Thanks!

@springmeyer
Copy link
Member

Thanks for catching this, looks like they renamed the function :(.

Overall using estimated_extent is not a great idea. It is better to just get the extent via ST_Extent manually from postgis for your table and then use that to populate the extent parameter for Mapnik.

@divya1c
Copy link
Author

divya1c commented Jan 29, 2016

In my case, extents will be different for different users in the system. Would you recommend any good way of doing this?

Thanks :)

@springmeyer
Copy link
Member

@divya1c yes: dynamically create your mapnik styles per user, then cache them.

@divya1c
Copy link
Author

divya1c commented Jan 29, 2016

Great! thanks! will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants