SimpleMappr icon indicating copy to clipboard operation
SimpleMappr copied to clipboard

Some WKT API parameters not working?

Open abubelinha opened this issue 7 months ago • 0 comments

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 avatar Dec 01 '23 22:12 abubelinha