ArcPy Geometry and Export Map

4025
2
02-09-2015 05:47 PM
shaileshgavathe
Occasional Contributor II

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 ~

0 Kudos
2 Replies
by Anonymous User
Not applicable

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 

0 Kudos
shaileshgavathe
Occasional Contributor II

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)

0 Kudos