|
POST
|
You can place the raster semi-manually by creating a world file. For your example file (janW1.png), the world file name would be janW1.pngw. Here is an example using the following world file (lines 5 & 6 should be adjusted by half a pixel to move to the pixel center): 0.017543859 0.0 0.0 -0.009894315 -15.0 62.999108 ...and here is the result, although it doesn't match exactly. This may be due to cdspatial's note about a funky ellipsoid (this is over WGS84):
... View more
08-29-2016
12:06 PM
|
1
|
4
|
5305
|
|
POST
|
That's prettier than what I came up with (basically, muscle dictionary into a set, then back to dictionary): ... my_set = set([])
... for asset in dict['Features'][0]:
... for k1,v1 in asset.iteritems():
... new_list = []
... for k2,v2 in v1.iteritems():
... new_list.append(str(k2) + ':' + str(v2)) # add key/value to a list
... new_string = ','.join(new_list) # convert list to string
... my_set.add(new_string) # add string to set
... new_dict = dict
... new_dict['Features'][0] = []
... for asset in my_set: # convert set back to dictionary
... new_dict['Features'][0].append({'asset':{i.split(':')[0]:i.split(':')[1] for i in asset.split(',')}})
... print new_dict
...
{'Features': [[{'asset': {'isCoastal': '0', 'name': 'G344E', 'WMRegion': 'SOUTHERN_REGION', 'wcuname': 'WCA3A', 'type': 'structure', 'isActive': '1'}}, {'asset': {'isCoastal': '0', 'name': 'G344F', 'WMRegion': 'SOUTHERN_REGION', 'wcuname': 'WCA3A', 'type': 'structure', 'isActive': '1'}}, {'asset': {'isCoastal': '0', 'name': 'S145', 'WMRegion': 'SOUTHERN_REGION', 'wcuname': 'WCA2B', 'type': 'structure', 'isActive': '1'}}]]}
... View more
08-26-2016
02:46 PM
|
2
|
4
|
4464
|
|
POST
|
You can check if the Concern ID is blank and then update with the next available ID, and not update if it already has a Concern ID (but keep track if it's got the highest existing Concern ID).
... View more
08-25-2016
02:31 PM
|
0
|
0
|
2799
|
|
POST
|
I'm not sure where to start with this. You found this somewhere, but are you not sure what it does, or is it giving you an error, or where do you need help? In general, break it down line by line until you either understand what's happening, or ask for help.
... View more
08-25-2016
02:12 PM
|
0
|
1
|
2799
|
|
POST
|
Con("nhdperennial"("nhdperennial"),"watsurfinn",wellsnhd) The first argument should be a comparison, not "nhdperennial"("nhdperennial"), and your last argument needs quotes.
... View more
08-25-2016
01:51 PM
|
1
|
0
|
3361
|
|
POST
|
I think the entire use case is completely different from traditional addressing. There are lots of reasons why street addressing and XY coordinates are useful - that's why we use them! W3W is just a different way to communicate and think about location, especially in places where traditional addressing doesn't work well. As far as I know, your street signs are safe. Are you saying W3W would work in conjunction with a traditional addressing system? If you consider XY coordinates (lat/long) a traditional addressing system, then yes it does depend on that. The API does two main things, converts W3W to lat/long and back again.
... View more
08-25-2016
11:45 AM
|
0
|
0
|
2203
|
|
POST
|
Buuuut, that's not the point of W3W. There is already an addressing system that does what you describe, that includes the drawbacks that W3W is intended to overcome, or at least think about.
... View more
08-25-2016
10:53 AM
|
0
|
2
|
2203
|
|
POST
|
Of course there are lots of reasons not to use a particular addressing/coordinate system. It's not bad or good, it's just another way to go and you need to weigh what's important to you and your project. Advantages over street address: - all locations have coordinates - close together coordinates don't sound alike - no repeats - can be more specific than building - more Advantages over numerical coordinates: - can communicate location quickly - can remember coordinates easily - more
... View more
08-23-2016
03:54 PM
|
2
|
0
|
5025
|
|
POST
|
It looks like the GetFieldValue_mb tool returns the first value in a given field, which you can also do like the following, and get rid of the getFieldValue function altogether: import arcpy # still have to import
pStart = [i[0] for i in arcpy.da.SearchCursor("QueryTable_Statistics", "MAX_FEATURE_NUM")][0]
... View more
08-23-2016
02:13 PM
|
2
|
6
|
5646
|
|
POST
|
Your function returns 'None', not the value. Return the value you want to sub in for pStart. >>> def something():
... x = 5
... return # returns None
... print something()
...
None
>>> def something():
... x = 5
... return x # returns value of x
... print something()
...
5
... View more
08-23-2016
01:48 PM
|
2
|
0
|
5646
|
|
POST
|
... of course, Select By Attribute has no Python parser...
... View more
08-19-2016
04:12 PM
|
1
|
1
|
3050
|
|
POST
|
Try CHAR_LENGTH() SQL reference for query expressions used in ArcGIS—Help | ArcGIS for Desktop
... View more
08-19-2016
03:24 PM
|
3
|
0
|
3050
|
|
POST
|
Can you show your point density result? You can get huge variety of effects just by changing the tool parameters. Here are several examples using the same dataset, just changing value of search radius in Kernel Density: etc.
... View more
08-19-2016
03:05 PM
|
1
|
3
|
3379
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|