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

Extend drawing capacity (number of elements) #40

Closed
ponceta opened this issue Oct 28, 2020 · 5 comments
Closed

Extend drawing capacity (number of elements) #40

ponceta opened this issue Oct 28, 2020 · 5 comments

Comments

@ponceta
Copy link

ponceta commented Oct 28, 2020

Who requested this new feature?

Ville de Pully

Is your feature request related to a problem?

Yes, after a certain number of drawed features, it is not possible to share some drawings on GeoMapFish through a permalink.

Describe the solution you'd like

A technical solution to overpass the drawing limit

Additional information or points to watch out for

Sharing is mandatory
Post-editing would be a nice feature to that: (like on map.geo.admin.ch)

image

@svareg
Copy link
Contributor

svareg commented Nov 3, 2020

Hi Arnaud,

How many feature did you draw ?
Can you please also tell how long is the whole URL (not shorten).
Thanks.

@svareg
Copy link
Contributor

svareg commented Nov 3, 2020

I think this is somehow linked to the following issue: #12

@ponceta
Copy link
Author

ponceta commented Nov 20, 2020

@svareg Yes indeed, the proposed solution differs but it's the same problem.

The longest URL I was able to see was about 3 A4 pages (wasn't working anymore of course)

@ponceta
Copy link
Author

ponceta commented Nov 20, 2020

I think it was this one :

LIEN_HYPER_LONG

@ponceta
Copy link
Author

ponceta commented Mar 8, 2021

After 2.5 migration, we agreed on a URL max length of 8190 characters. This is due to security/stability reasons for the application.

Default is 4094

camptocamp/c2cgeoportal#7881

To change on your project if you want to have it before next update

in env.project file. override with this line:

# Fixing too long URL error using "--limit-request-line=8190"
GUNICORN_PARAMS=--bind=:8080 --worker-class=gthread --threads=10 --workers=5 --timeout=60 --max-requests=1000 --max-requests-jitter=100 --config=/etc/gunicorn/config.py --worker-tmp-dir=/dev/shm --limit-request-line=8190

This is already great and I would not go further on this type of storage support. Otherwise we should change the way we store drawings in GeoMapFish.

About Gunicorn : https://docs.gunicorn.org/en/stable/settings.html#limit-request-line

@ponceta ponceta closed this as completed Mar 8, 2021
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