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

Some WKT API parameters not working? #6

Open
abubelinha opened this issue Dec 1, 2023 · 0 comments
Open

Some WKT API parameters not working? #6

abubelinha opened this issue Dec 1, 2023 · 0 comments

Comments

@abubelinha
Copy link

abubelinha commented Dec 1, 2023

EDIT: my original example had also some wrongly passed markers (removed them so the issue is just the WKT question).

Using the following link I would expect to see (end of the url) 2 WKT points and a 3-vertices line, but for some reason the line vertices are considered as points too.

https://www.simplemappr.net/api/?width=950&height=700&bbox=-9.2,41.8,-6.8,43.8&layers=lakes,stateprovinces&graticules=true&spacing=1&projection=epsg:3395&legend=true&scalebar=true&wkt[0][color]=255,0,0&wkt[0][data]=GEOMETRYCOLLECTION(POLYGON%20((-8.3%2042.8,%20-8.32%2043.03,%20-7.91%2043.03,%20-7.91%2042.85,%20-8.3%2042.8)),%20LINESTRING%20(-8.82%2042.41,%20-8.35%2042.69,%20-7.77%2042.7,%20-7.71%2042.91),%20POLYGON%20((-8.86%2043.01,%20-9.04%2042.95,%20-8.96%2042.80,%20-8.66%2042.75,%20-8.50%2042.9,%20-8.86%2043.01)))&wkt[1][data]=GEOMETRYCOLLECTION(POINT%20(-7.64%2043.36),POINT%20(-7.21%2043.45),%20LINESTRING%20(-7.64%2043.32,%20-7.17%2043.41,%20-7.48%2043.46))&wkt[1][color]=0,250,0

Perhaps I shouldn't mix different geometries in the same wkt[x] parameter?

BTW in my tests SimpleMappr web interface shows graticules values as integers when I set the spacing = 1 degree (at least for this approximate area using the same projection). Not sure if I can control that using the api.

Thanks a lot for this nice service !!

@abubelinha abubelinha changed the title Some API parameters not working? Some WKT API parameters not working? Dec 2, 2023
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

1 participant