Error Mesage- Graph mode

37 views
Skip to first unread message

Gabriel

unread,
Oct 30, 2012, 7:24:14 PM10/30/12
to connectiv...@googlegroups.com
Hi,
i`m facing a problem when trying to run the Graph mode.
It always returns an error message:

Unhandled exception has occurred in a component in your application...Unable to read beyond the end of the stream.
* Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.ReadChar()
at HexSimDomain.HexMap.ReadHxnHeader(BinaryReader reader)
at HexSimGUI.LgfFileCtrl._btnRun_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
CATToolkit
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Gabriel/Desktop/CAT64/CATToolkit.exe
----------------------------------------
HexSim nongui
Assembly Version: 1.0.4455.25645
Win32 Version: 1.0.4455.25645
CodeBase: file:///C:/Users/Gabriel/Desktop/CAT64/HexSim%20nongui.DLL
----------------------------------------
HexSim
Assembly Version: 1.0.4455.25651
Win32 Version: 1.0.4455.25651
CodeBase: file:///C:/Users/Gabriel/Desktop/CAT64/HexSim.EXE
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5462 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
HexSim gui utils
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Gabriel/Desktop/CAT64/HexSim%20gui%20utils.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

Could you help me to figure out what`s happening?
Thanks!

carlos

unread,
Oct 30, 2012, 8:56:17 PM10/30/12
to Connectivity Analysis Toolkit
The error message is consistent with a corrupted hexmap file.  But
we'll need to see the inputs to be sure.

gabriel antunes daldegan

unread,
Oct 31, 2012, 8:08:20 AM10/31/12
to connectiv...@googlegroups.com
Hi Carlos,

I cannot send you the ASCII files, cause they are too big.
Instead, I can send the original files (in GDB).
Sounds good?

Thanks

2012/10/30 carlos <klamathco...@gmail.com>



--
Gabriel Antunes Daldegan
55 61 8159 3037

carlos

unread,
Oct 31, 2012, 12:08:28 PM10/31/12
to Connectivity Analysis Toolkit
can you send the hexmap?
I am still unclear at what stage you are getting this error.

On Oct 31, 5:08 am, gabriel antunes daldegan
<gabrieldalde...@gmail.com> wrote:
> Hi Carlos,
>
> I cannot send you the ASCII files, cause they are too big.
> Instead, I can send the original files (in GDB).
> Sounds good?
>
> Thanks
>
> 2012/10/30 carlos <klamathconservat...@gmail.com>

gabriel antunes daldegan

unread,
Oct 31, 2012, 1:10:51 PM10/31/12
to connectiv...@googlegroups.com
Sorry I`ve been not clear.
The error occurs when I set the Remnants.hxn at the Graph tab and click to run.

I changed the resolution of the raster (from 30m to 60m) and now the toolkit seems to be running well (it stills processing).

thanks


2012/10/31 carlos <klamathco...@gmail.com>

gabriel antunes daldegan

unread,
Nov 7, 2012, 2:56:14 PM11/7/12
to connectiv...@googlegroups.com
Hi Carlos, 

I`m still facing some problems trying to running the Graph tab for my Habitat file.
I`ve left it running for the last 4 days, and the toolkit seems to stoped the processing, but there is no graph file as output
I`m sending you my Habitat Hexmap by Large File Attachment website.
Could you check it, please?

Thank you!
Gabriel

2012/10/31 gabriel antunes daldegan <gabriel...@gmail.com>

gabriel antunes daldegan

unread,
Nov 8, 2012, 6:24:06 AM11/8/12
to connectiv...@googlegroups.com
Hi Carlos, good morning,

Please, find attached my habitat and cost hexmaps.
I`m still tryin to create the graphs files (LGFs and Edges), but it has been unsuccessful.
Thanks for your help!
gabriel

2012/11/7 gabriel antunes daldegan <gabriel...@gmail.com>
CAT_Inputs.rar

Carlos Carroll

unread,
Nov 8, 2012, 11:34:19 AM11/8/12
to connectiv...@googlegroups.com
The files you sent are not hexmaps but rather the ascii inputs, but I'll look at them.
2 questions:
1) what hexagon size are you specifiying when you create  the hexmap?
2) what type of graph file are you trying to create? you mention you are creating lgfs, but are you also trying to create an edgelist file?
(you realize that to create and edglist, you would just use the habitat hexmap, and not the cost hexmap).
thanks.

gabriel antunes daldegan

unread,
Nov 8, 2012, 11:41:26 AM11/8/12
to connectiv...@googlegroups.com
Oops,, sorry about that.
Now I`m sending the hexmaps.

They were created with 1 hectar size.
I`m trying to create diferents scenariso, so I`m running both LGFs (Direct and Undirect) and two Edge`s (distance and Conductance).

Thank you very much!

2012/11/8 Carlos Carroll <klamathco...@gmail.com>
CAT_output.rar

carlos

unread,
Nov 8, 2012, 12:06:30 PM11/8/12
to Connectivity Analysis Toolkit
You're problem is that your hexagon size is too small given the extent
of the study region. Using 1 hectare hexagons creates a hexmap of 36
million hexagons (and thus 36 million nodes). Even if you could create
the graph file input, calculating centrality on a graph of this size
is not computationally feasible. You need to use larger hexagons.
Start with 100 hectare hexagons and then attempt eg, 50 hectare, 10
hectare, and see what you have patience to wait for. If these
resolutions do not capture the detail you need, you can try a nested
analysis (coarse-scale regional analysis followed by fine-scale
analysis on subregions).

On Nov 8, 9:00 am, gabriel antunes daldegan
<gabrieldalde...@gmail.com> wrote:
> Oops,, sorry about that.
> Now I`m sending the hexmaps.
>
> They were created with 1 hectar size.
> I`m trying to create diferents scenariso, so I`m running both LGFs (Direct
> and Undirect) and two Edge`s (distance and Conductance).
>
> Thank you very much!
>
> 2012/11/8 Carlos Carroll <klamathconservat...@gmail.com>
>
>
>
>
>
>
>
>
>
> > The files you sent are not hexmaps but rather the ascii inputs, but I'll
> > look at them.
> > 2 questions:
> > 1) what hexagon size are you specifiying when you create  the hexmap?
> > 2) what type of graph file are you trying to create? you mention you are
> > creating lgfs, but are you also trying to create an edgelist file?
> > (you realize that to create and edglist, you would just use the habitat
> > hexmap, and not the cost hexmap).
> > thanks.
>
> > On Thu, Nov 8, 2012 at 3:24 AM, gabriel antunes daldegan <
> > gabrieldalde...@gmail.com> wrote:
>
> >> Hi Carlos, good morning,
>
> >> Please, find attached my habitat and cost hexmaps.
> >> I`m still tryin to create the graphs files (LGFs and Edges), but it has
> >> been unsuccessful.
> >> Thanks for your help!
> >> gabriel
>
> >> 2012/11/7 gabriel antunes daldegan <gabrieldalde...@gmail.com>
>
> >>> Hi Carlos,
>
> >>> I`m still facing some problems trying to running the Graph tab for my
> >>> Habitat file.
> >>> I`ve left it running for the last 4 days, and the toolkit seems to
> >>> stoped the processing, but there is no graph file as output
> >>> I`m sending you my Habitat Hexmap by Large File Attachment website.
> >>> Could you check it, please?
>
> >>> Thank you!
> >>> Gabriel
>
> >>> 2012/10/31 gabriel antunes daldegan <gabrieldalde...@gmail.com>
>
> >>>> Sorry I`ve been not clear.
> >>>> The error occurs when I set the Remnants.hxn at the Graph tab and click
> >>>> to run.
>
> >>>> I changed the resolution of the raster (from 30m to 60m) and now the
> >>>> toolkit seems to be running well (it stills processing).
>
> >>>> thanks
>
> >>>> 2012/10/31 carlos <klamathconservat...@gmail.com>
>  CAT_output.rar
> 2704KViewDownload

gabriel antunes daldegan

unread,
Nov 8, 2012, 12:14:56 PM11/8/12
to connectiv...@googlegroups.com
Thank you very much Carlos.

I thought these could be the problem, but my supervisor told me to use the "best" resolution
now I have arguments to talk to him.

I`m creating bigger hexmap rigth now.

Thanks!
Have a good day

2012/11/8 carlos <klamathco...@gmail.com>

gabriel antunes daldegan

unread,
Nov 10, 2012, 8:32:32 AM11/10/12
to connectiv...@googlegroups.com
Hi Carlos,

I'm facing one more problem, these time trying  to run the final step at Connectivity tab.

Attached are two figures from the error.
I've tried to run diferents functions

thanks!

2012/11/8 gabriel antunes daldegan <gabriel...@gmail.com>
Connectivity_erro.jpg
Connectivity_tab.jpg

gabriel antunes daldegan

unread,
Nov 10, 2012, 8:58:05 AM11/10/12
to connectiv...@googlegroups.com
Error Message

2012/11/10 gabriel antunes daldegan <gabriel...@gmail.com>
Connectivity_error.jpg

carlos

unread,
Nov 12, 2012, 12:42:30 PM11/12/12
to Connectivity Analysis Toolkit
Can you post or send a portion (eg first 10 lines) of your input file
(dist.txt)?

On Nov 10, 5:58 am, gabriel antunes daldegan
<gabrieldalde...@gmail.com> wrote:
> Error Message
>
> 2012/11/10 gabriel antunes daldegan <gabrieldalde...@gmail.com>
>
>
>
>
>
>
>
> > Hi Carlos,
>
> > I'm facing one more problem, these time trying  to run the final step at
> > Connectivity tab.
>
> > Attached are two figures from the error.
> > I've tried to run diferents functions
>
> > thanks!
>
> > 2012/11/8 gabriel antunes daldegan <gabrieldalde...@gmail.com>
>
> >> Thank you very much Carlos.
>
> >> I thought these could be the problem, but my supervisor told me to use
> >> the "best" resolution
> >> now I have arguments to talk to him.
>
> >> I`m creating bigger hexmap rigth now.
>
> >> Thanks!
> >> Have a good day
>
> >> 2012/11/8 carlos <klamathconservat...@gmail.com>
> ...
>
> read more »
>
>  Connectivity_error.jpg
> 85KViewDownload

gabriel antunes daldegan

unread,
Nov 14, 2012, 4:49:22 PM11/14/12
to connectiv...@googlegroups.com
Hi Carlos,

Attached is my graph input. which has generate the last error message.
I`m also sending one more image from another error message, which one I cannot understand, since my PC is running a 64bits system.

Thank you very much

2012/11/12 carlos <klamathco...@gmail.com>
rema_EdgeList_Dist.txt
Connectivity_error.jpg

carlos

unread,
Nov 15, 2012, 1:10:33 PM11/15/12
to Connectivity Analysis Toolkit
hi, your problem is that the CAT expects decimal symbol to be in the
US convention ( a petiod: .) rather than the European convention (a
comma: ,). When I replace all commas with periods the input runs fine.
I am curious, why does the distance file contain commas? Was it
produced outside of the CAT? I would assume that a graph format file
produced within the CAT (with the "Graphs" tab) would always observe
the convention of using periods for decimals.

I don't have much to suggest on the windows error box as I cannot read
Portuguese :). If you are on a 64-bit system then you should be able
to use either version of the CAT.

On Nov 14, 1:49 pm, gabriel antunes daldegan
<gabrieldalde...@gmail.com> wrote:
> Hi Carlos,
>
> Attached is my graph input. which has generate the last error message.
> I`m also sending one more image from another error message, which one I
> cannot understand, since my PC is running a 64bits system.
>
> Thank you very much
>
> 2012/11/12 carlos <klamathconservat...@gmail.com>
> ...
>
> read more »
>
>  rema_EdgeList_Dist.txt
> 6395KViewDownload
>
>  Connectivity_error.jpg
> 946KViewDownload

gabriel antunes daldegan

unread,
Nov 19, 2012, 5:04:33 PM11/19/12
to connectiv...@googlegroups.com
Hi Carlos!
Thank you once again, your help has been great for me.
I`ve created the final file (Connectivity file), but is not in TXT format. I`ve tried to open it in ArcGIS, but the software doesn`t recognize the connectivity files. They`re attached in this message.
I`m now using ArcGIS 10, but I also have another PC with ArcGIS 9.3.

Best!
Gabriel

2012/11/15 carlos <klamathco...@gmail.com>
CurrFlowBetweCentrality_1
MinCostFlow_1
ShortPathBetweCentrality_1

carlos

unread,
Nov 19, 2012, 5:19:50 PM11/19/12
to Connectivity Analysis Toolkit
Those are text files. If you rename them to add a .txt extension, you
should be able to "relate" them to a shapefile in arcgis as described
in the manual.
Also, can you confirm whether the "connectivity" tab produces graph
format files with commas as the decimal separator on your system? If
so, we need to add code to the CAT that is aware of the differences
between "locales".
I cannot test this issue on my system.

On Nov 19, 2:15 pm, gabriel antunes daldegan
<gabrieldalde...@gmail.com> wrote:
> Hi Carlos!
> Thank you once again, your help has been great for me.
> I`ve created the final file (Connectivity file), but is not in TXT format.
> I`ve tried to open it in ArcGIS, but the software doesn`t recognize the
> connectivity files. They`re attached in this message.
> I`m now using ArcGIS 10, but I also have another PC with ArcGIS 9.3.
>
> Best!
> Gabriel
>
> 2012/11/15 carlos <klamathconservat...@gmail.com>
> ...
>
> read more »
>
>  CurrFlowBetweCentrality_1
> 1019KViewDownload
>
>  MinCostFlow_1
> 382KViewDownload
>
>  ShortPathBetweCentrality_1
> 1035KViewDownload

gabriel antunes daldegan

unread,
Nov 19, 2012, 5:28:44 PM11/19/12
to connectiv...@googlegroups.com
Nice, I`ll try to open them in ArcGIS 9.3, because in ArcGIS 10 doesn`t recognize them.
In Brasil "Region" options are inverse from the US pattern, so my PC has comma for Decimals.
That`s why its generated the Graph files with commas and not periods.
So, I`ve changed the Region configuration in my pc, and now it`s working well.
 

2012/11/19 carlos <klamathco...@gmail.com>
Reply all
Reply to author
Forward
0 new messages