|
POST
|
ok, so, it appears _server_admin is installed locally, cool. You guys thought of everything.
... View more
08-02-2011
12:00 PM
|
0
|
0
|
2499
|
|
POST
|
WING on Win 7 Is beautiful... So, how do I import _server_admin remotely, Esri python gods? I want to rewrite all my AGSSOM subprocess code using the new server admin, but I want to write it locally and access the package. Can I just add the server in my path using UNC to the server admin api? Can this even be done, since I would be running 32 bit calling a module written in 64 bit?
... View more
08-02-2011
11:19 AM
|
0
|
10
|
4696
|
|
POST
|
This was documented back at 10 beta, so will these be implemented at 10.1?
... View more
08-02-2011
11:06 AM
|
0
|
2
|
1773
|
|
POST
|
This looks pretty promising. Can I start and stop services? I assume that would be _server_admin.admin
... View more
08-01-2011
05:47 PM
|
0
|
0
|
869
|
|
POST
|
>>> help(_server_admin) Help on package _server_admin: NAME _server_admin FILE c:\program files\arcgis\server\arcpy\_server_admin\__init__.py DESCRIPTION This is a Python binding to the ArcGIS REST Server API, similar to the JavaScript or Flex API in program structure as well as in the way it interfaces with ArcGIS servers. Getting Started with Rest Administration ======================================== A simple example of connecting to a server: >>> import _server_admin >>> catalog = _server_admin.Catalog("http://sampleserver1.arcgisonline.co m/arcgis/rest/services") >>> catalog.services [<GeometryServer ('http://sampleserver1.arcgisonline.com/arcgis/rest/serv ices/Geometry/GeometryServer/?f=json')>] Getting a service from a catalog: >>> locator = catalog.Locators.ESRI_Geocode_USA >>> locator.url 'http://sampleserver1.arcgisonline.com/arcgis/rest/services/Locators/ESRI _Geocode_USA/GeocodeServer/?f=json' >>> locator.FindAddressCandidates(Address="380 NEW YORK ST", City="Redlan ds", State="CA") <FindAddressCandidatesResult('http://sampleserver1.arcgisonline.com/arcgi s/rest/services/Locators/ESRI_Geocode_USA/GeocodeServe...')> >>> candidates.candidates[0] {'attributes': {}, 'score': 81, 'location': POINT(-117.19568 34.05752), ' address': '380 NEW YORK ST, REDLANDS, CA, 92373'} Getting a service from a URL: >>> service = _server_admin.GPService("http://sampleserver1.arcgisonline. com/ArcGIS/rest/services/Specialty/ESRI_Currents_World/GPServer") >>> service.url 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESR I_Currents_World/GPServer/?f=json' Inspecting and executing a geoprocessing service: >>> service.tasks [<GPTask('http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Spec ialty/ESRI_Currents_World/GPServer...')>] Getting a task by name: >>> task = service.MessageInABottle >>> task.url 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESR I_Currents_World/GPServer/MessageInABottle/?f=json' >>> task.synchronous True >>> task.name 'MessageInABottle' Inspecting tasks: >>> [(param['name'], param['dataType']) for param in task.parameters if p aram['direction'] == 'esriGPParameterDirectionInput'] [('Input_Point', 'GPFeatureRecordSetLayer'), ('Days', 'GPDouble')] Executing a job: >>> results = service.MessageInABottle(_server_admin.Point(-11, 38, _serv er_admin.projections.geographic.GCS_WGS_1984), 2) >>> import time >>> while results.running: ... time.sleep(0.25) ... >>> results.Output.features [{'geometry': MULTILINESTRING((-11.00000 38.00000,-10.85327 37.73851,-10. 83942 37.71683,-10.83734 37.71359,-10.83702 37.71310,-10.83697 37.71303)), 'attr ibutes': {'shape_length': 0.330091748127675, 'fid': 1, 'fnode_': 0}}] PACKAGE CONTENTS admin (package) geometry gptypes projections server utils DATA USER_AGENT = 'Mozilla/4.0 (arcrest)' geographic = <_server_admin.projections.geographic object> projected = <_server_admin.projections.projected object>
... View more
08-01-2011
03:39 PM
|
0
|
2
|
3041
|
|
POST
|
So, when it gets to the dialog for python install dir, it only states python and numpy, should it also state matplotlib as well, or is this only included like the pythonwin install? As a feature bonus...
... View more
08-01-2011
08:44 AM
|
0
|
1
|
2320
|
|
POST
|
Now, that we can do what we can on versioned data, I think we should have something on the general tab, that says the data is versioned, perhaps just underneath the Geometry Properties.
... View more
08-01-2011
07:53 AM
|
0
|
2
|
832
|
|
POST
|
New day, new results. Today, I have two Readers going for the install, so not sure now, but it appears to be progressing.
... View more
08-01-2011
07:26 AM
|
0
|
0
|
571
|
|
POST
|
Tested with both catalog and cat window. Awesome stuff, now I don't have to archive or delete my archives every year just to change the tol to a lower value. Good stuff.
... View more
07-28-2011
08:19 PM
|
0
|
0
|
471
|
|
POST
|
Killed it, some other time, perhaps beta 2. After 40 minutes. too long for reader. Want to start the weekend, not wait for reader install.
... View more
07-28-2011
08:17 PM
|
0
|
0
|
571
|
|
POST
|
So, I haven't done really anything, but I do have access to a versioned topology, I can add rules, change tol, this is AWESOME. I did not apply, but the functionality is live even with a 10 sde box. Phenomenal stuff GDB team.
... View more
07-28-2011
08:15 PM
|
0
|
1
|
728
|
|
POST
|
So, its been trying to determine space requirements for about 20 minutes or even longer. It pops up with Reader, or Reader and Doc checked to install. Only two scenarios I have tested.
... View more
07-28-2011
07:44 PM
|
0
|
2
|
1878
|
|
POST
|
2.7 is installed. Also we get matplotlib, interesting... Why not pyscripter alongside pywin in the install folder?
... View more
07-28-2011
06:28 PM
|
0
|
0
|
651
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 08-01-2022 02:13 PM | |
| 1 | 08-04-2022 02:37 PM | |
| 1 | 08-01-2022 02:10 PM | |
| 1 | 08-01-2022 02:30 PM | |
| 3 | 06-21-2022 02:07 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|