多边形裁剪

使用说明

对栅格数据进行多边形裁剪。返回的结果类型为栅格数据集(RasterRDD)。

有时,我们的研究范围或者感兴趣区域较小,仅涉及当前栅格数据的一部分,但是研究范围要求较为精确,这时可以通过指定一个多边形区域对栅格数据进行裁剪,提取该区域内的栅格数据。

RasterClipResult

裁剪多边形

对栅格数据进行裁剪的多边形区域(MultiPolygon),支持以WKT与GeoJson格式进行表述。其中,GeoJson格式只取geometry的值部分。

以下为裁剪多边形参数的填写示例:

格式
WKT MULTIPOLYGON(((119.4568864012999 42.6165414465,119.4946108001999 42.6246252463,119.533682499 42.6246252463,119.5727541978 42.6165414465,119.5875744974 42.5990265471,119.6037420969 42.5842062475,119.634729996 42.5720805479,119.6535921953999 42.55726024829999,119.6657178951 42.5370507489,119.6764962947999 42.4979790501,119.6805381946 42.4791168506,119.6657178951 42.4562127513,119.6441610956999 42.4386978518,119.6306880961 42.4144464525,119.6293407962 42.39558425309999,119.6387718958999 42.365943654,119.6401191957999 42.3524706544,119.6306880961 42.3349557549,119.6252988963 42.30396785579999,119.6118258967 42.28510565639999,119.5687122979999 42.2783691566,119.5606284981999 42.2783691566,119.5323351989999 42.2904948562,119.5161675994999 42.30262055589999,119.5 42.30935705569999,119.4946108001999 42.33091385499999,119.5013473 42.34303955469999,119.5255986992 42.35516525429999,119.5296405991 42.3807639535,119.5282932992 42.39019505329999,119.5013473 42.38750045329999,119.4824851004999 42.3928896532,119.4649702009999 42.3969315531,119.4474553015999 42.4063626528,119.4326350019999 42.42791945209999,119.4056890027999 42.44678165159999,119.3800903035999 42.4642965511,119.3558389042999 42.48181145049999,119.3585335042 42.4966317501,119.3800903035999 42.51549394949999,119.3962579031 42.5545656484,119.3922160032 42.59767924709999,119.4043417027999 42.6111522467,119.4299404020999 42.6111522467,119.4568864012999 42.6165414465)))
GeoJson {“coordinates”:[[[[119.45688640130,42.61654144650],[119.49461080020,42.62462524630],[119.5336824990,42.62462524630],[119.57275419780,42.61654144650],[119.58757449740,42.59902654710],[119.60374209690,42.58420624750],[119.6347299960,42.57208054790],[119.65359219540,42.55726024830],[119.66571789510,42.53705074890],[119.67649629480,42.49797905010],[119.68053819460,42.47911685060],[119.66571789510,42.45621275130],[119.64416109570,42.43869785180],[119.63068809610,42.41444645250],[119.62934079620,42.39558425310],[119.63877189590,42.3659436540],[119.64011919580,42.35247065440],[119.63068809610,42.33495575490],[119.62529889630,42.30396785580],[119.61182589670,42.28510565640],[119.5687122980,42.27836915660],[119.56062849820,42.27836915660],[119.5323351990,42.29049485620],[119.51616759950,42.30262055590],[119.50,42.30935705570],[119.49461080020,42.3309138550],[119.50134730,42.34303955470],[119.52559869920,42.35516525430],[119.52964059910,42.38076395350],[119.52829329920,42.39019505330],[119.50134730,42.38750045330],[119.48248510050,42.39288965320],[119.4649702010,42.39693155310],[119.44745530160,42.40636265280],[119.4326350020,42.42791945210],[119.40568900280,42.44678165160],[119.38009030360,42.46429655110],[119.35583890430,42.48181145050],[119.35853350420,42.49663175010],[119.38009030360,42.51549394950],[119.39625790310,42.55456564840],[119.39221600320,42.59767924710],[119.40434170280,42.61115224670],[119.42994040210,42.61115224670],[119.45688640130,42.61654144650]]]],“type”:“MultiPolygon”}

注:在模型的导入和导出过程中,会对裁剪多边形参数进行GeoJson格式化处理,该处理并不影响模型使用,您可以自由选择以WKT或GeoJson格式进行裁剪多边形参数设置。

参数说明

参数名 默认值 参数释义 参数类型
待裁剪RDD 待裁剪的 RasterRDD RasterRDD
裁剪多边形 裁剪多边形 MultiPolygon