Image Image Image Image Image
Scroll to Top

To Top

Tips and Tricks

20

Jun
2013

In Mapping Solutions
Tips and Tricks

By Alvin Rentsch

How to add a map service for ArcGIS server

On 20, Jun 2013 | In Mapping Solutions, Tips and Tricks | By Alvin Rentsch

This tutorial does not discuss how to connect to a server. Please see our other content for that. Requirements for this are a ArcServer Connection and if you need to be able to edit your maps , all your data must be sourced in a SDE. Don’t forget to register your data store or you will copy all data to the server and waste space.

Tags | , , ,

23

May
2013

In Mapping Solutions
Tips and Tricks

By Lance Kohls

Tips and Tricks for Mapmaking using Javascript

On 23, May 2013 | In Mapping Solutions, Tips and Tricks | By Lance Kohls

The steps in order to enable only one check-box (out of 2 or more check-boxes) when the application starts:

1) Changed the checkbox checked property -> checked: (id == “25″) ? true : false

2) Added the line map.getLayer(“4″).hide();  in order to hide the layers whose check-boxes are not checked. -The line to be added goes after the “map.addLayers([list of the layers on the map]);”

-The line to be added goes before the “dojo.connect(map,’onLayersAddResult’,function(results){

//re-size the map when the browser re-sizes”

 

Removing the comma from a Flexviewer Applications:

1) In the popup.xml file edit the line of code that needs the comma removed:

“<field visible=”true” alias=”Zip Code” name=”zipcode”>

<format usethousandsseparator=”false”/>

</field>”

Another Example:

 

“<field visible=”true” alias=”Year” name=”Year”>

<format usethousandsseparator=”false”/>

</field>”

*If there are any extra spaces in the coding it may not work.

09

May
2013

In Mapping Solutions
Tips and Tricks

By Lance Kohls

Enable layer toggleing using Javascript

On 09, May 2013 | In Mapping Solutions, Tips and Tricks | By Lance Kohls

Steps to making a layer in a legend turn on and off:

*IMPORTANT: anything that is labeled with an asterisk doesn’t get put into the coding.

1. In the script tag next to the other dojo.require(…)

Make sure to add:

dojo.require(“dijit.form.CheckBox”);

dojo.require(“esri.dijit.Popup”);

dojo.require(“esri.layers.FeatureLayer”);

2. In the var template inside the Function InIt(){

Example

var template = new esri.InfoTemplate(“${business}”, “Address: ${address_1} <br/> City: ${city} <br/> State: ${state} <br/> Zip Code: ${zipcode} <br/> Website: <a target=’_blank’ href=${website_1}>${website_1}</a><br/> Type: ${type_1}”);

*IMPORTANT: The code above has to be on one line. It can not be entered in two or more lines because the enter will break the coding. You must use “br/” tags to be able to enter in more fields after the first comma is used. Anything before the first comma above will be the header to the popup and everything after it will be the attributes it brings in.

I also made the websites a hotlink within the popup for people viewing it to have an easy way to bring up the website.

var uniquename = new esri.layers.FeatureLayer(“http://java.leg.edu/arc/rest/services/MapFolder/MapLayer/MapServer/0″,
{id:’uniquename‘,
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate: template});

legendLayers.push({layer:’uniquename‘});

*IMPORTANT: If the uniquename in the case above is not the same in the three locations that are colored red then the layer will not show up on the map.

3. The coding below must be placed after the layers are added into the coding.

Example

//Add the Legend
var legend = new esri.dijit.Legend({
map:map,
layerInfos:legendLayers,
arrangement:esri.dijit.Legend,
},”legendDiv”);
legend.startup();
});
map.addLayers([uniquename]);

*IMPORTANT: The layers you want entered into the legend will be placed inside the bracket of map.addLayers([]). If there is more than one layer that needs to be displayed then put commas after each uniquename.

dojo.connect(map,’onLayersAddResult’,function(results){

//add check boxes
dojo.forEach(legendLayers,function(layer){
var layerName = layer.title;
var checkBox = new dijit.form.CheckBox({
name: “checkBox” + layer.layer.id,
value: layer.layer.id,
checked: layer.layer.visible,
onChange: function(evt) {
var clayer = map.getLayer(this.value);
clayer.setVisibility(!clayer.visible);
this.checked = clayer.visible;
}
});

//add the check box and label to the toc
dojo.place(checkBox.domNode,dojo.byId(“toggle”),”after”);
var checkLabel = dojo.create(‘label’,{‘for’:checkBox.name, innerHTML:layerName},checkBox.domNode,”after”);
dojo.place(“<br />”,checkLabel,”after”);
});
});

*IMPORTANT: Anything that follows the //add check box has to be typed exactly like what is being displayed because it is very sensitive coding and one error will cause the entire page to fail.

Enjoy javascripting!

24

Apr
2013

In Tips and Tricks

By Lance Kohls

Adding XY Coordinates to Attribute Table

