Using Vbscript to Build Complex Labels in Arcgis

Total Page:16

File Type:pdf, Size:1020Kb

Using Vbscript to Build Complex Labels in Arcgis What You Will Need • ArcGIS 8.2 or higher (ArcView, ArcEditor, or ArcInfo license) • Sample data downloaded from ArcUser Online Using VBScript to Build Complex Labels in ArcGIS By Chip Hankley, RMT, Inc. The ability to dynamically retrieve attribute in- formation associated with geographic features sets GIS apart from other mapping technolo- gies. Labels can be automatically generated, reducing the risk of human error associated with typing and transcription. While simple labeling in GIS is fairly routine, creating com- plex labels has traditionally been much more difficult. In ArcMap, the Expression Builder allows scripting (either JavaScript or VBScript) to be used for preprocessing and building labels on the fly. Because both JavaScript and VBScript are extremely powerful languages, this fea- ture goes a long way toward simplifying the process of creating complex labels. Leveraging the power of these languages to generate labels opens many new opportunities for streamlining the labeling process. Although either language could be used, the examples in this article will be limited to VBScript. Data for the Exercise This article uses the DTL_ST shapefile that comes in the sample data for ArcGIS on the ESRI Data & Maps Media Kit CD–ROMs. This shapefile is on the disc with United States data and represents all 50 U.S. states and the District of Columbia. Shapefile attributes con- Use the Expression Builder to generate a simple label. tain general state-by-state census information from the 2000 census. To more easily and Florida 15341185 ly described and click the Expression button. clearly illustrate the examples described in 5. Click OK twice to dismiss the Properties Change the expression so it looks like the code this article, a shapefile consisting of just four dialog box. Right-click the MidAtl layer and in Figure 1. states called MidAtl.shp was included with the click Label Features to display the labels using When typing this code, note that in to sample dataset. This shapefile will be used for the expression just created. make the text more readable in the Expression these labeling exercises. Builder dialog box, the Visual Basic (VB) line Using VBScript and Formatting Tags continuation character, an underscore (_), was Simple Expression Builder Example VBScript and ArcMap text formatting tags can used. Make sure the expression contains no This basic example shows how scripting works be used to format the label. The stateʼs name carriage returns. ArcMap text formatting tags in the Expression Builder. will be capitalized and displayed using the follow the basic rules of XML so each expres- 1. Start an ArcMap session and add the DTL_ Arial font at 12 points. The population figure sion must be well formed. Pay attention to the ST and MidAtl shapefiles. will be printed on a new line using the Luc- following three things when using formatting 2. Right-click the MidAtl layer and choose ida Console font at 10 points with a thousands tags. Properties from the context menu to access the separator and will be preceded by the label • When typing starting and closing tags, you Layer Properties dialog box. Click the Labels YEAR 2000 POPULATION. All text in the must use the same case for both. For instance tab, then click the Expression button. label will be capitalized. To do this, access the “<ACP>” must be closed by “</ACP>”, not 3. Delete anything in the Expression section Properties dialog box for STL_ST as previous- “</acp>”. of the dialog box. Under the Layer Fields sec- tion, double-click STATE_NAME, highlight “<ACP><FNT name=’Arial’ size=’12’>” & [STATE_NAME] & _ POP2000, and click the Append button. The “</FNT>” & vbnewline & _ contents of the dialog box should read: “<FNT name=’Lucida Console’ size=’10’>Year 2000 Population: “ & _ [STATE_NAME] & “ “ & [POP2000] formatnumber([POP2000],0,-1,-1,-1) & “</FNT></ACP>” 4. Click the Verify button. A box should pop up with an example of the label contents dis- Figure 1: Sample expression code for simple example played in the following format: 50 ArcUser October–December 2004 www.esri.com Hands On The Verify button in the Label Expression dialog box is used by ArcMap to validate the label expression. ArcMap will generate an er- ror message in response to scripting errors. If no error is found, the message box indicates the expression is valid and provides an exam- ple of the label text. Any text formatting tags are rendered as raw text in the sample label dialog box. The expression used for these labels was built using mostly text formatting tags. The only VBScript component is the “formatnumber” function, which suppresses the decimal places and adds a thousands separator. • Tags must be nested properly, and inner tags FormatNumber(Expression [,NumDigitsAfterDecimal [,Include- must be closed before outer tags are closed. LeadingDigit [,UseParensForNegativeNumbers [,GroupDigits]]]]) • The ampersand (&), greater than (>), and less than (<) characters are illegal in text for- Figure 2: Syntax for the FormatNumber function matting tags when used as part of a field value in an expression or as part of the label to be rendered. (Note that this does not refer to the Function FindLabel([field1],[field2],…,[fieldx]) “&” used to join the various parts of the expres- …some code sion.) For instance, the state field for a polygon FindLabel = …something could have a value of “Delaware & Maryland,” End Function or a results field on a chemistry dataset could have a value of “< 0.01 mg/kg.” These charac- Figure 3: Performing more advanced labeling ters can be used by replacing them with the fol- lowing HTML escape characters—&amp; for the ampersand, &gt; for the greater than sign, out decimal places and uses a thousands sepa- something different each time based on the and &lt; for the less than sign. rator. To do this, a “0” is passed for the second condition of the data. In such cases, use the Errors in text formatting tag syntax will not argument and a “-1” is passed for the fifth ar- Advanced Expression Builder. To access the cause ArcMap to generate an error; however, gument. Arguments were passed for the third Advanced Expression Builder, check the Ad- when labels are rendered in ArcMap, the for- and fourth elements, but that is irrelevant for vanced check box in the Expression section of matting tags will not be interpreted and will be this dataset because all the values are greater the Label Expression dialog box. The contents rendered as part of the label. Clicking the Ver- than 1. Clicking the Help button below the Ex- of the Expression section will change to a func- ify button will display the raw text that is gen- pression section in the dialog box will bring up tion written in the language of the parser that is erated by the ArcMap labeling engine, which the ArcGIS Help topic “About building label selected at the bottom of the dialog box. The means the formatting tags will be visible. To expressions,” which contains a link to the Mi- format of the function will always looks like see the labels in final form, view the labels in crosoft VBScript Language Reference. This the code shown in Figure 3. ArcMap. reference is invaluable for learning what is Note that in the first line, where the function The expression in Figure 1 is built mostly available in VBScript and for looking up syn- is declared, the field name(s) that will be used using the text formatting tags. The only VB- tax. in the label as arguments need to be passed. Script component is the FormatNumber func- Field names need to be placed in square brack- tion. The syntax for the FormatNumber func- Advanced Labeling With Logic ets, separated by commas. The value of the tion is shown in Figure 2. Sometimes more complex labeling requires variable FindLabel is what is displayed on the In this case, the number is formatted with- logic that will allow the labeling routine to do Continued on page 52 www.esri.com ArcUser October–December 2004 51 Using VBScript to Build Complex Labels in ArcGIS Continued from page 51 Dynamically generating complex labels has tradi- tionally been a complex task. Leveraging the power of VBScript or JavaScript within the Label Expression dialog box opens virtually unlimited opportunities for new label types. As a final step, the Layer Properties dialog box will be used to format the labels with a solid background and a leader line. map so the value of the variable FindLabel will the stateʼs population. States that have a what is possible using a scripting language to need to be set inside the function. By using a 2000 census population greater than 10 million develop labels. If needed, subroutines can be function, the full power of the scripting lan- will have red text. All others will have black included in the expression code. For example, guage can be leveraged by building real-time text. a subroutine could be written that would check logic (in the form of a small program) into the 1. Access the Advanced Expression Builder, for the illegal characters <, >, and & and re- label rendering process. delete any existing text, and type or cut and place them with the appropriate escape char- paste the code in Figure 4 into the Label Ex- acters. An Advanced Example—Stacked Labels pression dialog box. Alternatively, click the Developing a script that creates advanced The script in Figure 4 shows the VBScript rou- Load button, navigate to the sample data, and labels can be a complex task, but once created, tine that was developed to build a multilined select AdvancedLabel.lxp, a saved copy of this such a script provides a scalable and reusable (i.e., stacked) label that will have the following script.
Recommended publications
  • GIS Migration Plan
    Dane County Land Information Office July 2003 Dane County Enterprise GIS Migration Plan The Dane County Land Information Office is committed to the development of GIS technology to aid in the delivery of information and services to county departments, communities, and the residents of our county. As part of our ongoing efforts to develop a robust and efficient GIS infrastructure, the Land Information Office has begun a project to migrate to a next generation geographic information system. Workplan activities include an upgrade of the technical infrastructure (hardware and software), implementation of new ESRI GIS products, a review and re-modeling of enterprise GIS datasets, workflow analysis and process changes to maximize service delivery and staff efficiencies. This plan summarizes migration activities to-date, as well as outlining a workplan to complete the remaining tasks. ESRI's next generation product line revolves around three primary products: ArcGIS, ArcSDE and ArcIMS. ArcGIS and its related extensions and modules comprise the desktop GIS software suite. ArcSDE supports spatial and tabular database integration. ArcIMS supports the delivery of web-based geographic information and map services. The Dane County ArcGIS migration project includes converting current ArcInfo users to the ArcGIS product. The longer term goal will be to move the viewing, printing, and basic GIS operation users to ArcIMS applications that can be run from a browser or thin client. Current ArcView 3.2 users will be migrated to either thin client ArcIMS applications or ArcGIS 8.x software. All applications will utilize geographic information stored in ArcSDE. Training requirements will be focused on technical staff to build and maintain applications with user friendly tools to minimize intense end user training.
    [Show full text]
  • Arcgis Server Operating System Requirements and Limitations
    ArcGIS Server Operating System Requirements and Limitations All Platforms Microsoft Windows Linux Sun Solaris NOTE: See Supported Server Platforms for specific operating system versions supported with ArcGIS Server. All Platforms Server display requirements: o 1024 x 768 recommended or higher at Normal size (96dpi) o 24 bit color depth DVD-ROM drive is required to install the application. Some ArcGIS Server features such as GlobeServer and Geometry require OpenGL 1.3 Library functionalities. These libraries are typically included in the operating systems that ArcGIS Server is supported in. In Microsoft Windows operating systems, these libraries are included with the operating system. See Platform specific requirements below for any exceptions. Python 2.5.1 and Numerical Python 1.0.3 are required to support certain core Geoprocessing tools. It is recommended that Python 2.5.1 and Numerical Python 1.0.3 are installed by the ArcGIS Server setup. Users can choose to not install Python 2.5.1 and Numerical Python 1.0.3 by unselecting the Python feature during installation. The Python feature is a sub-feature of Server Object Container. Limitation: The REST handler does not work when deployed with WebSphere 6.1 and Weblogic 10*. *Note: The REST handler is supported with Weblogic 10 at 93 sp1 Microsoft Windows Microsoft Internet Explorer version 6.0 or higher is required. You must obtain and install Internet Explorer version 6.0 or higher, prior to installing ArcGIS Server on Windows. Windows XP and Vista: These operating systems are supported for basic testing and application development use only. It is not recommended for deployment in a production environment.
    [Show full text]
  • Getting Started with Windows Scripting
    Getting Started with Windows Scripting art I of the PowerShell, VBScript, and JScript Bible intro- IN THIS PART duces you to the powerful administrative tool that is Windows scripting. You’ll get an overview of Windows Chapter 1 P Introducing Windows Scripting scripting and its potential, and an introduction to three tech- nologies you can use for Windows scripting: VBScript, JScript, Chapter 2 and PowerShell. VBScript Essentials Chapter 3 JScript Essentials Chapter 4 PowerShell Fundamentals COPYRIGHTED MATERIAL 886804c01.indd6804c01.indd 1 11/21/09/21/09 11:16:17:16:17 PPMM 86804c01.indd 2 1/21/09 1:16:18 PM Introducing Windows Scripting indows scripting gives everyday users and administrators the ability to automate repetitive tasks, complete activities while IN THIS CHAPTER away from the computer, and perform many other time-saving W Introducing Windows scripting activities. Windows scripting accomplishes all of this by enabling you to create tools to automate tasks that would otherwise be handled manually, Why script Windows? such as creating user accounts, generating log files, managing print queues, or examining system information. By eliminating manual processes, you Getting to know can double, triple, or even quadruple your productivity and become more Windows Script Host effective and efficient at your job. Best of all, scripts are easy to create and Understanding the Windows you can rapidly develop prototypes of applications, procedures, and utili- scripting architecture ties; and then enhance these prototypes to get exactly what you need, or just throw them away and begin again. This ease of use gives you the flex- ibility to create the kinds of tools you need without a lot of fuss.
    [Show full text]
  • Case Study: Internet Explorer 1994..1997
    Case Study: Internet Explorer 1994..1997 Ben Slivka General Manager Windows UI [email protected] Internet Explorer Chronology 8/94 IE effort begins 12/94 License Spyglass Mosaic source code 7/95 IE 1.0 ships as Windows 95 feature 11/95 IE 2.0 ships 3/96 MS Professional Developer’s Conference AOL deal, Java license announced 8/96 IE 3.0 ships, wins all but PC Mag review 9/97 IE 4.0 ships, wins all the reviews IE Feature Chronology IE 1.0 (7/14/95) IE 2.0 (11/17/95) HTML 2.0 HTML Tables, other NS enhancements HTML <font face=> Cell background colors & images Progressive Rendering HTTP cookies (arthurbi) Windows Integration SSL Start.Run HTML (MS enhancements) Internet Shortcuts <marquee> Password Caching background sounds Auto Connect, in-line AVIs Disconnect Active VRML 1.0 Navigator parity MS innovation Feature Chronology - continued IE 3.0 (8/12/96) IE 3.0 - continued... IE 4.0 (9/12/97) Java Accessibility Dynamic HTML (W3C) HTML Frames PICS (W3C) Data Binding Floating frames HTML CSS (W3C) 2D positioning Componentized HTML <object> (W3C) Java JDK 1.1 ActiveX Scripting ActiveX Controls Explorer Bars JavaScript Code Download Active Setup VBScript Code Signing Active Channels MSHTML, SHDOCVW IEAK (corporations) CDF (XML) WININET, URLMON Internet Setup Wizard Security Zones DocObj hosting Referral Server Windows Integration Single Explorer ActiveDesktop™ Navigator parity MS innovation Quick Launch, … Wins for IE • Quality • CoolBar, Explorer Bars • Componetization • Great Mail/News Client • ActiveX Controls – Outlook Express – vs. Nav plug-ins
    [Show full text]
  • Arcview 9.1 System Requirements
    ArcView 9.1 System Requirements This PDF contains system requirements information, including hardware requirements, best performance configurations, and limitations, for ArcView 9.1. PC-Intel Windows 2000 Professional PC-Intel Windows 2003 Server Terminal Services PC-Intel Windows XP Professional Edition, Home Edition ArcView 9.1 on PC-Intel Windows 2000 Professional Product: ArcView 9.1 Platform: PC-Intel Operating System: Windows 2000 Professional Service Packs/Patches: SP4 Shipping/Release Date: May 18, 2005 Hardware Requirements CPU Speed: 1.0 GHz recommended or higher Processor: Intel Pentium or Intel Xeon Processors Memory/RAM: 512 MB minimum, 1 GB recommended or higher Display Properties: 24 bit color depth Screen Resolution: 1024 x 768 recommended or higher at Normal size (96dpi) Swap Space: 300 MB minimum Disk Space: Typical 765 MB NTFS, Complete 1040 MB NTFS Disk Space Requirements: In addition, up to 50 MB of disk space maybe needed in the Windows System directory (typically C:\Windows\System32). You can view the disk space requirement for each of the 9.1 components in the Setup program. Notes: OPERATING SYSTEM REQUIREMENTS Internet Explorer Requirements - Some features of ArcView 9.1 require a minimum installation of Microsoft Internet Explorer Version 6.0 or 7.0. If you do not have an installation of Microsoft Internet Explorer Version 6.0/7.0, you must obtain and install it prior to installing ArcGIS Engine Runtime. (Please also see IE7_Limitations) Python Requirement for Geoprocessing: ArcGIS Desktop geoprocessing tools require that Python and the Python Win32 extension are installed. If the ArcGIS Desktop setup does not find Python on the target computer, it will install Python 2.1 and Win32all-151 extension during a typical or complete installation.
    [Show full text]
  • Quick-Start Guide
    Quick-Start Guide ArcGIS® Desktop 9.3 1 UNIX® (ArcInfo® Workstation) on the DVD setup menu located in the lower left-hand corner for more 4 5 information. ✱ Mount the ArcInfo Workstation installation media and CD to the directory Prerequisites for your UNIX platform. ✱ Browse to the saved license le, complete the license manager setup. Install ArcGIS Desktop or ArcInfo Workstation More Information about ArcGIS ✱ ✱ Open the install_guide.pdf and follow the instructions under “Installing the Before restarting the computer, plug in the hardware key and wait for ✱ ® ™ A single source of information and assistance for ArcGIS products is ✱ If you are an existing user, your current license le will work with the ArcInfo license manager” to install the license manager. Windows to install the Hardware key driver. ArcGIS Desktop (ArcView , ArcEditor , ArcInfo available via the ESRI Resource Centers Web site at http://resources. updatedversion of the ArcGIS® License Manager. You will need to install ✱ From the 9.x $ARCHOME/sysgen directory, run “./lmutil lmhostid” to obtain ✱ Restart the machine once the driver installation is complete. [Concurrent Use]) esri.com. Use the Resource Centers Web site as your portal to ArcGIS the license manager included on the ArcGIS Desktop media. resources such as Help, forums, blogs, samples, and developer support. the host ID for this machine. ✱ If you have trouble starting the license manager, refer to “Troubleshooting ✱ Insert the ArcGIS Desktop installation media. If auto-run is enabled, a DVD ✱ Prior to installing, please review the system requirements. See ✱ Use this host ID to request the license le from Customer Service at License Errors on Windows” in the License Manager Reference Guide, setup menu will appear.
    [Show full text]
  • Introduction to VBA Programming with Arcobjects
    z9/5/2007 Introduction to VBA Workshop Outline Programming with z ArcObjects/VBA overview (9:15-9:45) ArcObjects z Customizing ArcMap interface (9:45 – 10:30) z Visual Basic for Applications (VBA) environment (10:30-11:00) z Morning break (11:00-11:15) GeoTREE Center z VBA ppgrogramming concep ts ( 11:15-12:15) z Lunch (12:15-12:45) University of Northern Iowa z ArcObjects overview (12:45-1:30) Geography z Using ArcObjects z Using ArcObjects 1: Map Display (1:45 – 2:45) July 18, 2007 z Afternoon Break (2:45 – 3:00) z Using ArcObjects II: Selecting, Geoprocessing (3:00 – 4:00) Warning z Developing ArcGIS functionality and understanding ArcObjects is complicated z This workshop is a basic introduction to help you ArcObjects/VBA Overview develop ArcGIS customizations ArcObjects/VBA Overview ArcObjects z ArcGIS provides a large amount of z Set of components or building blocks on which the functionality scaleable ArcGIS framework is built z Developed by ESRI using C++ as classes z However users often want to harness that z Basically everything you see and interact with in any functionalityyyp in different ways than is possible ArcGIS application is an ArcObject out of the box z Maps z Layers z Develop customizations to carry out work-flow z Points tasks z Tables z Develop customized spatial modeling operations z Fields z Rasters z Combine multiple steps into a single customized tool z Buttons z1 z9/5/2007 Map Button ArcObjects Layer z There are a huge number of ArcObjects z Accessible through various Graphic Point programming/development enviroments z Focus today on VBA z Almost impossible to get to know all ArcObjects z A strong background using the applications (ArcMap, ArcCatalog, etc.) important z Learn how to navigate to get to proper ArcObject Polygon Table Field Visual Basic for Applications Other Development (VBA) Environments z Visual Basic z VBA is a development environment that is z C# provided with ArcGIS (also with Microsoft z C++ Word, Excel , Powerpoint , etc .
    [Show full text]
  • Arcview Product Catalog Details Relevant Software Extensions, Data, Training, and Documentation
    ArcView® Product Catalog More than 500,000 copies of ESRI® ArcView® are in use worldwide. ArcView helps thousands of organizations understand spatial relationships in their data, make better decisions, and improve business processes. With ArcView, you can create intelligent, dynamic maps using data from a wide range of popular data sources. Perform state-of-the-art geographic information system (GIS) analysis and map creation with the tools and data available for ArcView. When you add one or more of the optional extensions to ArcView, the possibilities for data exploration, integration, and analysis are limitless. You can learn more about ArcView and the resources available to you from ESRI via this catalog. The ArcView Product Catalog details relevant software extensions, data, training, and documentation. Order online at www.esri.com/avcatalog or call 1-888-621-0887. Pricing applicable for U.S. sales only. Shipping and taxes not included. 3 ArcViewArcView offersoffers many exciting capabilities such as extensive symbology, editing tools, metadata management, and on-the-fl y projection. ArcView The Geographic Information System for Everyone TM ArcView provides data visualization, query, analysis, and integration capabilities along with the ability to create and edit geographic data. ArcView is designed with an intuitive Windows® user interface and includes Visual Basic® for Applications for customization. ArcView consists of three desktop applications: ArcMap™, ArcCatalog™, and ArcToolbox™. ArcMap provides data display, query, and analysis. ArcCatalog provides geographic and tabular data management, creation, and organization. ArcToolbox provides basic data conversion. Using these three applications together, you can perform any GIS task, simple to advanced, including mapping, data management, geographic analysis, data editing, and geoprocessing.
    [Show full text]
  • Ecp Arcgis-Postgresql Draft User Guide
    Esri Conservation Program Illustrated Guide to postrgreSql for ArcGIS & Server DRAFT please send comments, suggestions, omissions to Charles Convis [email protected] This guide was started in 2014 in response to the lack of any single organized source of guidance, tutorials or illustrated workflows for obtaining, installing, operating and updating postgreSql for ArcGIS Server installations. It is current as of version 10.3, and due for update in late 2016 OBTAINING POSTGRESQL: Postgres install files need to be obtained from my.esri.com because of the version-linked spatial support libraries provided. You get a free account at my.esri.com within a few days of your very first esri software grant. Check your email for the grant activation message, it’ll often say “LOD” (license on delivery) Hang onto that email but don’t use the token url more than once. You will do your additional downloads via the myesri account. You can download as many times as you need to: especially useful for machine crash recovery. If you just want to transfer licenses you can do that directly at myesri.com by deauthorizing an existing machine and reauthorize on the new machine. If you do happen to run out valid installs for your authorization just call esri tech support and they can add more as needed. The other way to access my.esri.com is if you have access to an ArcGIS Online Account or are part of an ArcGIS Online Organization account. Anyone who is an administrator can log in and click on “My Organization” to see the following: What the admin then needs to do is right click on the gear icon next to your name and scroll down to “Enable Esri Access”.
    [Show full text]
  • Windows® Scripting Secrets®
    4684-8 FM.f.qc 3/3/00 1:06 PM Page i ® WindowsSecrets® Scripting 4684-8 FM.f.qc 3/3/00 1:06 PM Page ii 4684-8 FM.f.qc 3/3/00 1:06 PM Page iii ® WindowsSecrets® Scripting Tobias Weltner Windows® Scripting Secrets® IDG Books Worldwide, Inc. An International Data Group Company Foster City, CA ♦ Chicago, IL ♦ Indianapolis, IN ♦ New York, NY 4684-8 FM.f.qc 3/3/00 1:06 PM Page iv Published by department at 800-762-2974. For reseller information, IDG Books Worldwide, Inc. including discounts and premium sales, please call our An International Data Group Company Reseller Customer Service department at 800-434-3422. 919 E. Hillsdale Blvd., Suite 400 For information on where to purchase IDG Books Foster City, CA 94404 Worldwide’s books outside the U.S., please contact our www.idgbooks.com (IDG Books Worldwide Web site) International Sales department at 317-596-5530 or fax Copyright © 2000 IDG Books Worldwide, Inc. All rights 317-572-4002. reserved. No part of this book, including interior design, For consumer information on foreign language cover design, and icons, may be reproduced or transmitted translations, please contact our Customer Service in any form, by any means (electronic, photocopying, department at 800-434-3422, fax 317-572-4002, or e-mail recording, or otherwise) without the prior written [email protected]. permission of the publisher. For information on licensing foreign or domestic rights, ISBN: 0-7645-4684-8 please phone +1-650-653-7098. Printed in the United States of America For sales inquiries and special prices for bulk quantities, 10 9 8 7 6 5 4 3 2 1 please contact our Order Services department at 1B/RT/QU/QQ/FC 800-434-3422 or write to the address above.
    [Show full text]
  • Administering Your Postgresql Geodatabase Michael Downey & Justin Muise Intended Audience Apps
    Administering Your PostgreSQL Geodatabase Michael Downey & Justin Muise Intended Audience Apps Desktop APIs You are….. - A geodatabase administrator - A deliberate DBA Enterprise - An accidental DBA Online - Not sure what DBA means And you… - Store your data in a PostgreSQL database - Are thinking about using PostgreSQL This is your session! PostgreSQL Agenda • How do I … - Configure PostgreSQL to support geodatabases? - Create a geodatabase? - Control access to my data? - Keep my data safe? - Upgrade? - Maintain performance? • News since the last UC PostgreSQL Installation • Locations - My Esri - Postgresql.org - Other open source distributions • Installation - Refer to PostgreSQL documentation - Multiple methods for Linux - Rpms, yum, from source PostgreSQL Configuration • PostgreSQL configuration file for initialization parameters (postgres.conf) - Located in PostgreSQL\9.#\data - Memory parameters - Different settings for Windows and Linux - Logging parameters - Vacuum parameters - Connection parameters - Restart the PostgreSQL instance PostgreSQL Configuration • PostgreSQL configuration file for connections (pg_hba.conf) - Located in PostgreSQL\9.#\data - May need entries for both: - IPv4 and IPv6 Addresses Agenda • How do I … - Configure PostgreSQL to support geodatabases? - Create a geodatabase? - Control access to my data? - Keep my data safe? - Upgrade? - Maintain performance? • News since the last UC Database vs. Geodatabase Database • Database provides: - Transaction management - Authorization/Security - Backup A B • C Geodatabase
    [Show full text]
  • Using GIS Technology with Linux
    Using Geographic Information System Technology With Linux ® An ESRI White Paper • June 2002 ESRI 380 New York St., Redlands, CA 92373-8100, USA • TEL 909-793-2853 • FAX 909-793-5953 • E-MAIL [email protected] • WEB www.esri.com Copyright © 2002 ESRI All rights reserved. Printed in the United States of America. The information contained in this document is the exclusive property of ESRI. This work is protected under United States copyright law and other international copyright treaties and conventions. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording, or by any information storage or retrieval system, except as expressly permitted in writing by ESRI. All requests should be sent to Attention: Contracts Manager, ESRI, 380 New York Street, Redlands, CA 92373-8100, USA. The information contained in this document is subject to change without notice. U.S. GOVERNMENT RESTRICTED/LIMITED RIGHTS Any software, documentation, and/or data delivered hereunder is subject to the terms of the License Agreement. In no event shall the U.S. Government acquire greater than RESTRICTED/LIMITED RIGHTS. At a minimum, use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR §52.227-14 Alternates I, II, and III (JUN 1987); FAR §52.227-19 (JUN 1987) and/or FAR §12.211/12.212 (Commercial Technical Data/Computer Software); and DFARS §252.227-7015 (NOV 1995) (Technical Data) and/or DFARS §227.7202 (Computer Software), as applicable. Contractor/Manufacturer is ESRI, 380 New York Street, Redlands, CA 92373- 8100, USA.
    [Show full text]