Questions tagged [area]

Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane.

Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.

1332 questions
6
votes
1 answer

Calculating correct area for polygons with geopandas

I recently tried to calculate country sizes with geopandas and the included world file; and I am not capable to calculate the correct size for the chosen countries. Maybe someone can give me a hint where I made a mistake? Tried various shapefiles…
Gaelic Miko
  • 71
  • 1
  • 3
6
votes
4 answers

Given a set of rectangles, find 3 bounding rectangles with the smallest area

I am trying to implement redraw regions with up to 3 regions but can't think of an efficient way to find the best set of regions given a set of rectangles. So there would be a set of rectangles and I would need to calculate up to 3 bounding…
Louis
  • 4,172
  • 4
  • 45
  • 62
6
votes
1 answer

Area intersection in Python

I have a code that takes a condition C as an input, and computes the solution to my problem as an 'allowed area' A on the (x,y) space. This area is made of several 'tubes', which are defined by 2 lines that can never cross. The final result I'm…
Lixons
  • 195
  • 1
  • 10
6
votes
2 answers

how to select the object with the largest area?

I have used bwconvhull to detect a certain part of the image, as you can see in the image, there are number of objects with certain centroids. What I want to do is to detect the object with the largest area (1st big one from the left) and neglect…
user3112838
  • 103
  • 1
  • 2
  • 5
6
votes
2 answers

distance between two Shapes/Areas in Java?

If I have two java.awt.geom.Area's made out of the union of various simple Shapes (Polygons and Ellipses), is there a method out there to find the distance (i.e. closest distance) between the two Areas? To clarify: suppose I have two arbitrary…
MarcTheSpark
  • 473
  • 5
  • 14
6
votes
2 answers

How to get UIImage of a specific area in current screen ios

The following code get UIImage of the current screen: UIGraphicsBeginImageContext(self.view.frame.size); CGContextRef ctx = UIGraphicsGetCurrentContext(); [self.view.layer renderInContext:ctx]; UIImage *backgroundImage =…
thomasdao
  • 972
  • 12
  • 26
6
votes
1 answer

The click-sensitive area does not change after animating and interactive view in android

Kindda weird situation... I have an ImageView which has a click interaction associated with it. In the code I change the position of the ImageView via an animation. But when the animation finishes the clickable area is still in the original spot of…
Nar Gar
  • 2,591
  • 2
  • 25
  • 28
6
votes
3 answers

Area of Triangle, Java

I'm trying to build an app which computes the area of a triangle, as per my homework assignment. Not quite sure where I'm going wrong, but I input the lengths of the triangle and would like the proper area displayed according to Heron's formula:…
user1294476
  • 103
  • 1
  • 3
  • 7
5
votes
1 answer

Calculate Earth convex hull polygon area given latitude and longitude

I have searched for explanations and algorhitms how to calculate Earth's polygon surface area. I've found this and this Lets say I got already convex hull points [56.992666,24.126051], [58.00282,25.930147], [58.787955,25.565078],…
Skyzer
  • 584
  • 3
  • 11
  • 27
5
votes
3 answers

Telephone area code to city name on iOS

On Apple's built-in Voicemail app, when it finds a phone number it does not recognize in your address book, it displays an approximate location under the number, presumably based on the phone number. How did they do that?? I'd guess there's a large…
Ryan
  • 231
  • 1
  • 14
5
votes
4 answers

How to use javascript to set text area value in a form in IE

I can use this to set a text area (selectedtext) value in a form (submitquestion) if Firefox, but it fails in IE. document.submitquestion.selectedtext.value = txt;
user570494
  • 557
  • 3
  • 8
  • 14
5
votes
1 answer

How to calculate the area of each grid cell?

I have gridded data of air temperature with the spatial resolution 1.25 x 1.25 degrees (lon-lat). The data covers the Northern Hemisphere, and the first latitude is 90 degrees. I need to calculate the area of each grid cell, and my approach is to do…
5
votes
3 answers

How can I change the filled color of stacked area plot in DataFrame?

I want to change the filled color in the stacked area plots drawn with Pandas.Dataframe. import pandas as pd df = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) ax = df.plot.area(linewidth=0); The area plot example Now I guess…
L. Li
  • 113
  • 2
  • 7
5
votes
0 answers

How to get the value of the area under the curve in Javascript using Chart.js

I want to know if there is a easy way to get the value of the area of the curve that I plot using Chart.js. I know that I can use a line chart and fill the area under the curve "line chart with fill option" I just want to know if I can get the value…
JonLord
  • 175
  • 9
5
votes
2 answers

How do I get my area filled beneath my d3 line chart to be a gradient?

I'm using d3 v4. I would like to create a line chart where the area beneath the graph is an area filled by a gradient going from dark at the top to light at the bottom. I thought this was the way to configure such a gradient …
Dave
  • 15,639
  • 133
  • 442
  • 830