This section provides a venue for sharing GIS-related programming code and custom scripts in a variety of languages. Posts can be viewed by category or as a whole in blog format (below).
When playing with AGS 9.3, firebug for Firefox , and fiddler for IE I realized that the esri:FloatingPanel control carries along a lot of baggage with it. Not only are the esri:FloatingPanels strictly asynchronous, every time you hide/show a panel with javascript, in our case 26KB of the contents of your FloatingPanel are sent from the client to server to maintain session state. Depending how much content you have in your FloatingPanel the overhead could make your application unusable for slower internet users.
GIS-based web services allow web programmers to build website that incorporate GIS functionality to make maps, perform queries, and do spatial analysis without having to understand or acquire GIS software, GIS data, & GIS expertise. They are a great way to get more return out of your GIS investment.
The C# code below is a simple illustration of the use of a gis-based web service within a website to find a voting precinct in the SGID for a given location. It utilizes a web reference to a web service called WSUTSGID_FeatureAttributes created by AGRC that allows any SGID data layer to be queried given the following:
SGID layer name (in this case SGID.U024.VotingPrecincts)
Field names from which you want results (in this case Precinct_ID & CNTY_NAME_)
UTM X & Y coordinates for location of interest
Note: While AGRC works closely with counties to obtain current voting precinct data, these data sets are not complete at the moment. For current voting precinct information, we recommend contacting county clerks directly.
Foundations of Programming is a very well written C# free EBook. Karl Seguin, a Microsoft MVP, authored this great PDF EBook that covers many programming techniques and foundations that are essential to C# programming.
XML rules make is so that the & character is the token for beginning of a reference. With ASP.NET, you have the ability to store application specific settings (AppSettings) and connectionStrings to name a few. Persay you wanted to store a url with a query string in it eg: