Questions tagged [point]

A point is a fundamental geometry entity.

Points are the basis for any other geometry entities, like lines, boxes, polygons, etc.

Find more information on points here.

2011 questions
7
votes
4 answers

Find the distance between two points in MYSQL. (using the Point Datatype)

Suppose I have a 2 column table like this: | user_id | int(11) | NO | UNI | NULL | | | utm | point | NO | MUL | NULL | | As you can see, it's very simple. utm is a Point data-type. I insert…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
7
votes
3 answers

Best practice for double coordinates for Point

There is System.Drawing.Point which accepts int values for X and Y coordinate paramenters. This is not what I need. Then there is System.Windows.Point which accepts double values for X and Y. This is what I'd need, however I am not sure if this is…
Boris
  • 9,986
  • 34
  • 110
  • 147
7
votes
3 answers

Get polygons close to a lat,long in MySQL

Does anyone know of a way to fetch all polygons in a MySQL db within a given distance from a point? The actual distance is not that important since it's calculated for each found polygon later, but it would be a huge optimization to just do that…
Gren
  • 73
  • 1
  • 3
7
votes
2 answers

Distance of point feature to nearest polygon in R

I working on a project at the moment, where I have a point feature -- the point feature includes a 142 points -- and multiple polygon (around 10). I want to calculate the distance between every single point and the nearest polygon feature in R. My…
user1738753
  • 626
  • 4
  • 12
  • 19
7
votes
3 answers

2D rendering and zooming in with SVG

My task is to develop an algorithm that fits different kinds of curves onto a given point-sequence in 2 dimensional space. To be able to test my algorithm, I have chosen SVG to display the result. I have several problems with it. As there may be…
libeako
  • 2,324
  • 1
  • 16
  • 20
7
votes
1 answer

Style Point vector as Marker in Openlayers?

It seems like getting onDrag for Markers on OpenLayers isn't possible (this and this, as examples) So I would like to use a vector layer, and then add points to it instead of markers. My problem is that the vector points doesn't look like the…
jperelli
  • 6,988
  • 5
  • 50
  • 85
6
votes
2 answers

Position on Screen Right Bottom

I need to position JFrame on my screen. But I can't make them appear on the right side of the screen bottom. Please can someone explain me how to position them, if you can describe how to do it, it would be great. Here is the code so far. …
Isuru
  • 3,818
  • 13
  • 49
  • 64
6
votes
5 answers

Algorithm to find all points on a 2D grid some distance away from another point

I have some point on a 2D grid (x, y) and I need to find all points that are n distance away from that point. The way I'm measuring distance is by using the distance formula between the two points. Anyone know how to do this? Edit: Just for…
Justin G
  • 776
  • 1
  • 10
  • 25
6
votes
3 answers

Calculate Width and Height from 4 points of a polygon

I have four points which form a rectangle, and I am allowing the user to move any point and to rotate the rectangle by an angle (which rotates each point around the center point). It stays in near-perfect Rectangle shape (as far as PointF precision…
Trevor Elliott
  • 11,292
  • 11
  • 63
  • 102
6
votes
4 answers

How to evenly distribute points around the perimeter of a rectangle

I'm looking for a way to distribute points along a portion of the perimeter of a rectangle. These points needs to be evenly far away from each other. I have a rectangular (usually square) bounds, and 2 points (ps and pe) along that perimeter that…
DanSC
  • 63
  • 3
6
votes
1 answer

How to convert two coordinate columns to a column of Shapely points

I'm trying to perform an operation on a whole column but I'm getting a type error, I want to make a column containing a Shapely Point: crime_df = crime_df[crime_df['Latitude'].notna()] crime_df =…
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
6
votes
2 answers

Split line by multiple points using sf package

I am trying to split a large line shape by pairs of points along the line. Based on previous questions asked mainly by @mbcaradima here, here, here and here, I have put together some code which works for single points, but does not for multiple…
M.Teich
  • 575
  • 5
  • 22
6
votes
1 answer

Fast, Real-time plotting of points using pyqtgraph and a LiDAR

I want to create a real-time, point plotting GUI. I am using the Scanse Sweep LiDAR, and at each sweep of this LiDAR (working between 1 - 10Hz) I receive approximately 1000 points (x, y) describing the LiDARs surrounding. This is a 2D LiDAR. I have…
Netsiniksam
  • 123
  • 1
  • 1
  • 11
6
votes
1 answer

Plot multiple points of a single factor side by side

This is a sample data and a plot that I produced. library(ggplot2) value<-c(-1.01, -0.02,1.61,0.60, -0.98,0.19,4.68,-0.86,-3.52,-1.85,-2.08,-0.48,0.10,-1.05,-0.003)…
user53020
  • 889
  • 2
  • 10
  • 33
6
votes
3 answers

Detect square in a List of Points

I want to test if there is a square in a list of Point object or not. This is my Point class : class Point { private int x; private int y; public Point(int x, int y) { this.x = x; this.y = y; } public int…
Mohamed
  • 836
  • 1
  • 13
  • 23