area

How to get points from OpenStreetMap of a certain country?

喜欢而已 提交于 2020-02-05 08:42:27
问题 i'm trying to get the list of all schools in my country, and after several tries i write the following query that works with no errors on http://overpass-turbo.eu: /* This has been generated by the overpass-turbo wizard. The original search was: “amenity=school”=“yes” */ [out:json][timeout:60]; // gather results ( // query part for: “amenity=school” node[amenity=school]({{geocodeBbox:Italia}}); way[amenity=school]({{geocodeBbox:Italia}}); relation[amenity=school]({{geocodeBbox:Italia}}); ); /

Fill area between multiple lines in plot

做~自己de王妃 提交于 2020-01-30 10:56:16
问题 I have got a plot with 3 lines as follows: a = data.frame(time = c(1:100), x = rnorm(100)) b = data.frame(time = c(1:100), y = rnorm(100)) c = data.frame(time = c(1:100), z = rnorm(100)) plot(a$time, a$x, type = 'l') lines(b$time, b$y, type = 'l') lines(c$time, c$z, type = 'l') I need to fill the area between the lowest and maximum value of the lines so that I get a unique polygon of a given colour. I know about the polygon function but I do not know how to use it in this case. Any suggestion

A fast way (or alternate way) to dynamically load 40000 links in an image map?

只谈情不闲聊 提交于 2020-01-25 09:54:48
问题 I'm bringing back a GD Image which is generated from user information in a database, now on the page where this image is viewed. I have the following area map for the image generated by the same sort of query to create a link to that users profile. However, there are a possible 40000 users in the database... anyway, what I have IS working, but as you can imagine it takes a long while for it to load. <map id="pixel" name="pixel"> <? $map_x_1 = 0; $map_y_1 = 0; $map_x_2 = 5; $map_y_2 = 5;

How to make Admin Panel in MVC.Net? [closed]

末鹿安然 提交于 2020-01-23 01:43:29
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I want to implement an admin panel in my ASP.NET MVC Project using "Areas" but I don't have any idea about this. Please tell me how to implement an admin panel in an ASP.NET MVC Project, either using Controllers or Areas. Actually I am implementing an ASP.NET MVC Project for a

Selectbox dropdown styling [duplicate]

寵の児 提交于 2020-01-16 12:01:08
问题 This question already has answers here : How do I style a <select> dropdown with only CSS? (24 answers) Closed 5 years ago . I am working on a project where i need to style a selectbox. I can easy style the selectbox to match the psd, but when it comes to the dropdown area, its driving me nuts. How is that possible? I have tryed with adding a overlay to the dropdown area with som css stuff, but i can't get it to work well. The code for selectbox: #sidebar select{ background: transparent;

Point Outside of Area Which is Closest to Point Inside?

∥☆過路亽.° 提交于 2020-01-16 04:29:06
问题 I have a program where an entity moves around in two-dimensional space. To move one step, the entity picks its next point, and then sets it as his current point. Sometimes, however, the entity's next point lies in an Area (java.awt.geom.Area) that is forbidden (the "forbidden area" is actually a velocity obstacle). How can the entity pick the point outside the Area which is closest to the entity's preferred point? The Area is composed of different shapes (sometimes, the shapes are not

Gtk buttons over a Gtk drawing area

我们两清 提交于 2020-01-14 03:50:13
问题 i' working with Gtk developing some app. I must put some buttons over a map. I'm drawing the map on a GtkDrawingarea, but i'm not able to put buttons over it. Any suggestion? Thanks 回答1: Suggestions: Put both the drawing area and the buttons inside a GtkFixed container. Probably not the best solution, because GtkFixed has no way of controlling the z-ordering (other than the order in which you add the widgets to it?) Instead of using GtkDrawingArea , use a canvas widget that can include other

ThreeJS: 3D Object Area Calculation (Triangulated)

我与影子孤独终老i 提交于 2020-01-11 12:27:27
问题 I need to calculate the area/surface of a whole object in threeJS. Thats what I have: var _len = object.geometry.faces.length, _area = 0.0; if (!_len) return 0.0; for (var i = 0; i < _len; i++) { var va = object.geometry.vertices[object.geometry.faces[i].a]; var vb = object.geometry.vertices[object.geometry.faces[i].b]; var vc = object.geometry.vertices[object.geometry.faces[i].c]; var ab = vb.clone().sub(va); var ac = vc.clone().sub(va); var cross = new THREE.Vector3(); cross.crossVectors(

How to divide an area composed of small squares into bigger rectangles?

非 Y 不嫁゛ 提交于 2020-01-10 14:24:23
问题 Where would i go to look for algorithms that take a 2d grid of values that are either 0 or 1 as input and then identifies all possible non-overlapping rectangles in it? In a more practical explanation: I am drawing a grid that is represented by a number of squares, and i wish to find a way to combine as many adjacent squares into rectangles as possible, in order to cut down on the time spent on cycling through each square and drawing it. Maximum efficiency is not needed, speed is more

Error calculating the area between two lines using “integrate”

﹥>﹥吖頭↗ 提交于 2020-01-07 02:57:05
问题 I'm attempting to calculate the area between two plots using R's integrate function. I have two forecast curves that I'm able to place on the same plot and also shade in the area between the two curves, for visualisation: x1 = seq(1,200,1) y1 = # 200 numbers from 0.02 - 1.000 y2 = # 200 numbers from 0.00 - 0.95 plot(x1,y1,type="l",bty="L",xlab="Forecast Days",ylab="Curve Actuals") points(x1,y2,type="l",col="red") polygon(c(x1,rev(x1)),c(y2,rev(y1)),col="skyblue") Following the example here