On 24, Apr 2013 | In Tips and Tricks | By Lance Kohls

I followed the steps mentioned below to calculate the X and Y coordinates of the features in decimal degrees:

1. Right click on the data frame and click on data frame properties.
2. Navigate to the Coordinate system tab and select a geographic coordinate system to project the data frame.
3. Apply the settings and click Ok.
4. Open the Attribute table for the feature for which you wish to calculate the X and Y coordinate system.
5. Add two new fields named as X and Y respectively with data type as double/float.
6. Start an editing session within the edit toolbar.
7. Right click on the X field and click on the calculate geometry option.
8. Select the property as X coordinate of the centroid and under the coordinate system choose the coordinate system of the data frame.
9. Check the correct units used to create the data and click on Ok. The X coordinate of the data will be calculated.
10. Right click on the Y field and click on the calculate geometry option.
11. Select the property as Y coordinate of the centroid and under the coordinate system choose the coordinate system of the data frame.
12. Check the correct units used to create the data and click on Ok. The Y coordinate of the data will be calculated.

Good luck!

Tags | , , , ,

22

Apr
2013

In Mapping Solutions
Tips and Tricks

By Kyle Freeman

How to use the Rubber Sheeting tool in ArcMap

On 22, Apr 2013 | In Mapping Solutions, Tips and Tricks | By Kyle Freeman

I was in the process of deciding which way would be the best in manipulating several roads files all at once without losing the integrity of my remaining data. I came across the Rubber Sheeting tool within Arcmap’s spatial analysis tool box. It allowed me to move my desired roads into their correct locations while keeping the roads with the correct location in place. I hope these steps are of use to you in your future endeavors.

Easy steps to follow when editing points or lines in Arcmap:

1.) Open ArcMap

2.) Add your basemap and shapefiles that you want to edit

3.) Turn on Spatial analysis under ‘Extensions

4.) Begin an edit session

5.) Add your snapping toolbar and check ‘vertex snapping

6.) Add the Spatial Adjustment tool to the toolbar. Go to the ‘Spatial Adjustment‘ menu and click Set Adjust Data.

7.) Then it’s required to specify if you want to adjust a select set of features or all features. Click ‘All features in these layers‘. Then make sure only your desired layer to edit is checked.

8.) You’ll then need to open up the Spatial Adjustment menu again, navigate to ‘Adjustment Methods‘ and check ‘Rubbersheet

9.) If any additional options need to be set for Rubbersheet, then select ‘Options‘ from the Spatial Adjustment menu, click the general tab then Rubbersheet, this will allow you to see additional options

10.) Then Click options, Natural Neighbor then OK

 

What the roads look like before editing.

 

What the roads look like before editing.

 

 

 

This 'anchor tool' allows you to "lock" that point while still moving and manipulating other points and lines

 

Place the anchor on this intersection, since I want to keep this point constant. This ‘anchor tool’ allows you to “lock” that point while still moving and manipulating other points and lines.

 

 

 

The 'New displacement' tool allows you to shift to the desired location. It works in function with the anchor tool.

 

Using the Displacement tool, click on the line or intersection you want to move, then drag to the desired location. The ‘New displacement’ tool allows you to shift to the desired location. It works in function with the anchor tool.

 

After you placed your moves, click the 'Spatial Adjustment' menu then click adjust. This will shift your feature to the designated locations, as displayed in the picture above.

 

 

After you placed your moves, click the ‘Spatial Adjustment’ menu then click adjust. This will shift your feature to the designated locations, as displayed in the picture above.

 

 

Good Luck and happy mapping

Tags | , ,

19

Apr
2013

In Mapping Solutions
Tips and Tricks

By Nick Lazarides

Adding Alleys to Your Roads File That do not Connect.

On 19, Apr 2013 | In Mapping Solutions, Tips and Tricks | By Nick Lazarides

The following are steps used to connect your existing roads data to collected alleys in order to create a fully route able network data set.

  • Load your road and alleys files into a new geodatabase, and create a new feature data set containing the roads and alleys feature classes.
  • Set up some attributes in both the roads and alleys files that will be useful in the future steps.
  • Create a new field in the attribute table of both of the roads and alleys files to distinguish them from one another. (You can assign a 1 to roads, and a -1 to alleys in that new field, or label one as roads and the other as alleys, etc.)

 

1

 

 

  • Use the Merge tool (data management tools–> general–> merge) and input the roads and alleys shapefiles as the inputs for the merge. Be sure to give the output a proper name save it to the correct folder you are using.

 

2

 

  • Add the new merged layer to the map document after the process is complete.

 

  • Use the same process as above to select all of the alleys from the merged dataset.

 

  • Use the Extend Line tool (Tools–> Editing Tools–> Extend Line) using your merged file with the alleys selected. You may choose to select an extend length that will only extend lines within that distance of another line, or chose not to enter one, in which case it will extend until it reaches another line no matter the distance. (Be sure to uncheck the extend to extensions box.)

6

Good luck and Happy Mapping

Tags | , ,

17

Apr
2013

In Mapping Solutions
Tips and Tricks

By Lance Kohls

Creating a New Geodatabase on a SDE

On 17, Apr 2013 | In Mapping Solutions, Tips and Tricks | By Lance Kohls

During the process of creating  a new geodatabase on our server, I ran into some problems and had to figure some things out that weren’t stated anywhere on ArcGIS help.

A main Tips and Tricks I learned early in the process was that their website wasn’t 100% step by step, which meant I had to figure out what each step meant. The website below is where to find ESRI’s step by step guide to setting up a geodatabase in PostgreSQL.

Where to find the standard creation instructions:

ESRI SDE database creation

Lance’s Tips and Tricks

  1. When installing the geodatabase on an already created SDE then you have to go under the ArcGIS folder in the ArcSDE folder in the start menu and select ArcSDE for PostgreSQL Post Installation. They don’t tell you this until step 6 when it should be put at the beginning and say something like “If you already have PostgreSQL already installed please skip to step 6.
  2. Write down the step by step instructions you did to create your geodatabase because if you forget the superuser or any password you will lose everything on that geodatabase. Not because you forgot but you won’t be able to access it and edit it.

Okay now that should help, good luck an happy mapping

Tags | , , , ,

08

Apr
2013

In Interactive Mapping
Mapping Solutions
Tips and Tricks

By Nick Lazarides

Enabling photo/video attachments for data with the ArcGIS collector.

On 08, Apr 2013 | In Interactive Mapping, Mapping Solutions, Tips and Tricks | By Nick Lazarides

Enabling photo/video attachments for data with the ArcGIS collector.

  • In ArcMap, add your data you wish to add to the collector.
  • Search for the “enable attachment tool” (data management tools)
  • Run the tool on your file.

attachments

 

 

 

 

 

 

 

  • Create a service to be used on ArcGIS.com.
  • Make and save a map.
  • Log into your ArcGIS account on the collector application.
  • Select your map

Tags | , , , , , ,

27

Aug
2012

In Data Visualization
Mapping Solutions
Tips and Tricks

By giscenteruser

How to add a featured image on a blog post in wordpress

On 27, Aug 2012 | In Data Visualization, Mapping Solutions, Tips and Tricks | By giscenteruser

These directions will be the same with an already existing post or when creating a new post.

Either open up a post you have created, or create your post.  After that follow these steps:

  • On the bottom right side of your posting page, Under the Featured Image heading in the right column there is an option to “Set Featured Image”.

  • You can upload an image from your computer, URL or media library.

  • It doesn’t matter what the alignment is, I used left alignment and a medium size icon.
  • After all these settings are correct, make sure to click “Set as Featured Image” next to “Insert into Post”.
  • After that you can exit out of the editing box and this will be your final result.  This is what it looks like on your post page while it is still editable.  Again this can be found in the bottom right corner of your post page in the right-hand column.
  • Then you can click “Publish” if you have not already or “Update” if you post was already created.
  • Once it has been published, you have the choice to preview your post.  A little yellow bar across the top of your screen will pop up, you can click there or “Preview Changes” above the blue “Update” button, which used to read “Publish”.
  • Then this is what your final blog post will look like under the Blog page on your website:

How to Display Business Points Using NAICS Codes With Business Analyst Desktop

On 17, Aug 2012 | In Mapping Solutions, Spatial Analysis, Tips and Tricks | By Amy Peters

How to Display Business Points using NAICS codes with Business Analyst Desktop

 

The NAICS code, North American Industry Classification System, “is the standard used by Federal statistical agencies in classifying business establishments for the purpose of collecting, analyzing, and publishing statistical data related to the U.S. business economy” (US Census Bureau).  This data is accurate but somewhat incomplete due to changes that are not captured after the initial NACIS code is assigned. One issue is that if a business changes or adds on additional services, often they do not change or add to their original NAICS code classification. This means they would not show up under our search but it doesn’t mean they don’t exist.

 

1)      Make sure your preferences are set up to save in the correct folder. (see training document called How to set up your preferences to save your files in Business Analyst in the U drive under the training folder)

 

2)      Under  the business analyst drop down menu select ADD BUSINESS LISTINGS

 

3)      Click “Switch to classic view” on the bottom left hand corner

 

4)      Change the “location” (do by state)

 

5)      Change the “type of business (NAICS)”, the NAICS code is determined by which market segment you are doing.  The list of variable we used for the NACIS search is :

  1. Ophthalmologists= 62111105
  2. Dermatologists= 62111102
  3. Sports Medicine & Injuries= 62111108
  4. Allergy Treatment= 62111111
  5. Podiatrists=62139103
  6. Pharmacies= 44611009
  7. Physicians & Surgeons= 62111107

 

6)      Change the Name of the layer at the top right hand corner to an appropriate title for the layer