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

"Point" terminology #39

Closed
dave1010 opened this issue May 23, 2014 · 9 comments
Closed

"Point" terminology #39

dave1010 opened this issue May 23, 2014 · 9 comments

Comments

@dave1010
Copy link
Contributor

An instance of the Point class has an origin and a destination coordinate. This seems like poor naming, as in most GIS implementations (and semantically) a point has exactly 1 coordinate.

Having a quick Google around, either MultiPoint or Line would make more sense, although these are generally not limited to 2 coordinates.

Maybe I'm viewing the class wrongly and it shouldn't be thought of a value object at all but a coordinate service / calculator. In that case perhaps Point should be in a different namespace that implies it's a tool rather than a value object, which is what Convert does.

Feel free to close as wontfix, as I guess "geotools" implies that this is a collection of tools, as opposed to a component to drop into the business domain.

@toin0u
Copy link
Member

toin0u commented May 23, 2014

Hi @dave1010
You are 100% right and I also tought about that.. But I do not have a better name :) Do you have any suggestion maybe ?

@gabrielbull
Copy link
Contributor

👍 for renaming to Line. It was confusing for me as well, took me time to figure out point was actually a line.

@toin0u
Copy link
Member

toin0u commented Oct 6, 2014

I'm ok with Line :)

@codisart
Copy link
Contributor

codisart commented Oct 8, 2015

Hi sorry to intrude into the conversation but shouldn't the name of this class be Vertex ?

@toin0u
Copy link
Member

toin0u commented Oct 8, 2015

@codisart I think your proposition sounds legit - it might be the best actually :)

@toin0u
Copy link
Member

toin0u commented Oct 16, 2015

Fixed by #68 - Thanks @codisart !

@toin0u toin0u closed this as completed Oct 16, 2015
@remi-san
Copy link
Contributor

remi-san commented Mar 9, 2016

Hey,

I think there's been a misunderstanding there. What you described is an Edge, not a Vertex.

An edge is the line segment joining 2 vertices. Vertices are just a point, not a line.

So, it's going to be a new BC break, but I think that we should rename it once more.

@codisart
Copy link
Contributor

codisart commented Mar 9, 2016

Fudge, I think you right.

I thought vertex was the translation needed.
But, I just checked and in fact it is vector which is used to describe a segment with a direction.

(I'm french and vertex is so near the french word "vecteur" that I did not check the right meaning of the word, I am so sorry.)

@remi-san
Copy link
Contributor

remi-san commented Mar 9, 2016

Here's my proposition to fix it: PR #87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants