|
BLOG
|
Updated January 16, 2017 Given that technology—the Internet, e-commerce, smartphones, the behemoth that is social media—has dramatically changed consumer and personal behavior over the last decade, it's no surprise our professional lives have evolved. For many of us, what we do at work and how we do our work have changed a great deal. At the same time, more and more organizational leaders have grasped the business value of getting geospatial content out of a department silo and into the hands of knowledge workers using ArcGIS Online or ArcGIS Enterprise and a variety of enterprise applications. As a result, many GIS professionals are being asked to share. Of course, the profession as a whole is a generous lot, so sharing itself is nothing new. What's new is the ease with which things can be shared. The ArcGIS portal has become an integrated content platform that supports enterprise GIS workflows and the information needs of both GIS and non-GIS professionals, collaborative working groups, and the public. When there are many potential content consumers, the question of what to share needs to be carefully considered. If you're in the process of crafting a sharing strategy for your ArcGIS portal (an ArcGIS Online organizational site or an ArcGIS Enterprise portal website), here are three tips to help the process along. 1. Prioritize Consumer Relevance While you could share all types of geospatial content, that may not be feasible or desirable. When faced with an overwhelming number of choices, site users may opt out. Feature the content that your organization's users are most likely to be interested in. Like you, site users will be most interested in content that helps them do their work faster, easier, and better. Think about your organization's structure (or constituents) and imagine you're a content consumer. Why have you come to this site? What are you hoping to do with the content you find? For an analyst with the market research group, maps showing customer and physical business locations, demographic data, and drive times might be highly desirable. Templates for branded web apps could also be useful. Make a list of frequently requested items. How many times does your team create the same or very similar information products for different groups? Share that content. If you've ever thought to yourself, "If the folks in [department X] only knew how our data could help them!" Well, now's your chance to showcase your data to school the non-GIS teams on the value that geographic insight brings to their projects. Once you've settled on what to share, decide how to share it. It may make sense to create hosted feature layers for data that will be especially popular. Learn how to create a hosted feature layer 2. Provide Guide Posts Never underestimate the power of clear directions. Think about your favorite e-commerce sites. How do they direct you to products? Their home pages likely have prominent links to: The latest products The five or ten most popular products Recommended items for specific use cases ("Dorm essentials for your new college student!") Adopt these familiar methods to enhance your ArcGIS Online organization's or enterprise portal's home page, your front door if you will. A front door should be welcoming, but quickly passed through. You want visitors to enter the living space and join the party. The home page description section is a great (visible) place to add links that will guide users to the relevant content you've shared. Learn how to configure your home page description 3. Teach Them to Fish Who better to help the masses create accurate, impactful maps and apps than a GIS professional? Your ArcGIS Online organization is a rich source of authoritative content However, a lot of people may not know exactly how to use it at first. You can help content consumers get up to speed by adding frequently asked questions and tips from the GIS team on your organizational site. Of course, you should always document essential information in the item properties, including: Who created the data and when? What is the data's accuracy? Explanation of numeric attributes shown in a map legend or table (unless the data is clearly unambiguous) Access and use constraints Here's a good example of item properties for a web map. To make sure consumers see this information, you can get creative. The Open Data DC app effectively provides key information about the app right inside the app. As you're documenting your content, support searching, which is how people find things these days. Create a set of standard tags—both geographical and topical—and consistently apply them. Learn more about item properties By sharing relevant content and helping consumers understand how the content can be used to shed new light on their work, you extend the benefits of GIS well beyond its current boundaries. Ladies and gentlemen, we have reached the point where the work produced by GIS professionals is being widely viewed as a strategic organizational asset. Carpe diem. Related training: Is your team just getting started with an ArcGIS Online organizational site? These courses are designed to help administrators, content producers, and content consumers be productive right away.
... View more
09-25-2014
07:09 AM
|
0
|
0
|
780
|
|
BLOG
|
This is the third post in a three-part series on creating geoprocessing models in ArcGIS. If you've read the previous posts in this series, you've got modeling basics down and you know how to add model parameters to support easy reuse and scenario testing. In this post, you'll learn some techniques to do more with less—effort, that is. List Variables In the last post, you learned how to make a tool parameter a variable, and turn a variable into a model parameter. By default, a variable stores a single value. However, it's possible to store multiple values in a variable. When you do, the variable is called a list variable. When a list variable is connected to a geoprocessing tool, that tool and all downstream processes (all the processes that depend on the tool's output) will automatically execute once for each value in the list. That's right: when you define a list variable, model tools automatically know to process each list item. Using list variables is like running geoprocessing tools in batch mode—with the major advantage that you have to enter the list of values only once to achieve multi-tool processing. Consider the model below, which automates a typical data management workflow. This model creates a file geodatabase, converts a shapefile to a geodatabase feature class, removes duplicate features, defines the coordinate system for the feature class, and outputs a layer with selected features. Notice the model even has two parameters. It's a complete workflow that works great when a single shapefile needs to be processed. It falls short, though, when multiple shapefiles need to be processed. The model would have to be run manually multiple times to process all the shapefiles. Wouldn't it be better to run the model once and have all the work done? Creating a list variable will accomplish this. To create a list variable for this example: Right-click the Feature Class to Feature Class tool input variable and click Properties, then click "A list of values." Click OK. Double-click the variable to open it and enter each value. More about list variables Inline variable substitution With list variables, tools run multiple times to process each input. By default, however, the tool output names will be the same—which means all but the last list item's outputs will be overwritten. To overcome this, use inline variable substitution. There are two types of variables that can be substituted in processes: model variables and system variables. To use a model variable for inline variable substitution, just enter the variable name surrounded by percent signs. The system variable %i% is often used to add a unique, sequential number to the end of output names. List item numbering starts at 0 (the first item's output name will have a 0 appended). For this example, you would open the Feature Class to Feature Class tool and add a lowercase i surrounded by percent signs to the end of the output feature class name (ASAM in this case). Using the system variable ensures the model will correctly process and create the three outputs needed. However, the output names are not descriptive. You could rename them later, but why not automate that work now? Model-Only Tools ModelBuilder includes a set of tools that are available only for models that will be run inside ModelBuilder (i.e., they won't work when the model is run as a tool). The Parse Path tool allows you to separate an input path into its component parts, then reference those parts in downstream processes. In this example, the Parse Path tool is a better alternative to using a system variable for the model processes. It allows the input shapefile names to be used in the output names instead of cryptic numbers. Note: For processes that create intermediate data, using a system variable is a good solution when output names must have unique names but you don't need to worry about those names causing confusion. To add the Parse Path tool: Click the Insert menu > Model Only Tools > Parse Path. From the model window, open the Parse Path tool. For Input Data Element, choose Input Shapefile. For Parse Type, choose Name, then click OK. Connect the Parse Path output (Value) to the Feature Class to Feature Class tool as the Output Feature Class. When you hover over the Feature Class to Feature Class output element, you can see that the three outputs now have names corresponding to the input shapefile names. This will make the model outputs immediately understandable to the people who need to work with the data. More about model-only tools Preconditions Did you notice that the Input Shapefile element now links to two tools—Parse Path and Feature Class to Feature Class—and that Parse Path isn't part of the main model workflow? When a model contains separate but related processes, the order in which those processes execute is unpredictable. You can control processing order by setting a precondition. In the example, the potential exists for the Feature Class to Feature Class process to run before the Parse Path process...which means the model outputs will be overwritten as each list item is processed. To ensure the Parse Path tool always runs before Feature Class to Feature Class, make the Value element a precondition to the Feature Class to Feature Class tool. To set a precondition: Right-click the Feature Class to Feature Class tool and click Properties. In the dialog box, click the Preconditions tab and check Value. Click OK. Any model element can be set as a precondition to a model tool, and tools can have more than one precondition. More about setting preconditions Go Ahead, Model It By visually mapping workflows, automating time-consuming tasks, and supporting rapid "what if" scenario testing, models are a valuable tool to help GIS professionals work more efficiently and collaboratively. With a solid understanding of modeling basics and a few advanced techniques in your back pocket, you may find yourself jumping at opportunities to build models in ArcGIS. Because besides being geoprocessing workhorses, models are...fun. Related posts: ModelBuilder 101 ModelBuilder 220: Add Flexibility For hands-on practice with ModelBuilder, this e-learning course is recommended.
... View more
08-28-2014
06:53 AM
|
2
|
0
|
1646
|
|
BLOG
|
"P" Is the Key Have you ever opened a model tool and seen the statement, "This tool has no parameters"? Maybe you closed the dialog box thinking the model had a fatal error. Time to clear up the confusion. That statement is information, not an error message. The model will run fine as-is, meaning it will run using the inputs and criteria specified by the model creator. You can't change anything. Go ahead and click OK to run the model. Model parameters are things that can be changed. If they exist, you will see them when you open a model tool. So what can be changed using a parameter? Just about anything—inputs, outputs, and tool-specific parameters. A good way to learn how to work with model parameters is to create a model, add its tools, and set the tool parameters as usual. After the model is built (and saved), think about what criteria you would want to change when running it in the future. Running a model using different input data is a common need. Adding a parameter can meet that need.Allow for ChangeTo make a tool's input a parameter, in the ModelBuilder window right-click the input element and choose Model Parameter. It's that easy. The letter "P" above an element indicates it's a model parameter.
Here, the Create Folder tool input was renamed to "Set your workspace folder" (the original name was a folder path). With the new name, it will be clear that you can browse to a different workspace if you don't want to use the default location. To make a tool parameter into a model parameter, first make the tool parameter a variable, then set the variable to be a model parameter. The Create File GDB tool has three parameters: Location, File GDB Name, and Version. Suppose you want the ability to assign a different geodatabase name each time the model is run (perhaps you'll be creating multiple geodatabases as part of your project). In the model window, right-click Create File GDB, click Make Variable > From Parameter > File GDB Name. The variable is added to the diagram with an arrow connecting it to the Create File GDB tool. To make the variable a model parameter, right-click it and choose Model Parameter. Now it too has a "P" above it. In this case, "File GDB Name" is self-explanatory, so there's no need to rename the element. To support testing multiple scenarios, now suppose you want to be able select subsets of features for processing. In the example model, the Feature Class to Feature Class tool is used to convert a shapefile of ASAM incidents to a geodatabase feature class. The tool has two parameters that make sense to designate as model parameters: Input Features (required) and an optional Expression parameter used to define a subset of features. Input Features is the location of the shapefile on disk, which could vary. Right-click the Feature Class to Feature Class tool and click Make Variable > From Parameter > Input Features. Right-click the Input Features variable element and choose Model Parameter. Repeat this process for the Expression parameter. Both of these model parameters will benefit from being renamed. After saving the model, close ModelBuilder and open the model as a tool to see the parameters.
Notice the help text on the right side of the model tool. This is the Description text from the Model Properties dialog box.Less Is More By allowing certain criteria to be changed, parameters increase model usability and are a valuable technique to explore what-if scenarios. However, as with anything, it's important to exercise restraint. Setting too many parameters defeats the other main advantage of a model—to simplify and speed up a geoprocessing workflow. Remember, you can always open a model in ModelBuilder to tinker with individual tool settings and run the model to explore the result of your tinkering. Add parameters only for items you or others are likely to find most useful, such as the option to specify different input data or modify a key analysis tool setting. Put the rest of the model elements on auto-pilot. In the next installment, you will go beyond basic techniques and learn some model power moves. Related posts: |