首先我用
Python 3.6.5
Python 2.7.14
and mac.
Run Code Online (Sandbox Code Playgroud)
就我而言,我只是在下载模块时说numpy(例如,与其他模块相同)pip3。

和点是相同的。
我该如何解决?
在IOS Swift和Google地图sdk中,我想要每个顶点作为标记的矩形区域。所以,我不希望多边形中有交集,如果有交集,则自动重制为矩形。我可以找到如何检测交叉点,但没有办法重制。我该怎么办?..请帮忙..
我想做之前到之后。
前:

后:

视图控制器..
import UIKit
import GoogleMaps
class CreateLandmarkLocationVC: UIViewController {
var counterMarker: Int = 0
var allMarkers:[GMSMarker] = []
// You don't need to modify the default init(nibName:bundle:) method.
override func loadView() {
// Create a GMSCameraPosition that tells the map to display the
// coordinate -33.86,151.20 at zoom level 6.
let camera = GMSCameraPosition.camera(withLatitude: -33.86, longitude: 151.20, zoom: 6.0)
let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
mapView.delegate = self
mapView.isMyLocationEnabled = true
view …Run Code Online (Sandbox Code Playgroud)