1
我正在嘗試使用Shapely中的'.within'函數...只是一個簡單的檢查,我無法解決這個語法錯誤。語法無效 - 空間空間操作
我只是想重現我在docs.
代碼看到的例子是:
>>> from shapely.geometry import Point, LineString
>>> LineString([(-9765787.9981184918000000 5488940.9749489054000000, -9748582.8016368076000000 5488402.1275707092000000)]).within(Point(-9763788.9782693591000000 5488878.3678984242000000))
返回:
>> Traceback ( File "<interactive input>", line 1
LineString([(-9765787.9981184918000000 5488940.9749489054000000, -9748582.8016368076000000 5488402.1275707092000000)]).within(Point(-9763788.9782693591000000 5488878.3678984242000000))
^
SyntaxError: invalid syntax