Thanks for the help and another question

60 views
Skip to first unread message

Stacy Doore

unread,
Jul 6, 2012, 1:47:10 PM7/6/12
to jflo...@googlegroups.com
Dear Ilya and Group,
Thank you for your help in pointing out the basic errors with my files. I have cleaned them up so that the nodes match the flow origin and destinations. I also have a working .shp file. I can load all of the files and can open the JFlow view which shows a heat map but my spatial visualization is coming in flat.
I must still be specifying something wrong but am not sure what that might be.
I feel like I am making progress but missing some additional small detail to get the spatial piece in place.
I am sending my .jmfv, .csv and .shp files to see if you might see what I am doing wrong.
Any help would be appreciated,
Stacy Doore
On Tue, Jun 26, 2012 at 4:09 PM, Ilya Boyandin <ily...@gmail.com> wrote:
Hello Stacy,

I checked your jfmv config file, the names of the parameters were slightly wrong, I fixed them and attached the file. But still there are problems with the csv files: First, for some of the nodes CODE is not specified. Second, there are origins or destinations in the flows file which are not found in the nodes file. This you have to fix.

Regards
Ilya


On Tuesday, June 26, 2012 8:27:09 PM UTC+2, Stacy Doore wrote:
Dear Discussion Group,
I am new to Jflowmap but I am excited to use it in my research on student mobility in Maine.
I have set up the initial .csv files (node and flows) and the .jfmv file based on the directions on the site
but I am getting an error message "java.lang.IllegalArgumentException:Property'data.attrs.flow.origin'must be specified" when I try to open the .jfmv using File>Open View.
 
I am sure it is something simple I am missing since it seems like a straight forward error message but I am not sure where I am going wrong.
 
I have attached my simple files and I have the files in the data folder and the shapefile in the data/maps/shapefiles folder in Jflowmap.
Any help you might provide would be greatly appreciated.
Stacy



--
Stacy A. Doore
Research Associate, Center for Research and Evaluation
PhD. student, Spatial Information Science and Engineering
NSF IGERT Trainee Sensor Science, Engineering and Informatics (SSEI)
School of Computing and Information Science
University of Maine

mobility0708flowsv2.jfmv
School_Mobility0607v2a.shx
ODnetworkworkingfile-flowsv2a.csv
School_Mobility0607-nodesv2.csv
School_Mobility0607v2a.dbf
School_Mobility0607v2a.prj
School_Mobility0607v2a.sbn
School_Mobility0607v2a.sbx
School_Mobility0607v2a.shp
School_Mobility0607v2a.shp.xml

Ilya Boyandin

unread,
Jul 10, 2012, 5:02:31 AM7/10/12
to jflo...@googlegroups.com
Hello Stacy,

It seems that the coordinates in the nodes file are not in Lat, Lon, but in some other coordinate system. So in the .jfmv file you should specify:
map.projection=None

Then, at least you'll see the points. I am not sure if they are oriented correctly. If not, you should probably convert these coordinates to Lat,Lon in the nodes csv file.

In the shapefile you attached, it appears, there are only points, no polygons, so JFlowMap does not really need it. It can only draw polygons of a shapefile, so you can see a kind of a map. It does not do anything with the points.

Hope it helps.

Regards
Ilya
Reply all
Reply to author
Forward
0 new messages