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
13
votes
6 answers

How to find out Y coordinate of specific point in bezier curve in canvas?

I need to find out Y coordinate of specific point of bezier curve in canvas. Do you know, how to find it out? Thank you
Jan Kožušník
  • 683
  • 3
  • 16
  • 30
12
votes
1 answer

How is jitter determined in ggplot?

I was looking over the documentation on jitter in ggplot while making some plots, and I realized that I don't really understand the argument. It states that the arguments are: Width: degree of jitter in x direction. Defaults to 40% of the…
tumultous_rooster
  • 12,150
  • 32
  • 92
  • 149
12
votes
1 answer

Determine if Shapely point is within a LineString/MultiLineString

I am trying to use Shapely's within function to do a 'spatial join' of a LineString and a Point file (FYI, the point file was generated using the interpolate function on the LineString). Problem is - nothing is being returned. # this condition is…
user14696
  • 657
  • 2
  • 10
  • 30
12
votes
1 answer

mysql query points within polygon - no results

I'm pretty sure that I'm doing multiple things wrong here but I'm not sure what... The table (minus a few fields): CREATE TABLE IF NOT EXISTS `stuff` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `lat` decimal(12,7) NOT NULL, `lon`…
ppetree
  • 826
  • 3
  • 15
  • 31
12
votes
4 answers

Test of Point inside polygon in Android

The other day I did a class in Java to calculate if a point(X,Y) is inside a polygon. (X and Y are double, because will be geo-coordinates). I know that Java has the class Polygon, but I had to use Path2D and Point2D, because Polygon don't allow…
Shudy
  • 7,806
  • 19
  • 63
  • 98
12
votes
2 answers

Play vs. Lift Pain Points

EDIT Slow compile times are now largely mitigated by sub project enabled builds, a huge win. Have switched away from Play's built-in asset generators (i.e. for Coffeescript and LESS) and moved over to 3rd party Grunt JS; now code changes during…
virtualeyes
  • 11,147
  • 6
  • 56
  • 91
11
votes
1 answer

How do I test if Point is in Polygon/Multipolygon with geopandas in Python?

I have the Polygon data from the States from the USA from the website arcgis and I also have an excel file with coordinates of citys. I have converted the coordinates to geometry data (Points). Now I want to test if the Points are in the…
Kamel
  • 141
  • 1
  • 9
11
votes
3 answers

How to get distance between two points in Android?

I set the two pointers inside ACTION_POINTER_DOWN point1.set(event.getX(0),event.getY(0)); point2.set(event.getX(1),event.getY(1)); How can I get the distance between this two points? Is there any way to get it? I want the distance to make some…
user4729909
11
votes
1 answer

get center polygon C#

what algorithm that i can use to get the center of polygon (red point) case 1 : i try with maxX, maxY, minX, minY and i got the wrong point (black point) case 2 : i try to get the second max and min coordinate X and Y, but i got problem with the…
Zenithxm
  • 135
  • 3
  • 13
11
votes
2 answers

SQL Geography point inside polygon not returning true on STIntersect (but returns true using Geometry)

I don't want to resort in converting my geography data to geometry just so it returns true in STIntersect. Here is the code in SQL: DECLARE @point GEOGRAPHY = GEOGRAPHY::Point(1, 1, 4326) DECLARE @polygon GEOGRAPHY =…
MilkTea027
  • 301
  • 1
  • 5
  • 24
11
votes
5 answers

Test if point is in some rectangle

I have a large collection of rectangles, all of the same size. I am generating random points that should not fall in these rectangles, so what I wish to do is test if the generated point lies in one of the rectangles, and if it does, generate a new…
pafcu
  • 7,808
  • 12
  • 42
  • 55
11
votes
2 answers

Finding if point is inside geometry

I am writing a code that requires finding if a point is inside a specific geometry. The geometry may an n sided polygon (not necessarily convex) in 2 Dimensions or an STL geometry in 3 dimensions. I can actually write a search code using some…
Prapanch Nair
  • 185
  • 1
  • 10
11
votes
3 answers

Lon/Lat Order when using spatial POINT type with MySQL

What is the correct order when setting a POINT in MySQL? Even the answers in SO questions differ on this: Moving lat/lon text columns into a 'point' type column Is it POINT(lat lon) or POINT(lon lat) As far, as i see it, it should be the first…
madc
  • 1,674
  • 2
  • 26
  • 41
10
votes
4 answers

Fast algorithm to find the x closest points to a given point on a plane

I would like to find a fast algorithm in order to find the x closest points to a given point on a plane. We are actually dealing with not too many points (between 1,000 and 100,000), but I need the x closest points for every of these points. (where…
Michael Junk
  • 461
  • 2
  • 7
  • 15
10
votes
2 answers

Textured points in OpenGL ES 2.0?

I'm trying to implement textured points (e.g. point sprites) in OpenGL ES 2.0 for a particle system. Problem I'm having is the points all render as solid black squares, rather than having the texture properly mapped. I have verified that…
Ivan
  • 177
  • 1
  • 3
  • 7