POST
|
Can anyone please advise 'How to launch node.js, to run Web AppBuilder on OSX' esri Web AppBuilder page advises to run node.js, but I cannot get it to run under Terminal mode Thanks, Steve
... View more
01-21-2020
12:05 AM
|
0
|
0
|
138
|
POST
|
We have many land class polygons to manually edit. I wish to create a button bar - in Python AddIns - with buttons to allocate the selected polygon (once edited) to the appropriate class (ie update attribute field). There would be buttons for Class 1, Class 2 etc.. so i) edit polygon (eg cut) ii) with polygon selected, click appropriate button (eg Class 1) to allocate polygon (attribute) to the appropriate land class I can do this in ArcPy, but am new to AddIns. I am not able to find information on how to apply code in Addins
... View more
08-08-2018
12:39 AM
|
0
|
1
|
335
|
POST
|
Thanks Vince, I�??m not sure what you mean about a �??Desktop application�??. Is this an Arc Desktop installation? (we were hoping to avoid the IT overhead of installing Arc on multiple desktops, where people only need it for a single task taking about 5 minutes.) Where would I find more information about a web-based geoprocessing tool? I�??ve been investigating Feature Services and Geoprocessing Services - eventually we plan to publish Feature Services and allow editing. But at this stage it may be a step further than we require. At this stage, we don't need to be able to edit features or attributes, or be able to visualise what we are doing. The operator just needs to run a script or tool that: �?� Deletes existing files (used in the geoprocessing) �?� Creates a backup of the Databases ( 2 off) �?� Spatial Join of eg suburbs, etc to the shapefile �?� Calculate Field (recalculate Suburb name field) �?� Append the new features to one of the 2 existing databases (based on a SQL WHERE statement) �?� Compress the database By using a script/tool, the Database Connection (containing the database server login) applies only to that instance of updating the database. Therefore the operator is not given a general Login access to the Database Server. (probably this would be the case no matter how we implemented, as you pointed out) A copy of Arc Desktop, and the Licence Manager is held on a server. If the user runs the script/tool from their desktop, they would need an arc installation on their PC, to access the Arc Tools. I�??ve been told that a major feature of ArcGIS Server is that with licences able to be stored on the server, this enables editing to be accessed via a web page. We would like to be able to give access to a web page (or a folder) on the server, from where the operator could run the script/tool, using the Arc Desktop/Tools hosted on the server. Thus, we would avoid: i) providing a desktop installation of Arc (requiring more IT support!) ii) providing a general login access to the server holding the Arc Desktop/Tools. Access would be limited to running that script/tool Please feel free to point out where my assumptions are incorrect. Thanks, Steve
... View more
10-01-2013
06:46 PM
|
0
|
0
|
231
|
POST
|
Hi, OUR TASK: We have an (non-GIS) operator, who needs to occasionally upload a shapefile and append it to two databases. This is done through a python script that makes a backup copy of the two databases and appends the new records to the database/s, using arc tools (Spatial Join, Append etc). The two access issues here are the arc 10.1 licence (currently stored on a server), and database access permissions. OUR ENVIRONMENT: The databases are SQL Server enterprise databases. We are running ArcSDE and ArcGIS Server 10.1. We have a web mapping Client interface that serves published map services. Arc licences are stored on a server. THE SOLUTION?: Rather than giving them edit access to the server etc, we would like to enable them to run the python script (preferably as a tool within a browser) that uploads, accesses arc tools, and appends to the database. To do this via a web browser would be cleaner for us �?? i) allowing access to editing the database without giving general login permissions to the server ii) access to arc license without a local installation on their desktop machine We can utilise Python, AGS or ArcObjects, or whatever Any advice would be greatly appreciated. Please bear with any ignorance on my part, as I�??m only starting to get my head around this. This thread seems to have some similarities to a recent thread 'Managing Database through web application'. I have made a new thread because it may be quite a different issue, as we already have a python script to do the tasks - the issue is with access to licences and access permissions. Thanks, Steve Page
... View more
09-30-2013
11:32 PM
|
0
|
2
|
569
|
POST
|
Hi, I'm not able to get the ListFeatureClasses working! This is a pretty basic code, and I've seen many examples, including in the ESRI 10.1 Help Note that 'Exists' works! But not ListFeatureClasses, ListDatasets, ListFiles... - these return '[ ]' Files are on my C drive (local Hard drive) Thanks, Steve
import arcpy
from arcpy import env
env.workspace = "C:/drainagescripting/inputdata/drainagedatasp.gdb"
# THIS WORKS - prints 'true'
print arcpy.Exists("C:/drainagescripting/inputdata/drainagedatasp.gdb")
# THESE return '[ ]'
fclist = arcpy.ListFeatureClasses()
print fclist
... View more
09-17-2013
05:36 PM
|
0
|
2
|
778
|
POST
|
Sorry, in my haste I overlooked your comment about using polygon features. My solution was for a line symbol
... View more
08-05-2013
04:49 PM
|
0
|
0
|
891
|
POST
|
Thanks for your reply which WAS appreciated very much (and solved my issue), and humble apologies for completely overlooking to respond! Is perhaps putting an "r" in front of strings new to Arcpython under version 10? I don't recall this from 9.3, and it doesn't seem to be in my sample scripts from then. Perhaps I need a refresher to update myself to the latest code! Similarly, I haven't struck the 'shutil' module before, but my 9.3 copy methods don't seem to work. Couldn't get this to workk yet either - so I just manually copied the file - but I'll get back to that when there's time! Thanks again Steve
... View more
07-24-2013
08:38 PM
|
0
|
0
|
1030
|
POST
|
Hi, Very briefly (I'm in a rush!) From 'Symbol Selector', 'Edit Symbol' In 'Symbol Property Editor' build a multi-layer symbol, using 2 line symbols with a Hashed line symbol (set at 90 degrees) between them. A 4th layer can be a white background if desired. Adjust Line Templates and Line/Properties (Offsets) on the layers to align into a ladder symbol, also adjust line widths etc I'm sure the Arcmap Help will detail how to develop the multi-layer symbols Hope this a) meets your needs b) is enough to get you started Have fun, Steve Steve
... View more
07-24-2013
08:29 PM
|
0
|
0
|
891
|
POST
|
[ATTACH=CONFIG]26166[/ATTACH] Hi, We are publishing a map service and are having real trouble with labelling. This is accentuated, as our user base is used to the previous IMS service with labelling positioned as optimum! On the attached image you can see that the Green hatched area (Landscape Planning Overlay) is not labelled. (often it IS labelled, but way off to the left. Ideally, the label should be located near the centre off the map, as this is where the user is interrogating the map. This layer is set as as Label Weight = High. It is also set as the highest Label Priority, using the Labelling toolbar. There are 11 Planning Overlays which must be used in conjunction, and may overlap. Labelling is equally important for all. We can't use Maplex - on ESRI's advice - as this affects rendering performance over a map service. I would be tempted to use Maplex for these layers, but it appears its 'all layers or none' with Maplex. Is this a case where I should be investigating Cartographic Representations? Or will these slow map performance, as do many other Arcmap cartographic enhancements? Thanks, Steve
... View more
07-23-2013
08:59 PM
|
0
|
1
|
1529
|
POST
|
Thanks for your reply, and apologies for such a tardy response. A very busy launch period... For our map services, annotation is impractical, but thanks anyway. We are having real difficulty labelling compared to what we previously could do in IMS. Thanks again, Steve
... View more
07-23-2013
07:39 PM
|
0
|
0
|
218
|
POST
|
Hi, Is it possible to use Maplex for certain layers only? We are web service publishingg and it is advised (for performance) to avoid Maplex. But we would like to use the Maplex Contour labelling. Thanks, Steve Page
... View more
07-08-2013
07:28 PM
|
0
|
2
|
2756
|
POST
|
I (belatedly) found a thread "1. MapDocument.saveACopy() Error " from 5 May, which has some solutions in it. I've tried these but can't get them to work i) the saveACopy statement still throws the "can't save" error ii) the shutil.copy2(inputMxd, old_doc) statement says: NameError: name 'shutil' is not defined Thanks
... View more
05-07-2013
08:55 PM
|
0
|
0
|
1030
|
POST
|
I???m running a script to update the SDE Connection file path. This works fine. But I???m getting an output error ??? SOMETIMES! The error occurs at the Save Map statement: File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\_mapping.py", line 828, in saveACopy self._arc_object.saveACopy(file_name) AttributeError: MapDocObject: Unable to save. Check to make sure you have write access to the specified file and that there is enough space on the storage device to hold your document. I have no Arcmap or ArcCat open. Here???s my script: import arcpy, os # INPUT PARAMETERS Input_mxd = "G:\GIS\Weave\mxd\REBUILD\DataSrceTesting_2LblLayers_PptySbrbs.mxd" Output_mxd = "G:\GIS\Weave\mxd\REBUILD\newDataSource_EmptyOutput_3.mxd" Input_SDE = "Database Connections\Connection to vgeodb.sde" Output_SDE = "G:\GIS\Weave\Connections\Connection to 10.1.4.127.sde" mxd = arcpy.mapping.MapDocument(Input_mxd) for lyr in arcpy.mapping.ListLayers (mxd): mxd.findAndReplaceWorkspacePaths(Input_SDE, Output_SDE) print lyr print lyr.dataSource mxd.saveACopy(Output_mxd) The print statements are just so I can see whats going on - the code appears to update the connection paths as required. Thanks
... View more
05-07-2013
08:08 PM
|
0
|
5
|
3736
|
POST
|
Hi, Its a while back, so the details are sketchy off the top of my head... I exported layers from Arcmap 9.3 to Illustrator, to fine tune the cartography, and was really able to polish the output beautifully. So pleased with the result for a map designed for full colour commercial printing. Problem with file size I used eps file type. This retained the layers as independent layers in Illustrator. I actually had to export several layers at a time - there is (apparently) a limitation on file size exporting that Arc could handle. With the layers already symbolised in Arc, they would only export correctly if i did a few layers at a time. Ability to update the map when data changes Since the layers come into Illustrator, I could just reimport any Updated layers into the existing Illustrator map.
... View more
05-01-2013
08:52 PM
|
0
|
0
|
727
|
Online Status |
Offline
|
Date Last Visited |
02-04-2022
03:13 AM
|