POST
|
Kim, This is the code I am using to download the .dbf & xml tables. # import FTP library from ftplib import FTP # This will handle the data being downloaded def handleDownload(block): file.write(block) print ".", # Log in to the server ftp = FTP('NAME') ftp.login('user', 'password') # Go to a specific directory & get a list of contents directory = 'gis/Taxlots/GIS_DATA/Tables' print 'Changing to' + directory ftp.cwd(directory) ftp.retrlines('LIST') # File to download filename = 'Charac.dbf' # Open the file for writing in binary mode print 'Opening local file ' + filename file = open('Charac.dbf', 'wb') # Download the file print 'Getting' + filename ftp.retrbinary('RETR Charac.dbf', handleDownload) file.close(); print 'Closing file' + filename Within the .gdb there are multiple files that I need to download. Do you know of a way to download all files within the specific .gdb by using the code above to retrieve all files. Thanks, Zlatko Grebenar grebenarz@cityofnampa.us
... View more
02-22-2012
11:01 AM
|
0
|
0
|
532
|
POST
|
I have been struggling with this for a while now. I managed to download .dbf & .xml files just fine, but am stuck on downloading a .gdb from an FTP site. Is there a way to do this without having to list every single file within the geodatabase. Any help is much appreciated. Thanks, Zlatko Grebenar City of Nampa GIS grebenarz@cityofnampa.us
... View more
02-17-2012
07:36 AM
|
0
|
2
|
1612
|
POST
|
HI YungKai, Script: private function doFind1():void { findTask.execute(myFindParameters); } private function executeCompleteHandler1(event:FindEvent):void { myGraphicsLayer.clear(); resultSummary.text = "Found " + event.findResults.length + " results."; myGraphicsLayer.symbol = sfsFind; var resultCount:int = event.findResults.length; if (resultCount == 0) { Alert.show("No parcels found. Please change your search."); } else { // add feature as graphic to graphics layer for (var i:int = 0; i < resultCount; i++) { var graphic:Graphic = FindResult(event.findResults).feature; graphic.toolTip = event.findResults.foundFieldName + ": " + event.findResults.value; myGraphicsLayer.add(graphic); } // zoom to extent of all features var graphicProvider:ArrayCollection = myGraphicsLayer.graphicProvider as ArrayCollection; var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(graphicProvider.toArray()); map.extent = graphicsExtent.expand(1.4); // zoom out a little } } Declarations: <esri:FindTask id="findTask2" executeComplete="executeCompleteHandler1(event)" url="**************"/> <esri:FindParameters id="myFindParameters" contains="true" layerIds="[3]" outSpatialReference="{map.spatialReference}" returnGeometry="true" searchFields="[SubName]" searchText="{fText.text}"/> Am I on the right track here or am I missing something? Thanks, Zlatko
... View more
09-13-2011
02:13 PM
|
0
|
0
|
230
|
POST
|
I am using code from the samples (Zoom to found features). I got it to work on searching for fields in one service just like the example shows. How can I add multiple find tasks in order to search multiple services? Any code or help is very much appreciated. Thanks, Zlatko
... View more
09-12-2011
02:50 PM
|
0
|
3
|
734
|
POST
|
Robert, I can't thank you enough. I had no problems setting it up, it works great. You are the best!! Zlatko
... View more
07-20-2011
09:59 AM
|
0
|
0
|
202
|
POST
|
Flex Viewer version 2.3.1 (Compiled) I would like to accomplish two things but I'm not even sure if that's possible using the compiled version. Using the enhanced search widget I would like to search multiple attributes of a layer without using the drop down to select each attribute. Is it possible to have three different attributes next to each other with a textbox where one could type in a value & hit search after all values have been entered? The second goal would be to display the results in a grid on the bottom of the page after a search has been completed using the e search widget. See City of Greeley link: http://gis.greeleygov.com/origin/linngrove/ How complex is it to accomplish these two things? P.S. I have attached an image...:) Any help is greatly appreciated. Thank you, Zlatko
... View more
07-15-2011
10:37 AM
|
0
|
3
|
586
|
POST
|
I am using ArcGIS Viewer for Flex 2.2. I am publishing an mxd as a map service to the ArcGIS Server. As of right now I am just using a shapefile as a trial to get it working. This is an internal application and the hyperlink is an UNC path to the PDF files. Thanks, Zlatko
... View more
04-20-2011
06:26 AM
|
0
|
0
|
532
|
POST
|
I am using the sample flex viewer the create an application that links subphases to plats which are PDF's. I don't have Adobe Flex Builder in order to really customize the viewer. I have populated a field that links the subphases to specific plats. Is there a way to have the link open up a PDF in a new window? Thanks, Zlatko
... View more
04-19-2011
01:03 PM
|
0
|
8
|
3711
|
POST
|
Here is the link to a traffic camera... http://www.achdidaho.org/ATIS/CCTV/CCTV_36.jpg?939 I just got it to work all I did is remove the text/numbers after .jpg. Thanks for your help,
... View more
10-13-2010
12:08 PM
|
0
|
0
|
555
|
POST
|
The InfoPopupWidget only loads the image if the url ends with .jpg, .png or .gif. What are your url's like? Here is the link to a traffic camera... http://www.achdidaho.org/ATIS/CCTV/CCTV_36.jpg?939
... View more
10-13-2010
12:05 PM
|
0
|
0
|
555
|
POST
|
I'm trying to display traffic cameras using the query widget. They display as a link in the widget but when I hover over the different cameras the info pop up window only displays the URL and not the actual traffic camera. Here is the code for the query widget: <configuration> <name>Traffic Cameras</name> <layer>http://******/ArcGIS/rest/services/Development/Traffic_Cams/MapServer/0</layer> <query>1=1</query> <fields all="false"> <!-- all="false" means it does not get all fields, only the fields specified below --> <field name="DESCRIPTIO"/> <field name="URL"/> </fields> <linkfield>URL</linkfield> <refreshrate></refreshrate> <zoomscale>5000</zoomscale> <info>widgets/InfoTemplates/InfoPopupWidget.swf</info> </configuration> Thank you,
... View more
10-13-2010
10:35 AM
|
0
|
10
|
731
|
POST
|
Steps: Query the database by last name Click on the name wanted from the list Zoom to the location based on x and y coordinate I'm new to javascript programming and would appreciate any help with the code to accomplish this task. Thanks in advance,
... View more
07-08-2010
08:27 AM
|
0
|
1
|
463
|
POST
|
Thanks for the links I'll see if I can make it work with my application...
... View more
06-07-2010
12:41 PM
|
0
|
0
|
194
|
POST
|
Does anyone have an identify widget for the Sample Viewer? Any ideas on how to add a scale bar and a logo? Thanks in advance..
... View more
06-07-2010
08:27 AM
|
0
|
2
|
1202
|
POST
|
Hi Robert, That worked I will have to check if all the widgets work. Do you know of any other bugs that need to be fixed. You have been very helpful on several occasions in this forum. Thanks,
... View more
05-04-2010
02:36 PM
|
0
|
0
|
143
|
Online Status |
Offline
|
Date Last Visited |
06-22-2023
11:22 PM
|