|
POST
|
I did a similar project for a large council to automatically generate planning reports. The result was an ArcGIS Server geoprocessing script that took a lot identifier as the input parameter and generated a PDF planning report for the lot. You should be able to create the PDF with any filename you like - just make sure it is unique. You can also use something like shutil.copyfile to place a copy of the file in a server directory for example: D:\WebReports\bobjones\1234AB.pdf Map the server directory to a virtual directory and then return the URL from your script: http:// myserver /web-reports/bobjones/1234AB.pdf Edit: had to add the spaces to stop GeoNet thinking this is a real link. To pass the URL back from the script set up the tool with an output parameter:
... View more
04-22-2015
10:09 PM
|
0
|
1
|
2721
|
|
POST
|
The hard part is going to be querying across the multiple feature classes in the geodatabase. All of the out of the box tools just query a single source. This response to a question on GIS StackExchange might provide the solution - Model or Code to query all feature classes in geodatabase by selecting by attribute. Alternatively, you could create one feature class containing all of your data and use definition queries to filter your data on country or grantee name, etc.
... View more
04-22-2015
03:55 AM
|
1
|
0
|
861
|
|
POST
|
The map object only supports displaying a single basemap layer at any time so you would need to add a layer to your map. To do this just use one of these: Dynamic map service | ArcGIS API for JavaScript Image service | ArcGIS API for JavaScript Replace the URL with the endpoint of your satellite imagery source.
... View more
04-19-2015
02:58 PM
|
0
|
0
|
1420
|
|
POST
|
See this sample - Create a map | ArcGIS API for JavaScript As Yusuf Ali has already mentioned use the "satellite" basemap when creating the map (instead of the topo one that is used in the sample).
... View more
04-18-2015
11:10 PM
|
0
|
0
|
1420
|
|
POST
|
Something like this should work: import arcpy
# script parameters:
userTable = r"G:/Temp/GeoNet/TableToDomain/Users.gdb/Users"
domainTargetGdb = r"G:/Temp/GeoNet/TableToDomain/Users.gdb"
# Create Admins Domain
admins = arcpy.MakeTableView_management(userTable,"Admins",""""GroupName" = 'Editor'""")
arcpy.TableToDomain_management("Admins","Username","Username",domainTargetGdb,"Admins","Admin Users","REPLACE")
# Create Editors Domain
editors = arcpy.MakeTableView_management(userTable,"Editors",""""GroupName" = 'Editor'""")
arcpy.TableToDomain_management("Editors","Username","Username",domainTargetGdb,"Editors","Editor Users","REPLACE")
# Create Viewers Domain
viewers = arcpy.MakeTableView_management(userTable,"Viewers",""""GroupName" = 'Viewer'""")
arcpy.TableToDomain_management("Viewers","Username","Username",domainTargetGdb,"Viewers","Viewer Users","REPLACE") You will need to change the source of the users table and the target geodatabase as well as the query expressions used to select your user groups in the Make Table View tool.
... View more
04-16-2015
02:51 PM
|
0
|
1
|
658
|
|
POST
|
I would use the Make Table View tool with an expression to select your users into groups - then use the Table to Domain tool to create the domains.
... View more
04-16-2015
02:19 PM
|
0
|
0
|
658
|
|
POST
|
ESRI should include the Near tool in all ArcGIS versions as it is such a common task. I can see the point of having the more advanced editing and geodatabase design/modelling tools in Advanced versions of ArcGIS but I can't see why something as basic as the Near tool is not included in the basic license level.
... View more
04-15-2015
03:18 PM
|
2
|
0
|
1903
|
|
POST
|
Under the hood all GPS units use WGS84 geographic coordinates. I am guessing that a coordinate system hasn't been applied to the data when it was imported so ArcMap can't reproject it to match your other map data. Following these steps should resolve the issue: Open a blank map document in ArcMap then go to File > Add Data > Add XY Data Click on the Edit button then browse to Geographic Coordinate Systems > World > WGS84. The Coordinate System should now show GCS_WGS_1984. After the xy-event layer is added to the map you can export it to a feature class by right-clicking on it and selecting Data > Export Data. Export all features using the same coordinate system as the source data. When prompted add the feature class to the map. If you check the layer properties you will notice that the data has the correct coordinate system assigned: When you add this data to your other map data ArcMap should be able to reproject your GPS points on the fly to match the coordinate system of your map. If there are alignment issues you may need to apply a datum transformation within ArcMap or when projecting the data to match your other data.
... View more
04-15-2015
03:02 PM
|
2
|
1
|
7331
|
|
POST
|
The coordinates are most likely Web Mercator. If you are using the Javascript API you can use the geographicToWebMercator() function to convert your geographic coordinates before sending the addFeature request.
... View more
04-12-2015
03:27 PM
|
0
|
0
|
645
|
|
POST
|
You could do this client side you would just need to write a javascript function that converts the graphics into KML. Check out the KML Documentation Introduction You would need to convert the ESRI graphic geometry object into the equivalent KML geometry: ESRI Point - KML Point ESRI Polyline (path) - KML LineString ESRI Polygon - KML Polygon
... View more
04-09-2015
02:54 PM
|
0
|
2
|
2993
|
|
POST
|
These files are already in ArcInfo grid format so you shouldn't need to convert them: 30616 - What is the file structure of an Arc/INFO Grid? The Grid format relies on a directory structure where a workspace contains one or more grid directories. The workspace should also contain an info directory. I am guessing that something has gone wrong with the directory structure as Arcmap should be able to load the grid format. I would suggest looking at the original download to see if the entire workspace is there or contacting the data provider to get the workspace - as the Info subdirectory contains several files which maintain certain information about the grid. This ArcGIS Help 10.1 page has more information on the format. GRID directory ---------------- There are a number of files that can be stored in a GRID's subdirectory. Not all of them are necessary for the GRID to display. They can be stored in one of three storage types, INFO format, ASCII format and binary format. dblbnd.adf - The boundary file contains the minimum and maximum x,y coordinates for a grid - INFO format hdr.adf - The header file contains information about the GRID's cell resolution, type (integer or floating point), compression, and tile information. - binary format log - The log file contains a history about the creation of and alterations to a GRID. - ASCII format prj.adf - The projection file stores the known map projection information of the GRID. It is optional. - ASCII format sta.adf - The statistics (minimum, maximum, mean, and standard deviation) of the cell values. - INFO format vat.adf - The value attribute table (VAT) stores the the attribute data associated with the zones of the grid. The vat.adf can only exist for integer GRIDs. - INFO format w001001.adf - Stores the value of each cell in the first (base) tile of the GRID. - If the GRID is floating point, the values are single precision. - binary format w001001x.adf - Stores the index for the blocks in the tile. - binary format
... View more
04-07-2015
03:31 PM
|
0
|
2
|
938
|
|
POST
|
If you are doing this from the ArcMap Python window the following code should work: import os
basepath = r'G:\xTemp\MapLayers'
mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd):
if lyr.isGroupLayer == True:
grpPath = os.path.join(basepath, str(lyr))
if not os.path.exists(grpPath):
os.makedirs(grpPath)
else:
fn = os.path.join(basepath, str(lyr) + ".lyr")
lyr.saveACopy(fn)
print "Saved: " + fn Just change the basepath to the output directory.
... View more
04-01-2015
09:46 PM
|
1
|
4
|
4655
|
|
POST
|
I am not aware of a convention for this but I generally use the following approach: This way your break values are shown clearly.
... View more
03-31-2015
01:13 PM
|
0
|
0
|
531
|
|
POST
|
I would bring your Excel data into your feature classes before doing the Merge operation. To do this: Add a Religion field to each point layer Join your excel data using OID Calculate the values for your Religion field from the joined data using the Field Calculator Remove the join Repeat for all point layers Then merge your point layers: You will notice in the Merge tool field map all the religion values are being assigned to a single output field. When the merge is complete all of your data should be there:
... View more
03-29-2015
03:52 PM
|
0
|
0
|
1837
|
|
POST
|
If you are storing your hyperlinks in a field then you can just update the path using the Field Calculator. Back up your data or use an edit session so you can undo any changes. For example - if your hyperlinks stored in a field called LinkPath: Open the attribute table for your data Open the Field Calculator for the hyperlink field Change the Parser option to Python Use the python replace function in your expression to change the path: !LinkPath!.replace('C:\\Temp\\Photos', 'H:\\Photos') This will replace C:\Temp\Photos with H:\Photo - just change the values to match your own paths.
... View more
03-29-2015
03:04 PM
|
1
|
0
|
672
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2014 06:13 PM | |
| 1 | 08-25-2015 02:04 AM | |
| 1 | 10-07-2014 03:54 PM | |
| 1 | 08-07-2014 09:19 PM | |
| 1 | 03-04-2015 02:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-21-2021
06:32 PM
|