Hi,
I was looking into options to Export Map using ArcPy and Javascript client. I have a point geometry that i get it from javascript client and i pass the point to Toolbox that i published on ArcGIS Server.
The question i had was, how do i show buffer with say "10 miles" on the exported map (PDF or PNG) format?
I tried using the Buffer_analysis sample inside the python script from the sample below but output PDF does not show the buffer circle.
http://blogs.esri.com/esri/arcgis/2010/02/23/how-do-i-use-arcpy-geometry-objects-in-scripting/
Thanks and Regards,
Shay ~
Hey do you know how you would invoke the 'within' method? Been struggling with that one.
It's on the Geometry site, but, alas no good sample 😕 Geometry—Help | ArcGIS for Desktop
It's been a while I worked on arcPy stuff. But syntax would be something like below,
withinReturn = Polygon_geom_object.Within(Point_geom_object)
if you have an option and your data is in SQL Server, I would rather use SQL for it. It's much faster and better as you can write stored procedures for your queries like Within, Contains etc https://docs.microsoft.com/en-us/sql/t-sql/spatial-geometry/stwithin-geometry-data-type
withinReturn = Polygon_geom_object.STWithin(Point_geom_object)