|
POST
|
I have an application where I would like to be able to set an infoTemplate for a feature service, and be able to edit the same feature service. I created two buttons, 'Start Editing' and 'Stop Editing'. When the application loads, editing is initialized but I have the editor template hidden. The infoTemplate is also set. The 'Start Editing' button sets the infoTemplate to NULL and shows the editor template. The 'Stop Editing' button hides the editor template, and sets the infoTemplate for the feature service. Once the application loads, I can click 'Start Editing' and begin adding/updating/deleting features. Once I click 'Stop Editing', the infoTemplate shows when clicking a feature. However, if I click 'Start Editing' again, I can no longer update or delete a feature. The infoTemplate displays rather than the AttributeInspector. The same occurs when trying to add a new feature. Is it possible to use an infoTemplate and edit a feature service? Below is the code I am using with the Javascript API 3.4: var editorWidget; function startEditing(){ map.infoWindow.hide(); disableFeatureLayerPopups(); dijit.byId("editorDiv").domNode.style.display = 'block'; } function stopEditing(){ dijit.byId("editorDiv").domNode.style.display = 'none'; enableFeatureLayerPopups(); } function disableFeatureLayerPopups() { map.infoWindow.hide(); if (map.getLayer("pointData")) { map.getLayer("pointData").setInfoTemplate(null); } } function enableFeatureLayerPopups() { map.infoWindow.resize(200,125); if (map.getLayer("pointData")) { map.getLayer("pointData").setInfoTemplate(infoTemplate1); } } function initEditing(results) { var featureLayerInfos = dojo.map(results, function(result) { return { "featureLayer": result.layer }; }); var settings = { map: map, layerInfos: featureLayerInfos }; var params = { settings: settings }; editorWidget = new esri.dijit.editing.Editor(params, 'editorDiv'); var options = {snapKey:dojo.keys.copyKey}; map.enableSnapping(options); editorWidget.startup(); }
... View more
06-13-2013
07:44 AM
|
0
|
2
|
4080
|
|
POST
|
Hi Jamal, Take a look at the following KB article for the steps to do this using Desktop: http://support.esri.com/en/knowledgebase/techarticles/detail/35679
... View more
06-03-2013
06:01 AM
|
0
|
0
|
3765
|
|
POST
|
The field names will change when you use the 'AddJoin' tool, and this is most likely the issue. The new field name will be <feature class/table name>.<field name>.
... View more
05-13-2013
12:07 PM
|
0
|
0
|
1711
|
|
POST
|
Take a look at the following link. It has a description of each system table for the geodatabase.
... View more
05-13-2013
02:42 AM
|
0
|
0
|
3304
|
|
POST
|
I would recommend deleting the log file, as it keeps track of each database compress. But, if you were to delete it, it would be recreated after your next compress.
... View more
05-10-2013
11:43 AM
|
0
|
0
|
3304
|
|
POST
|
Did you happen to register the SDE_COMPRESS_LOG file with the geodatabase? Try the following: 1. Rename the SDE_COMPRESS_LOG file using the Catalog window to SDE_COMPRESS_LOG_1 2. Execute the compress again This should recreate a new SDE_COMPRESS_LOG file.
... View more
05-10-2013
07:06 AM
|
0
|
0
|
3304
|
|
POST
|
Hi Jordan, Make sure the ArcGISSOC user has read privileges to your SDE connection file. Also, if you are using Windows Authentication to connect to the database, make sure the ArcGISSOC user is added to the database instance, database, and has read privileges to the feature classes you are trying to publish.
... View more
05-10-2013
07:02 AM
|
0
|
0
|
1257
|
|
POST
|
Hi Neda, From my understanding, you first created a 2x2 fishnet shapefile for each raster in a directory. You now want to clip each one of those rasters by each polygon in the fishnet. If that is correct, take a look at the following code: import arcpy
from arcpy import env
env.workspace = r"C:\TIFFs"
env.overwriteOutput = 1
list = []
#append each raster to a list
lstFCs = arcpy.ListFeatureClasses("*")
for fc in lstFCs:
list.append(fc)
#iterate through each raster
lstRasters = arcpy.ListRasters("*")
for raster in lstRasters:
for n in list:
#find the fishnet shapefile by checking if the raster name is in the shapefile name
if raster.split(".")[0] in n:
rows = arcpy.SearchCursor(n)
for row in rows:
FID = row.FID
#create a feature layer for each polygon in the fishnet shapefile
arcpy.MakeFeatureLayer_management(n, "FC_lyr", "FID = " + str(FID))
#clip the raster by each polygon, and output a new TIFF to another directory
arcpy.Clip_management(raster, "#", r"C:\TIFFs\Clip" + "\\" + raster + "_clip_" + str(FID) + ".tif", "FC_lyr", "256", "ClippingGeometry")
print "Finished" Also, a quick note, when you are posting code, be sure to wrap it in CODE tags using the # symbol above. This will preserve the indentation. I believe you were previously wrapping the code with QUOTE tags.
... View more
05-10-2013
06:25 AM
|
0
|
0
|
1004
|
|
POST
|
That screen shot is from when you are publishing a map service at 10.1.
... View more
05-10-2013
06:18 AM
|
0
|
1
|
3391
|
|
POST
|
Yes, this is set within the Parameters of the service. Ex: [ATTACH=CONFIG]24194[/ATTACH] See the following help link here. Maximum number of records returned by the server: Clients, such as the ArcGIS web APIs, can perform query operations to return specific information, or records, from a map service. This property specifies how many records can be returned by the server to a client for any given query operation. Specifying a large number of records to be returned by the server can slow the performance of client applications consuming your map service, such as web browsers, and your GIS server.
... View more
05-10-2013
05:44 AM
|
1
|
0
|
3391
|
|
POST
|
You can achieve this using python. Here is an example: [ATTACH=CONFIG]24101[/ATTACH]
... View more
05-07-2013
10:24 AM
|
0
|
0
|
3597
|
|
POST
|
Hi Greg, What constitutes the Layer field to have the Minor string, and Major string? If the other field is 1, should the Layer field have a value of 'Minor'??
... View more
05-07-2013
09:38 AM
|
0
|
0
|
3597
|
|
POST
|
Are you trying to clip the fishnet polygon feature class by a directory of rasters?
... View more
05-07-2013
03:54 AM
|
0
|
0
|
2512
|
|
POST
|
Hi Emma, You can do this if you create a Mosaic Dataset from you imagery. Once you have a mosaic dataset, you can apply the Clip function (right-click on mosaic dataset in catalog window > Properties > Function tab). With this function you have the option to clip using 'Inside' for the type and it will remove the pixels under the clipping geometry. [ATTACH=CONFIG]24082[/ATTACH]
... View more
05-06-2013
12:17 PM
|
0
|
0
|
5126
|
|
POST
|
I have a script that was written and worked very well in version 9.3.1. I have updated the script to work in version 10.0 but am getting an error:ERROR: Executing: CopyFeatures locations_Layer. However I also get the message "Step 5: New Civic Addresses Loaded Successfully)" before the error message. Is there something that I missed updating the script? Below is the portion of code where it is failing.
# Process: Copy Features...
arcpy.CopyFeatures_management("locations_Layer", Civic_Addresses, "", "0", "0", "0")
arcpy.AddMessage("Step 5: New Civic Addresses Loaded Successfully")
# Update ST_TYPE_CD NULL fields with 999
cur = arcpy.UpdateCursor(db + "\\Civic_Addresses","ST_TYPE_CD IS NULL")
row = cur.next()
while row:
row.ST_TYPE_CD = 999
cur.UpdateRow(row)
row = cur.next()
del row
del cur
print "Street Types with NULLS defined" Thank you. What is the Civic_Addresses variable set to? It may help to post all of the code.
... View more
05-06-2013
12:05 PM
|
0
|
0
|
1337
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|