Dobkin's Place

Wednesday, November 08, 2006

Const vs. Static Rreadonly

If you declare a variable, within the same scope, using those declaration statements you got the same result – a variable that is initialized in declaration and can't be modified after. So what really the difference?
The main difference is in the way those two declarations are compiled. Const statement saved in to the project output in compile time as is, and static readonly statement is set only when it's evaluates first time at run time. In fact what is saved within the project output is a link to this field and not the data itself.
The way this little difference affects us is: when we use a reference to pre compiled assembly. We change the value of the const filed and recompile the assembly without recompiling our core project (which uses this reference). The change, which we have just made, won't take place because the const value has been already saved within project output. As opposite to static readonly field, which modification will take palace in referencing project, without recompiling it.

Bottom line, declaring variables as static readoonly is more efficient and safe way to declare non modified variables for your module.

Friday, November 03, 2006

Add source control options to VS 2005

If you install your VSS (or any other source control) after you have installed the VS 2005, the VS 2005 have no binding to this source control and options to handle the control won't appear in the menu.
To enable this go to – tools/source control, and select your source control in the drop down list. After that the options appear under File menu and you could use you source control happily.

Thursday, November 02, 2006

ESRI 9.2 products - new features

Hi, this week i was at Systematic conference that took place in tel-aviv. Systematic is presentat ESRI's products in israel.
there are the most importent issues that i took from there.

Changes with SDE
There are three new geo databases:
1. Personal SDE – support up to 1 user editing and 3 users viewing
2. WorkGroup SDE - support up to 10 user editing and 10 users viewing.
Build on base SQL server express and have its limits, like each database file can be up to 4G and etc.
3. File Geo Database – all the geographic data saved in system files, this Geo Database is about to take place of the personal Database, which was based on Access. the access to system files much faster and there is no more capability problem that is very familiar with Access.

There are all package of store procedures for Oracle that allow include in the SQL statements geographic information for instance: get all the cities in the radius of 1000 meter from the current city, Insert synagogue in the given location – by pasting to the statement the X,Y coordination
This is a big step for developers, before that if want to add some geo information to the SDE you have to use Arc objects or one of ESRI products that give some kind of API that do the same thing behind the curtain.

There is improvement of projection on the ply for the shape files which coordination system is different from the other feature classes/ rasters in the same data frame.

Gis server 9.2
Support 3D display (included only in the advanced license)

There is new GIS manager, a web based application that allows you in a few clicks create a VS 2005 web project with GIS capabilities - Nice to have tool and maybe good for small and basic application but if you want to add some extra functionality then there is no escape, code must be added.
The manager can be found at: http://localhost/Arvgis/manager/somthing...

Image server
The main purpose of this tool is the give raster services for multi-users, the server can be accessed from web projects, desktop products, application that based on IMS and etc.