|
POST
|
About spatial adjustment rubbersheeting—Help | ArcGIS for Desktop It might not be exactly what you are looking for, but have a look.
... View more
06-20-2016
03:25 AM
|
1
|
7
|
2387
|
|
POST
|
Check out this link and video: Video Link : 3199 and Using TypeScript with ArcGIS API 4 for JS - YouTube
... View more
06-20-2016
03:17 AM
|
1
|
0
|
852
|
|
POST
|
I've updated my code to search all the bioX rasters for each iteration.
... View more
06-20-2016
12:28 AM
|
0
|
3
|
2710
|
|
POST
|
I tested your code sample and it works. Two things I would change is to make sure that the fields your request in the popup is specified in the FeatureLayer outfields e.g. ["*"], and the point symbol is a SimpleMarkerSymbol | API Reference | ArcGIS API for JavaScript
... View more
06-20-2016
12:22 AM
|
0
|
0
|
698
|
|
POST
|
You can iterate your variable numbers: import arcpy
from arcpy import env
from arcpy.sa import*
import time
start_time = time.clock()
env.workspace = "G:/Eck_health_disease/spatial data/WorldClimate data/test"
arcpy.env.overwriteOutput = True
print "Processing Mosaic"
print "Number of tiles to be Mosaicked:" + str(len(ImgList))
Katanga_poly = r"G:\Eck_health_disease\spatial data\COD_adm_shp\DRC_Katanga.shp"
for i in range(1,19):
ImgList = arcpy.ListRasters("bio"+str(i)+"*")
arcpy.MosaicToNewRaster_management(ImgList, env.workspace, "bio"+str(i)+"_mos.tif", pixel_type="32_BIT_FLOAT", cellsize="", number_of_bands="1", mosaic_method="", mosaic_colormap_mode="MATCH")
arcpy.Clip_management("bio"+str(i)+"_mos.tif","21.7447528839 -13.4556760785 30.7780862172 -4.99734274513", "bio"+str(i)+"_mos_Kat.tif", Katanga_poly, "#", "ClippingGeometry", "MAINTAIN_EXTENT")
arcpy.RasterToASCII_conversion("bio"+str(i)+"_mos_Kat.tif", "bio"+str(i)+"_mos_Kat.asc")
print "Task Completed!"
print time.clock() - start_time, "seconds"
... View more
06-19-2016
11:18 PM
|
2
|
6
|
2710
|
|
POST
|
There's an error in your pathname. Luckily Dan Patterson wrote a real nice blog post on Python path names, which I would advise any novice Pythonian to take note of: Filenames and file paths in Python. To mix strings and integers, use the str() function on the integers: >>> "abc" + 123
Runtime error
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: cannot concatenate 'str' and 'int' objects
>>> "abc" + str(123)
'abc123'
>>>
... View more
06-17-2016
06:48 AM
|
0
|
0
|
3587
|
|
POST
|
I think it would be useful to create MXDs with the layer compilations as required for your services - see these posts arcgis desktop - How to add feature class to MXD with ArcPy (Python)? - Geographic Information Systems Stack Exchange Create blank MXD from python? Arcpy script to add data to mxd and publish to ArcGIS server without ArcMap · GitHub python - Add multiple shapefiles to MXD with arcpy - Stack Overflow Then you can publish the MXDs with Python too. Example: Publish a map service from a map document (MXD)—Documentation (10.3 and 10.3.1) | ArcGIS for Server
... View more
06-17-2016
06:37 AM
|
0
|
0
|
1835
|
|
POST
|
I assume you are referring to the Widget title text (Switch Basemap) then. Specify an id attribute for the TitlePane div: <div id="basemapTitle" data-dojo-type="dijit/TitlePane" data-dojo-props="title:'Switch Basemap', closable:false, open:false"> Then with dijit set the new title: dijit.byId("basemapTtile").set("title", "My new awesome title");
... View more
06-17-2016
05:42 AM
|
0
|
2
|
1802
|
|
POST
|
Slightly different approach: consider creating 2 rotated fishnet grids to use for clipping your original cell grid. The first fishnet grid is rotated 45° and the second -45°. The cell sizes of the rotated fishent grids must be the same as the longest side of a right triangle (Pyhtagoras: a² + b² = c²) i.e. if your original cell size is 100x100, then your fishnet cell size is 141.42135623... Then just do a spatial adjustment on both fishnets to fit on the original cell grid and run an Intersect.
... View more
06-17-2016
01:36 AM
|
0
|
0
|
2271
|
|
POST
|
You could also add the choices as Boolean parameters, then in you script check which choices are "true" and construct a string from the values to use in your CalculateField expression.
... View more
06-17-2016
12:11 AM
|
0
|
3
|
4059
|
|
POST
|
I think Dan is right, you can export the layout view to JPEG with a world file according to the documentation: ExportToJPEG—Help | ArcGIS for Desktop ExportToJPEG (map_document, out_jpeg, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {jpeg_quality}, {progressive}) And here is some code to iterate through your data driven pages: mxd = arcpy.mapping.MapDocument("CURRENT")
# Iterate map series pages
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
outFile = outputFolder + "\\" + mxd.dataDrivenPages.pageRow.getValue(mxd.dataDrivenPages.pageNameField.name) + ".jpg"
arcpy.mapping.ExportToJPEG(mxd, outFile, resolution=150, world_file=True)
... View more
06-16-2016
11:59 PM
|
2
|
12
|
3587
|
|
POST
|
The link in the popup of the sample uses the Esri server as home location, so the complete link will never work. You'l need to take the last part of the popup link e.g. http%3A%2F%2Fearthquake.usgs.gov%2Fearthquakes%2Feventpage%2Fak13139479 and run the standard JS decodeURIComponent function on it. decodeURIComponent("http%3A%2F%2Fearthquake.usgs.gov%2Fearthquakes%2Feventpage%2Fak13139479");
// returns "http://earthquake.usgs.gov/earthquakes/eventpage/ak13139479"
... View more
06-16-2016
10:47 PM
|
1
|
0
|
1396
|
|
POST
|
That's completely up to you. You can put it in the index.html head inside a script tag or you can reference it as an external JS file. <script src="myfile.js"></script> or inside header <script>
// code
</script>
... View more
06-15-2016
05:11 AM
|
0
|
0
|
1056
|
|
POST
|
Hi Dan Patterson, yes I think Emma wants the coordinate/point for the vertice that represents each side of the bounding extent.
... View more
06-15-2016
05:07 AM
|
0
|
7
|
2361
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|