Skip to content
New issue

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

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

Already on GitHub? # to your account

Viewer.plot issues #53

Open
moovida opened this issue Apr 6, 2019 · 1 comment
Open

Viewer.plot issues #53

moovida opened this issue Apr 6, 2019 · 1 comment

Comments

@moovida
Copy link

moovida commented Apr 6, 2019

Given the following testcode:

import geoscript.geom.*
import geoscript.viewer.*

def multiLineCoordinates = [
    [[10,10],[20,20],[10,40]],
    [[40,40],[30,30],[40,20],[30,10]]
]
def geom = new MultiLineString(multiLineCoordinates)

Viewer.plot([size: [800,800]],[geom])

I get the following:

image

You can see the points being shifted against the lines they are part of.

The same result can be obtained by avoiding to set the size:

Viewer.plot([geom])

and then enlarging the plot window.

@jericks
Copy link
Member

jericks commented Apr 10, 2019

Confirmed. After looking at the code, this is probably an issue with org.geotools.renderer.chart.GeometryRenderer or org.geotools.renderer.chart.GeometryDataset.

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

No branches or pull requests

2 participants