Skip to content

Some WKT API parameters not working?  #6

Description

@abubelinha

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 !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions