The line or polygon is created from lowest to highest value. OID-The ObjectID values are used to determine the draw order for the feature.Click the Select draw order drop-down arrow and choose a draw order option.The Production Points to Line/Polygon dialog box appears. Click the Production Start Editing button on the Production Editing toolbar.On the main menu, click Customize > Toolbars > Production Editing Advanced.On the main menu, click Customize > Toolbars > Production Editing.Convex Hull represents the shape of the selected points, regardless of draw order and without internal holes. The Production Points To Line Or Polygon tool uses these selected numeric values to create the polyline or polygon feature, drawing from lowest to highest.įor polygon feature layers, the Convex Hull option provides another method to define how the polygon is created. This list is populated with all the layer's numeric fields. If the selected target layer is a polygon layer, you can choose from OID, Sort Field, or Convex Hull options.Ĭhoosing the Sort Field option for either line or polygon target layers displays another list of options in the Select sort field drop-down list that changes dynamically depending on the selected feature layer.If the selected target layer is a polyline layer, you can choose from OID (Object ID) or Sort Field options.The Production Points To Line Or Polygon tool uses the numeric values of the option you select, going from lowest to highest, to create the polyline or polygon feature. The Select draw order drop-down arrow on the Production Points to Line/Polygon dialog box displays a set of options associated with numeric values. With the Production Points To Line Or Polygon tool, you can define how the polyline or polygon feature you want to create is drawn from the selected points. Ideally, the points would be loaded with associated waypoint IDs that can be used to determine to which path or area the points belong and/or define draw order. The Production Points To Line Or Polygon tool allows you to generate a linear or polygon feature from a selected set of points depending on the selected template.įor example, you can load a set of collected points from a global positioning system (GPS) unit into ArcGIS and use this tool to create polyline or polygon features from those points. I got a memory layer where polylines were the distance between centroid and farthest point of each polygon (feature) as it can be observed at the next image:Īt the Python Console of QGIS, it was also printed the index of feature, the index of point in feature where distance from centroid is a maximum and, finally, maximum distance.Available with Production Mapping license. QgsMapLayerRegistry.instance().addMapLayer(mem_layer) Uri = "LineString?crs=epsg:" + str(epsg) + "&field=id:integer""&index=yes"įeat.setGeometry(omPolyline(lengths)) Using next PyQGIS code: from math import sqrtįeats = Ĭentroids = ORDER BY ST_MaxDistance(points,Center) DESC ST_Centroid(Villages_v4_Trial_region.geom) as Center, SELECT Villages_v4_Trial_region.geom as FarPoint, Center from ( ORDER BY ST_MaxDistance(points,ST_Centroid(Villages_v4_Trial_region.geom)) DESCĪnd if you are interested in creating a Circle from the centroid: SELECT ST_Buffer(Center,ST_Distance(Center,FarPoint)) as Circle Generate_series(1, ST_NPoints(ST_ExteriorRing(ST_ConvexHull(Villages_v4_Trial_region.geom))))) as points,
![mapinfo 10 geberate circle on point mapinfo 10 geberate circle on point](https://cdn.shopify.com/s/files/1/0248/6167/products/Busse_Round_Spurs_150011_800x.jpg)
SELECT ST_PointN(ST_ExteriorRing(ST_ConvexHull(Villages_v4_Trial_region.geom)), Get the furthest Point: SELECT Villages_v4_Trial_region.geom as FarPoint from ( Using PostGIS, I used ST_ConvexHull to simplify the polygon for a faster result: