laptop and a wrench

漏洞

When running a GeoAnalytics tool, a dataset in the big data file share that contains a field with a Single data type (Float) generates an error stating "[java.lang.Double is not a valid external schema of float]."

ArcGIS GIS Server
漏洞 ID 编号 BUG-000162789
已提交November 8, 2023
上次修改时间February 13, 2024
适用范围ArcGIS GIS Server
找到的版本11.0
操作系统Windows OS
操作系统版本11.0 64 bit
状态Under Consideration

解决办法

The float field can be cast to a double field and used as a summary field in the Summarize Within tool using pyspark.sql.functions import col layer = spark.read.format("webgis").load("") layer = layer.withColumn("doubleField",col("floatField").cast('double')) sum_fields = [{"statisticType": "Max", "onStatisticField": "doubleField"},{"statisticType": "Min", "onStatisticField": "doubleField"}] sum_layer = geoanalytics.summarize_within(summarized_layer=layer, bin_type="Square", bin_size=10000, bin_size_unit="Meters", standard_summary_fields=sum_fields) sum_layer["output"].show() sum_layer["output"].printSchema().

重现步骤

漏洞 ID: BUG-000162789

软件:

  • ArcGIS GIS Server

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项