我正在使用两种形状,我希望与第二种形状完全清晰重叠。为此,我与<?php
class Test{
protected static $myVar;
public static function printHello(){
self::$myVar = 'Hello'; //This will assign the value to the static variable $myVar
echo self::$myVar; //This prints the value of static variable $myVar
}
}
Test::printHello();
?>
有所不同,并且它可以正常工作。第一个形状是rgeos :: gDifference ()
,第二个形状是SpatialPolygonsDataFrame
。因此,我需要SpatialPolygons
,但我得到SpatialPolygonsDataFrame
。
我还没有找到解决这个问题的方法。有谁知道解决方案? 我的剧本是:
SpatialPolygon