I am trying to read input of lat and long to draw the shape based on condition.The input is standard array of lat and long with 15 decimal accuracy. I am realizing - I am loosing some decimal accuracy (the point was somewhat offsite and complex polygons were never drawn). The samples are here:
the plotted point is: -81.003906 46.502686 and I am generating PDF maps at 1:3000 scale so it is a big deal.
I used eval to read input as list, but probably that was not a good idea. Not sure how and where should I cast the input as decimal?
OrderCoord = eval(arcpy.GetParameterAsText(0)) point = arcpy.Point() array = arcpy.Array() # A list that will hold each of the Polygon objects featureList =  for feature in OrderCoord: # For each coordinate pair, set the x,y properties and add to the # Array object. # for coordPair in feature: point.X = coordPair point.Y = coordPair array.add(point) if OrderType.lower()== 'point': feaERIS = arcpy.Multipoint(array) elif OrderType.lower() =='polyline': feaERIS = arcpy.Polyline(array) else : feaERIS = arcpy.Polygon(array) # Clear the array for future use array.removeAll() # Append to the list of Polygon objects featureList.append(feaERIS)
I added the screenshot of these points at 2000 scales. We have a Flex application where customer can draw and order a geometry. All the data sits in ORACLE and I am working on a GP Tool to print final PDF.