@@ -327,18 +327,18 @@ def execute(self, exec_context: knext.ExecutionContext, input_1):
327327 name = "Transformed geo table" ,
328328 description = "Transformed Geo input table" ,
329329)
330+ @knut .geo_node_description (
331+ short_description = "This node generate rectangles representing the envelope of each geometry." ,
332+ description = """This node generate rectangles representing the envelope of each geometry.
333+ That is, the point or smallest rectangular polygon (with sides parallel to the coordinate axes)
334+ that contains each of the geometries.""" ,
335+ references = {
336+ "Envelop" : "https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoSeries.envelope.html" ,
337+ },
338+ )
330339class BoundingBoxNode :
331- """
332- This node generate rectangles representing the envelope of each geometry.
333- """
334-
335- geo_col = knext .ColumnParameter (
336- "Geometry column" ,
337- "Select the geometry column to transform." ,
338- # Allow only GeoValue compatible columns
339- column_filter = knut .is_geo ,
340- include_row_key = False ,
341- include_none_column = False ,
340+ geo_col = knut .geo_col_parameter (
341+ description = "Select the geometry column to compute the bounding box."
342342 )
343343
344344 def configure (self , configure_context , input_schema_1 ):
@@ -373,21 +373,22 @@ def execute(self, exec_context: knext.ExecutionContext, input_1):
373373 description = "Table with geometry column to transform" ,
374374)
375375@knext .output_table (
376- name = "Transformed geo table" ,
376+ name = "Transformed Geo table" ,
377377 description = "Transformed Geo input table" ,
378378)
379+ @knut .geo_node_description (
380+ short_description = "This node generate the smallest convex Polygon containing all the points in each geometry." ,
381+ description = """This node generate the smallest convex Polygon containing all the points in each geometry.
382+ The convex hull of a geometry is the smallest convex Polygon containing all the points in each geometry,
383+ unless the number of points in the geometric object is less than three. For two points, the convex hull
384+ collapses to a LineString; for 1, a Point.""" ,
385+ references = {
386+ "Convex hull" : "https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoSeries.convex_hull.html" ,
387+ },
388+ )
379389class ConvexHullNode :
380- """
381- This node generate the smallest convex Polygon containing all the points in each geometry.
382- """
383-
384- geo_col = knext .ColumnParameter (
385- "Geometry column" ,
386- "Select the geometry column to transform." ,
387- # Allow only GeoValue compatible columns
388- column_filter = knut .is_geo ,
389- include_row_key = False ,
390- include_none_column = False ,
390+ geo_col = knut .geo_col_parameter (
391+ description = "Select the geometry column to compute the convex hull."
391392 )
392393
393394 def configure (self , configure_context , input_schema_1 ):
@@ -425,25 +426,23 @@ def execute(self, exec_context: knext.ExecutionContext, input_1):
425426 name = "Transformed geo table" ,
426427 description = "Transformed Geo input table" ,
427428)
429+ @knut .geo_node_description (
430+ short_description = "This node returns a geometry containing the union of all geometries in the input column." ,
431+ description = "This node returns a geometry containing the union of all geometries in the input column." ,
432+ references = {
433+ "Unary union" : "https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoSeries.unary_union.html" ,
434+ },
435+ )
428436class UnaryUnionNode :
429- """
430- This node generate the smallest convex Polygon containing all the points in each geometry.
431- """
432-
433- geo_col = knext .ColumnParameter (
434- "Geometry column" ,
435- "Select the geometry column to transform." ,
436- # Allow only GeoValue compatible columns
437- column_filter = knut .is_geo ,
438- include_row_key = False ,
439- include_none_column = False ,
437+ geo_col = knut .geo_col_parameter (
438+ description = "Select the geometry column to compute the unary union."
440439 )
441440
442441 def configure (self , configure_context , input_schema_1 ):
443442 self .geo_col = knut .column_exists_or_preset (
444443 configure_context , self .geo_col , input_schema_1 , knut .is_geo
445444 )
446- return input_schema_1
445+ return None
447446
448447 def execute (self , exec_context : knext .ExecutionContext , input_1 ):
449448 gdf = gp .GeoDataFrame (input_1 .to_pandas (), geometry = self .geo_col )
0 commit comments