polygons

R: RasterToPolygon works slow, then stop working

允我心安 提交于 2021-02-10 13:45:57
问题 I have a problem to process rasters in R, even if I've done it previously. I can read the data and plot them: however, when I tried to convert my raster to polygon, the R stops working I've tried to update packages, re-install R, on OSX, on Windows 7, always with the same result. Moreover, I've tried to set my projection to NA, but this neither helped. Did you ever experienced problem like this? Do you have some suggestions how to solve the problem? I highly appreciate any suggestions ! MY

R: RasterToPolygon works slow, then stop working

和自甴很熟 提交于 2021-02-10 13:45:25
问题 I have a problem to process rasters in R, even if I've done it previously. I can read the data and plot them: however, when I tried to convert my raster to polygon, the R stops working I've tried to update packages, re-install R, on OSX, on Windows 7, always with the same result. Moreover, I've tried to set my projection to NA, but this neither helped. Did you ever experienced problem like this? Do you have some suggestions how to solve the problem? I highly appreciate any suggestions ! MY

Convert Multipolygon to Polygon in Python [closed]

余生长醉 提交于 2020-07-15 02:29:53
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 months ago . Improve this question Is it possible to convert a Multipolygon into a Polygon which fills all holes or missing inner areas using Shapely? I have been trying since a while but I can't find it in the documentation. The following image I show an example of a multipolygon with those holes I want to

Convert Multipolygon to Polygon in Python [closed]

隐身守侯 提交于 2020-07-15 02:28:20
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 months ago . Improve this question Is it possible to convert a Multipolygon into a Polygon which fills all holes or missing inner areas using Shapely? I have been trying since a while but I can't find it in the documentation. The following image I show an example of a multipolygon with those holes I want to

Convert Multipolygon to Polygon in Python [closed]

北战南征 提交于 2020-07-15 02:28:10
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 months ago . Improve this question Is it possible to convert a Multipolygon into a Polygon which fills all holes or missing inner areas using Shapely? I have been trying since a while but I can't find it in the documentation. The following image I show an example of a multipolygon with those holes I want to

Convert GeoDataFrame polygons to kml file

空扰寡人 提交于 2020-02-06 03:54:48
问题 I have a geopandas GeoDataFrame with various polygons and colors that I'm using to plot meteorological data (another question I asked here): color geometry 0 #fbfdd1 (POLYGON ((-97.12191717810094 32.569, -97.1194... 1 #f3fabf (POLYGON ((-97.12442748846019 32.569, -97.1219... 2 #ebf7b1 (POLYGON ((-97.12944810917861 32.569, -97.1269... 3 #daf0b2 (POLYGON ((-97.18969555780023 32.569, -97.1879... 4 #cbeab3 (POLYGON ((-97.18969555780023 32.5710632999095... 5 #afdfb6 (POLYGON ((-97.18467493708175

Can I force Google Maps to draw polygons with overlapping paths as a union rather than intersection?

瘦欲@ 提交于 2020-01-25 00:58:10
问题 I'm working on a custom Google Map where I need to have place marks made up of several polygons. When I was using a KML file, the polygons would union together, however I had to abandon KML due to the need to present the infowindow programmatically from other items on the page. Now that I'm drawing polygons directly (new google.maps.Polygon) I find that sometimes the items are joined via union and somethings via intersect. This appears to be related to how much overlap there is. My polygons

Intersection of polygons

一个人想着一个人 提交于 2020-01-09 07:37:55
问题 There are two polygons given. how can one determine whether one polygon is inside, outside or intersecting the other polygon? Polygons can be Concave or convex. 回答1: You want to use the separating axis theorem for convex polygons. Basically, for each face of each polygon you project each polygon onto the normal of that face and you see if those projections intersect. You can perform various tricks to reduce the number of these computations that you have to perform- for example, you can draw a

Extract in R fails for small polygons and raster

浪子不回头ぞ 提交于 2020-01-05 04:41:07
问题 This example should be reproducible, the first part (with large polygons) works, the second fails: library(raster) USA.altitude <- getData('alt', country='USA') lower48 <- USA.alt[[1]] Srs1 = Polygons(list(Polygon(cbind(c(-96,-95,-95,-96),c(40,40,41,40)))), "s1") Srs2 = Polygons(list(Polygon(cbind(c(-97,-96,-96,-97),c(40,40,41,40)))), "s2") spdf.large <- SpatialPolygonsDataFrame( SpatialPolygons(list(Srs1,Srs2)), data.frame( z=1:2, row.names=c("s1","s2") ) ) plot(spdf.large) usa.average.elev<

getpaths() polygons google maps api

我们两清 提交于 2020-01-03 14:37:42
问题 I am attempting to retrieve the latlng coordinates of both a polyline and polygon. After I complete the drawing of either object I would like to store the latlng in a database, but for now I am merely trying to show the latlng in a textarea. I have done this easily enough for markers, rectangles, and circles, but the terminology for polylines and polygons is baffling me. When I complete the drawing i use an addDomListener(drawingManager, 'polygoncomplete', ... for polyons and then iterate