|
POST
|
I am a little confused on what you mean by add your field, at what point of the model do you want me to add the field into based on your mobel? Also i am confused on the "Add Join" after the spaital join. what is the output of the spatial join suppose to be joining to? Thanks for the replay.
... View more
03-23-2016
10:57 AM
|
0
|
0
|
1437
|
|
POST
|
I did try making a model with model builder but i did not have any success.
... View more
03-23-2016
09:28 AM
|
0
|
2
|
2447
|
|
POST
|
I have tried the following but nothing happens i get no error either. fc1 = "Points"
fc2 = "Polygons"
cursor1 = arcpy.da.SearchCursor(fc1, ["SiteAddres", "Verifi"])
cursor2 = arcpy.da.SearchCursor(fc2, ["SiteAddres"])
# Create update cursor for feature class
with arcpy.da.UpdateCursor(fc1, "Verifi") as cursor:
for row1 in cursor1:
for row2 in cursor2:
if row2[0] == row1[0]:
for row1 in cursor1:
row1[1] = "Match"
else:
row1[1] = "No Match"
# Update the cursor with the updated list
cursor.updateRow(row)
... View more
03-23-2016
09:15 AM
|
0
|
0
|
2447
|
|
POST
|
Hi Dan. The after making the following like you suggest it ran" ifBlock( !SiteAddres! , !SiteAddr_1! )". but all the records returned as "No Match". I just realized that the attributes in SiteAddr_1 are all uppercase and that the SiteAddres are proper case. I had to change the following. if SiteAddres.lower() == SiteAddr_1.lower(): Thanks!
... View more
03-23-2016
08:37 AM
|
0
|
0
|
2447
|
|
POST
|
I changed it to the following but i get Error 000539:, which states... "This error code covers a number of Python errors: Example error 1: exceptions.TypeError: cannot concatenate 'str' and 'int' objects. The above is a Python-specific error. The calculation is attempting to add or concatenate a string and a number. " def ifBlock( SiteAddres , SiteAddr_1 ):
if SiteAddres == SiteAddr_1 :
return "Match"
else:
return "NoMatch"
ifBlock( SiteAddres , SiteAddr_1)
... View more
03-23-2016
08:28 AM
|
0
|
0
|
2447
|
|
POST
|
I have a points layer and polygon layer , I need to compare field "SiteAddres" from the points layer to "SiteAddress" to the polygon layer and if it matches i need it to populate field "Verifi" with "Match" or if it doesn't match to populate "Verifi" with "No Match". Although i am not sure what would be the best way to achieve what i am trying to do because i am trying to compare address which will have upper case and lower case and spaces. I would prefer not to do a spatial join every time i need to verify and i looked into doing it with a python script but i am not sure how to do it? I get no error but nothing the field "Verifi" doens't get populated with "Match" or "No Match" fc1 = "Points"
fc2 = "Polygons"
cursor1 = arcpy.da.SearchCursor(fc1, ["SiteAddres", "Verifi"])
cursor2 = arcpy.da.SearchCursor(fc2, ["SiteAddres"])
for row1 in cursor1:
for row2 in cursor2:
if row2[0] == row1[0]:
for row1 in cursor1:
row1[1] = "Match"
else:
row1[1] = "No Match"
I tried spatially joining the two layers and using field calculator but i am getting an invalid syntex error on line 2. def ifBlock( SiteAddres , [SiteAddr_1 ):
if SiteAddres = =SiteAddr_1:
return "Match"
else:
return" No Match"
ifBlock( SiteAddres , SiteAddr_1 ) Thanks.
... View more
03-23-2016
07:40 AM
|
0
|
16
|
5940
|
|
DOC
|
I am making the changes in the client\stemapp\widgets widget.js. I didn't clear the browser cach, but after doing so it seems to work. Thanks! Awesome widget!
... View more
02-24-2016
07:32 AM
|
0
|
0
|
11512
|
|
DOC
|
I was trying to add the follow code to eSearch widget to fix the spatial issue of it only selecting the first layer when doing a spatial search, after adding the code per the instructions i am still not able to do a spatial select with other layers other then the 1st layer. postCreate: function () { this.inherited(arguments); this.resultLayers = []; this.layerUniqueCache = {}; this._initResultFormatString(); this._initTabContainer(); this._initBufferUnits(); this._initSpatialRelationships(); this._initLayerSelect(); this._initProgressBar(); this._initDrawBox(); this._initCheckForSupportedWidgets(); this._combineRadioCheckBoxWithLabel(); this.garr = []; this.polygonsToDiscard = []; this._addBufferLayer(); this.wManager = WidgetManager.getInstance(); this.pManager = PanelManager.getInstance(); this.own(on(this.selectLayerSpatial, "change", lang.hitch(this, this.onSpatialLayerChange))); aspect.before(this, "onClose", this.closeDDs); this._addThemeFixes(); this.own(on(this.domNode, 'mousedown', lang.hitch(this, function (event) {
... View more
02-23-2016
08:04 AM
|
0
|
0
|
11512
|
|
DOC
|
I really like how it shows different views. This is VERY helpful.
... View more
02-19-2016
03:33 PM
|
1
|
0
|
17487
|
|
DOC
|
The only time it does this when i use the spatial search. When i do other searches I don't get the red thing. I have check the geometry on all the layers and nothing seems out whak.
... View more
02-04-2016
07:47 AM
|
0
|
0
|
11512
|
|
DOC
|
My bad, i guess i didn't look through the past post that good and missed it. I don't know who to do a search within this post... I see the post now but it doesn't mention the whole red thing like i am getting, is it just me?
... View more
02-03-2016
11:36 AM
|
0
|
0
|
11512
|
|
DOC
|
Hi Robert, I am not sure if this is a bug or not but when i do an eSearch By Shape the map screen truns red and zooms out. Here is how i am doing the eSerch. 1st I select I click on the eSearch Widget, Layer 1 on Search Layer, and select features by " Point" then select a feature on Layer 1 on the map, then use "By Spatial" and "apply a search Distance buffer", then search entities of Layer 2, click on "Intersected by". The features on Layer 2 get selected but the map screen turns red and zooms out all the way. I also noticed that when you do the eSearch By Spatial and select any layer it doesn't the the spaital search for they layer you selected in Search entities of:. it seems to only search the first layer that you added when you configure the eSearch widget.
... View more
02-03-2016
08:28 AM
|
0
|
0
|
9796
|
|
DOC
|
How do you install this widget? I have added the StreetViewPopup folder to client/stemapp/widgets. When i add it to the app an click on the map nothing happens. I am missing something?
... View more
01-29-2016
12:07 PM
|
0
|
0
|
17487
|
|
DOC
|
It was ArcGIS online, after removing the feature services and re-adding them and recreating the app seem to work. I am not sure why it was acting up but all seems good now. Thanks Robert.
... View more
01-29-2016
08:11 AM
|
1
|
0
|
9796
|
|
DOC
|
after clicking on "From Defults" the parcel was highlighted from the search.
... View more
01-29-2016
08:10 AM
|
1
|
0
|
9796
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-27-2022 11:37 AM | |
| 1 | 10-31-2023 10:16 AM | |
| 1 | 02-16-2023 01:50 PM | |
| 1 | 08-11-2021 11:13 AM | |
| 1 | 01-06-2021 10:45 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-10-2024
10:42 AM
|