POST
|
Hi Robert, thanks for replying, that's useful to know.
... View more
08-07-2016
01:30 AM
|
0
|
0
|
596
|
POST
|
Robert Scheitlin, GISP Hi Robert, I found a post here where a person was asking about client side printing and you mentioned that you had done some work on getting a client side print working using the JS api so I was wondering if you ever created a widget for client side printing? I have also found this arcgis thumbnail builder on GitHub but I'm just trying to figure out if that map to canvas script is the only way to do it using the 3.x JS APIs. Thanks for any info you might have!
... View more
08-05-2016
03:23 AM
|
0
|
2
|
542
|
POST
|
Hi, I was wondering if anyone could point me to the unminified source code for the new Search Widget that is available in the ArcGIS for Javascript 3.13 API. It doesn't seem to be on the Esri Github site and I can only get the minified code from the download page on the developers site. Thanks for any info, Anto
... View more
04-14-2015
01:21 AM
|
0
|
1
|
3392
|
POST
|
Hello all, I am writing some code to use ArcGIS locators to geocode some addresses. I have this working correctly for Locators that return Point geometries using the AddressToLocations method, this works for single line and multi line addresses. But if a Locator that returns Polylines is used this method throws an error saying "Invalid Geometry", this seems to be because the results are expected to have a Point geometry in them but because I am using a Locator that returns Polylines the geometry can't be passed into the result. I have found a way to get around this for Polyline locators by using the FindAddresses method, it seems to work in a similar way to the AddressToLocations method except that it does not throw an error for the Polyline geometry, it just returns a null geometry, you can see the attributes in the singlLine image attached, note the X and Y are empty because the geometry is not a point. But there is an issue with this method too, multiline addresses do not seem to work with the FindAddress method, or at least not correctly. The candidates that come back from the multiline addresses when using FindAddresses seem to be empty, I would have expected that there would be no candidates if it could not find any features that matched, this can be seen in the multiline image. Just as an example I have attached a screenshot called inputs that show the values that are passed into AddressToLocations (for a point locator) or FindAddresses (for a polyline locator). These work correctly when used for a multiline search with the point locator but they do not work for multi line serching with the Polyline locator. So my main questions are: should an empty candidate be returned if no matching addresses are found? Is there a better way to geocode addresses using the Runtime SDK for WPF for a locator that does not return Point geometries and that works for both Single and Multi line searches? Thanks for any help, Anthony [ATTACH=CONFIG]31283[/ATTACH] [ATTACH=CONFIG]31284[/ATTACH] [ATTACH=CONFIG]31285[/ATTACH]
... View more
02-10-2014
04:14 AM
|
0
|
0
|
357
|
POST
|
Good point Wayne, I might have too look into that more soon. Thanks again, Anto
... View more
02-14-2013
06:10 AM
|
0
|
0
|
1092
|
POST
|
Yeah that is what I have been doing alright Wayne, thanks.
... View more
02-14-2013
05:39 AM
|
0
|
0
|
1092
|
POST
|
Thanks for the replies guys. That code it is working well now Jeff! Just out of curiosity is there a way to make the MakeXYEventLayer_management write straight to a Geodatabase instead of creating an in memory Feature Class. I have tired it already but it doesn't seem to do anything so I stayed with the in memory Feature Class, there is a chance that the CSV files will be really big in the future so storing them in memory might not be possible. Thanks, Anto
... View more
02-14-2013
05:24 AM
|
0
|
0
|
1092
|
POST
|
Hi Wayne, The only details that I can offer are the code segment below and also the contents of the schema.ini file that seems to be preventing the function from working. locatorType = sys.argv[1] # e.g."Postal" #
gDBPath = sys.argv[2] # e.g. "C:/Users/akeogh/Documents/ArcGIS/CSV_fGDB.gdb" #
csvFile = sys.argv[3] # e.g. "C:/Users/akeogh/Documents/ArcGIS/AddressBase.csv" #
fullDataLayer = ConfigManager.getFullDataFCName()
memLayer = "tempFullLayer"
xCoords = ConfigManager.getXFieldName()
yCoords = ConfigManager.getYFieldName()
postcode = ConfigManager.getPostcodeFieldName()
spRef = ConfigManager.getProjectionFile()
print("Inputs -> ")
print("Locator: "+locatorType)
print("GDB Path: "+gDBPath)
print("CSV File: "+csvFile)
if locatorType.lower() == "postal":
# Make a point feature class from CSV file, schema.ini file created here
print ("Making in memory feature class")
arcpy.MakeXYEventLayer_management(csvFile, xCoords, yCoords, memLayer, spRef) The schema.ini file contains the following, one thing to note is that there are 25 columns in the CSV but only 3 are output to the schema file: [AddressBase.csv] Col8=SUB_BUILDING_NAME Text Col17=XCOORDINATE Text Col18=YCOORDINATE Text Also XCOORDINATE and YCOORDINATE are doubles in the data not text but it is always output as text. Thanks for any help you can provide.
... View more
02-13-2013
11:12 PM
|
0
|
0
|
1092
|
POST
|
Hi, I am trying to create a feature class from a CSV file using the MakeXYEventLayer_management function. The function works correctly the very first time the script is run but after the script has run and the function has output a Schema.ini file for the CSV file if it is ran again the function fails. The only way to make it run successfully again is to delete the schema.ini file each time. Does any one know a reason for this. Thanks, Anto
... View more
02-08-2013
12:39 AM
|
0
|
9
|
4132
|
POST
|
Thanks for the info Bjorn, I have already created a solution for my problem but I will also look into flex 3.1 also.
... View more
12-09-2012
10:44 PM
|
0
|
0
|
165
|
POST
|
Hi, I am working on customising the Edit Widget. I have made some changes to the EditWidgetAttributeInspectorSkin to add a button which dispatches an event to the Edit Widget to tell it to display a secondary modal box for the user to enter some values. When the user clicks the ok button I want to pass a value from the modal box back to the EditWidgetAttributeInspectorSkin and display the value between 2 buttons to allow the user to change or delete the info. I have created a custom event which contains a data object similar to the event class here: http://www.flex-blog.com/flex-custom-event-example/ My problem is catching the event in the EditWidgetAttributeInspectorSkin, I can catch it in the Edit widget but I don't know how to pass it on to the EditWidgetAttributeInspectorSkin or just catch it in there in the first place. The 3 screenshots attached show the workflow. Thanks for any help!
... View more
12-04-2012
01:01 AM
|
0
|
1
|
1656
|
POST
|
I am working on a custom edit widget for Flex. The widget will have the same functionality as the edit widget but it will also be able to create and edit features in a related feature class. So for example if you create a feature the editing pop-up will appear to allow you to enter the data for the feature based on the fields for that feature type as it usually does. The custom part is where the user can click an ???Add Related Feature??? button at the bottom of the pop-up. This should then append to the current list of editable fields in the pop-up, or otherwise display, the fields for a feature in the related feature class. Also the relationship is one ??? many, so the user will want to click the ???Add Related Feature??? button multiple times, each time adding all fields to the pop-up then enter their data. When the user clicks the submit button both feature classes should be updated with the new data. There is an example of editing a related feature so that part is ok, the main question is does anybody know the best way to get the fields from the related feature class and display them in the same manner as the normal edit widget pop-up? I can???t see which file is doing the parsing and control creation for the current pop-up. The only way I can think of to do it, is to query the layer for its fields and programmatically create the controls for each field. Any ideas would be helpful. Thanks, Anthony
... View more
11-30-2012
05:15 AM
|
0
|
2
|
2166
|
POST
|
Nevermind, I figured it out, you just add it as a child to the correct container.
... View more
10-24-2012
03:12 AM
|
0
|
0
|
526
|
POST
|
Hi Scott, I am doing something similar to what you have described and I have used your code as a starting point so thanks for that. I was wondering how you are displaying the Map Coords text block in the map web part? The only way I know of is to display it in a dialog box but as you can see in the screenshot attached this isn't ideal. Thanks for any help, Anthony
... View more
10-24-2012
01:21 AM
|
0
|
0
|
526
|
POST
|
In the end I ditched the Close event and used the Unloaded event instead.
... View more
05-08-2012
02:30 AM
|
0
|
0
|
162
|
Title | Kudos | Posted |
---|---|---|
1 | 10-07-2011 03:27 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|