Select to view content in your preferred language

CSV Widget?

2105
5
07-10-2011 09:54 AM
dcopple
Frequent Contributor
I am looking for a simple widget to bring in and populate the map with points from a csv file in flex.  I can do in any other gis product (desktop, online, explorer, etc).  But cannot figure it out with the flex viewer, any tips would be appreciated, and when if you give a simple coding tip, then tell me which component I can find it in (ie, config.xml).  I am running v.2.x from the sample flex viewer.
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Don,

  Much of the stuff you have been looking for lately is not out of the box functionality. You can if you get into development with the Flex API develop this capability fairly easily. You can find several widget out there in the code gallery that do not do exactly what you want but do similar things that you can use to borrow code from. My eDraw widget saves and loads from a txt file graphics drawn on the map, so that could be a starting point for you. It will show you how to load a txt file, though the format of this file is JSON internally. Bottom line is there is now CSV widget available for you to just plug in.
0 Kudos
dcopple
Frequent Contributor
I will look for that in the code gallery.  Would love to start coding this, but our agency can't afford to get me Adobe Flex, or IT to go that route, so was looking for another way to do the coding/compiling to .swf to plug into the viewer.  It seems both csv and kml/kmz should be core funtions of any viewer, but are avoided here.  I suppose it is like Microsoft and Apple, can't develop one tool to do both with ease.  there is so much data with both that need to be mashed into one.  I can do all this via javascripting and have, but just looking for a simple tool to mash up csv, kml/kmz, etc.  Thanks for the reply, and I will check out your tool.  Any other replies would be appreciated.....
0 Kudos
NasifAlshaier
Deactivated User
Hi Don..

I am using a lot of CSV files in my flexviewer... The way I do is as followed:

- create an event layer in arcmap using the csv file and save it in mxd file .
- create a dynamic service using the mxd map and use the service in my application...
- my CSV files gets update d everyone and I see my new data set in the application without doing any refresh ..

I hope this help
0 Kudos
dcopple
Frequent Contributor
How do you add an event layer for a csv that resides at an HTTP address?  I could add a local file only, which would update if I update the csv manually, but it is updated by several folks at a time.  The website has a download interface that I can connect to via ArcGIS explorer, but haven't figured out how to do that in Arc Desktop.  Seems that there could be an easily written flex interface that would load the csv form the download site like ArcGIS explorer already does.  That, or allow arec GIS explorer to share information via GeoRSS.  Also, still trying to figure out the KML widget as well.

Thanks for your reply
0 Kudos
WadeGivens
Emerging Contributor
Hi Don..

I am using a lot of CSV files in my flexviewer... The way I do is as followed:

- create an event layer in arcmap using the csv file and save it in mxd file .
- create a dynamic service using the mxd map and use the service in my application...
- my CSV files gets update d everyone and I see my new data set in the application without doing any refresh ..

I hope this help


Nasif:

Would you mind sharing your flex code that enables you to "use" the csv layer in your mxd service?

Thanks,
Wade
0 Kudos