<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dekho Resource Center</title>
	<atom:link href="http://www.dekho.com.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dekho.com.au</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 14 May 2012 01:30:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dekho 4 Beta available next week</title>
		<link>http://www.dekho.com.au/dekho-4-beta-available-next-week/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dekho-4-beta-available-next-week</link>
		<comments>http://www.dekho.com.au/dekho-4-beta-available-next-week/#comments</comments>
		<pubDate>Sun, 13 May 2012 23:00:18 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3608</guid>
		<description><![CDATA[We sent out an invite to all our clients to participate in the v4 Beta release of Dekho. This gives you the chance to test out the new features and functionality at v4 with your own data, services and workflows. It is not too late to still participate &#8211; if [...]]]></description>
			<content:encoded><![CDATA[<p>We sent out an invite to all our clients to participate in the v4 Beta release of Dekho.<br />
This gives you the chance to test out the new features and functionality at v4 with your own data, services and workflows.</p>
<p>It is not too late to still participate &#8211; if you have not already requested to participate and are an existing Dekho client, then <a href="mailto:dekho_ideas@esriaustralia.com.au">please email</a> in quick.</p>
<p>Any issues you encounter, please fire these <a href="http://www.dekho.com.au/ask-a-techie/">through to support</a> and let them know you are running the Beta version.  Our clients outside of Australia, should also fire these requests direct to Esri Australia as well.</p>
<p>We anticipate sending you a download link for the Beta sometime next week.  This email will also cover what&#8217;s new in version 4.  We also anticipate that the Beta period will last for around 6 weeks.</p>
<p>Remember to only use the Beta on your test or development environments.</p>
<p style="text-align: center;"><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/42.png" rel="prettyPhoto[3608]"><img class="aligncenter  wp-image-3609" title="4" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/42.png" alt="" width="629" height="381" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/dekho-4-beta-available-next-week/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using ArcPy for multi-page exports</title>
		<link>http://www.dekho.com.au/using-arcpy-for-multi-page-exports/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-arcpy-for-multi-page-exports</link>
		<comments>http://www.dekho.com.au/using-arcpy-for-multi-page-exports/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 03:11:43 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[ArcPy]]></category>
		<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3595</guid>
		<description><![CDATA[It is great to see that the generic ArcPy sample we provided is getting a lot of download hits. On a previous post, I did a video on how you can setup your Layout MXD to sync multiple data frames to the main data frame, so that you can display [...]]]></description>
			<content:encoded><![CDATA[<p>It is great to see that the <a href="http://www.dekho.com.au/download-gallery/?did=14">generic ArcPy sample</a> we provided is getting a lot of download hits.</p>
<p>On a <a href="http://www.dekho.com.au/using-arcpy-for-printing-in-dekho/">previous post</a>, I did a video on how you can setup your Layout MXD to sync multiple data frames to the main data frame, so that you can display a variety of basemaps in separate data frames, all in the one printout.</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/4DataFrames.png" rel="prettyPhoto[3595]"><img class="aligncenter size-full wp-image-3596" title="4DataFrames" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/4DataFrames.png" alt="" width="589" height="371" /></a></p>
<p>I also did <a href="http://www.dekho.com.au/using-arcpy-to-append-a-legend-page/">a post </a>on how you can append a separate page into your one Dekho export, dedicated for a static legend.</p>
<p><strong>But what happens if you wanted to click Print from Dekho once, but have a multi-page PDF, showing your area of interest with multiple basemaps on separate pages?<span id="more-3595"></span></strong></p>
<p>Our friends over at <a href="http://www.eagle.co.nz/">Eagle</a> have been tweaking the ArcPy sample to do just this, for <a href="http://www.dunedin.govt.nz/">Dunedin City Council.</a></p>
<p>They are also taking advantage of fetching the data locally (<a href="http://www.dekho.com.au/high-quality-printing-with-arcpy/">avoiding any loss in quality by cutting out going via a map service</a>) which improves print speed and output quality.</p>
<p>They have kindly shared the modified arcpy script, and <a href="http://pastebin.com/0f4x8nb0">this can be seen here</a> (bulk of the tweaking is around lines 166 -208).</p>
<h3>Setup:</h3>
<div>
<ul>
<li>The script utilises <a href="http://pybrary.net/pyPdf/">pyPDF </a>to merge the individual PDFs into one PDF.<br />
You will need to download the zipped source code from <a href=" http://pybrary.net/pyPdf/pyPdf-1.13.zip">this link</a>.  This then needs to be deployed under your python folder <em>e.g. C:\Python26\ArcGIS10.0\Lib</em></li>
<li>Either modify the existing DekhoServerPrint.py or create a <a href="http://pastebin.com/0f4x8nb0">new one</a>, and publish to ArcGIS Server.</li>
<li>Create a layout MXD with multiple Data Frames.</li>
<li>(Optional) For the HQ Printing, you will need to ensure you add all the layers direct from the GDB, direct to the Layout MXD, and ensure they are turned off.</li>
<li>For multiple data frames the Python script will do the following for each data frame;</li>
</ul>
<ol>
<li>Switch on all of the layers in the “current” data frame.</li>
<li>Change the scale to what the user wants.</li>
<li>Update the map name text to be the same as the data frame name.</li>
<li>Export the layout to PDF</li>
<li>Switch off all of the layers in the “current” data frame</li>
</ol>
<p>Once all of the layouts have been exported they are stitched together using the pyPDF library and the final PDF is returned to Dekho.</p>
<p>The map name text comes from the data frame name.</p>
</div>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/DunedinExample.png" rel="prettyPhoto[3595]"><img class="aligncenter size-full wp-image-3597" title="DunedinExample" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/DunedinExample.png" alt="" width="439" height="911" /></a></p>
<p>As always, excellent work Eagle!  Would love to see how others are using ArcPy with Dekho&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/using-arcpy-for-multi-page-exports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Black Edges around your Image Services?</title>
		<link>http://www.dekho.com.au/black-edges-around-your-image-services/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=black-edges-around-your-image-services</link>
		<comments>http://www.dekho.com.au/black-edges-around-your-image-services/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 06:06:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3588</guid>
		<description><![CDATA[Some of our users reported issues with Image Services coming through to Dekho with black backgrounds around the imagery.  After some investigation, we pinpointed the issue to be related to what the transmission compression was set to. Workaround: Override the transmission compression in the Configuration MXD to a format that [...]]]></description>
			<content:encoded><![CDATA[<p>Some of our users reported issues with Image Services coming through to Dekho with black backgrounds around the imagery.  After some investigation, we pinpointed the issue to be related to what the transmission compression was set to.</p>
<h3><strong>Workaround:</strong></h3>
<p>Override the transmission compression in the Configuration MXD to a format that supports transparency.</p>
<p><!-- copy and paste. Modify height and width if desired. -->       <object id="scPlayer"  width="700" height="525" type="application/x-shockwave-flash" data="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/0ab53b12-909d-4ef6-b46d-1b9f3c85a0de/scplayer.swf" ><param name="movie" value="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/0ab53b12-909d-4ef6-b46d-1b9f3c85a0de/scplayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="thumb=http://content.screencast.com/users/SimonGIS/folders/Dekho/media/0ab53b12-909d-4ef6-b46d-1b9f3c85a0de/FirstFrame.jpg&#038;containerwidth=800&#038;containerheight=600&#038;xmp=sc.xmp&#038;content=http://content.screencast.com/users/SimonGIS/folders/Dekho/media/0ab53b12-909d-4ef6-b46d-1b9f3c85a0de/ImageService_BlackEdges.mp4&#038;blurover=false" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/0ab53b12-909d-4ef6-b46d-1b9f3c85a0de/" /><iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/SimonGIS/folders/Dekho/media/0ab53b12-909d-4ef6-b46d-1b9f3c85a0de/embed" height="600" width="800" ></iframe></object><br />
<span id="more-3588"></span></p>
<h3>What is Transmission Compression?</h3>
<p>The default for an Image Service is LZ77, but this can be altered when creating your image service.  The primary benefit for this setting is so that you can use high compression formats such as JPG, which does sacrifice quality (as its a lossy format) and transparency, but then you have the benefit of sending small transmission packets to your clients, which avoids over-saturating your network and long wait times at the client end.</p>
<p>For more info, check the <a href="http://video.esri.com/watch/61/working-with-image-services-and-arcgis-for-server">web-help</a> and also I recommend watching <a href="http://video.esri.com/watch/61/working-with-image-services-and-arcgis-for-server">this video </a>on working with image services.</p>
<p>&nbsp;</p>
<h3>Making use of Landsat Image Services in you Dekho Maps</h3>
<p>Whilst we are on the subject of Image Services, it is worth pointing out that the entire Landsat image services collection is available through <a href="http://www.esri.com/landsat-imagery/image-services.html">ArcGIS Online</a> at <strong>no cost</strong>.  I have a personal fascination in multi-spectral imagery and what you can visualise by allocating bands from the EM spectrum to good old RGB values.</p>
<p><a href="http://imagery.arcgisonline.com/ArcGIS/rest/services/">Take a look</a> and perhaps some of these services would be useful for your Dekho maps, particularly if any have a focus on land-use change or agriculture.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-3-3588">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.dekho.com.au/black-edges-around-your-image-services/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-40" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/Agriculture.png" title=" " class="thickbox" rel="set_3" >
								<img title="Agriculture" alt="Agriculture" src="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/thumbs/thumbs_Agriculture.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-41" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/FalseColour.png" title=" " class="thickbox" rel="set_3" >
								<img title="FalseColour" alt="FalseColour" src="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/thumbs/thumbs_FalseColour.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-42" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/HealthyVegetation.png" title=" " class="thickbox" rel="set_3" >
								<img title="HealthyVegetation" alt="HealthyVegetation" src="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/thumbs/thumbs_HealthyVegetation.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-43" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/LandWater.png" title=" " class="thickbox" rel="set_3" >
								<img title="LandWater" alt="LandWater" src="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/thumbs/thumbs_LandWater.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-44" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/NDVI_2000_2005.png" title=" " class="thickbox" rel="set_3" >
								<img title="NDVI_2000_2005" alt="NDVI_2000_2005" src="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/thumbs/thumbs_NDVI_2000_2005.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-45" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/VegAnalysis.png" title=" " class="thickbox" rel="set_3" >
								<img title="VegAnalysis" alt="VegAnalysis" src="http://www.dekho.com.au/wordpress/wp-content/gallery/landsat/thumbs/thumbs_VegAnalysis.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/black-edges-around-your-image-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pull attachments into Dekho</title>
		<link>http://www.dekho.com.au/pull-attachments-into-dekho/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pull-attachments-into-dekho</link>
		<comments>http://www.dekho.com.au/pull-attachments-into-dekho/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 04:24:56 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[attachments]]></category>
		<category><![CDATA[Queries]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3571</guid>
		<description><![CDATA[Attachments are new in ArcGIS 10 and provide a flexible way to manage additional information that is related to features. Read the ArcGIS for Desktop help on how to enable attachments for a feature class and how to add attachments. Attachments are an additional table to the primary GIS table [...]]]></description>
			<content:encoded><![CDATA[<p>Attachments are new in ArcGIS 10 and provide a flexible way to manage additional information that is related to features.<br />
Read the ArcGIS for Desktop help on how to <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Enabling_attachments/001t000003vt000000/">enable attachments</a> for a feature class and how to <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_attachments_to_features/001t000003vv000000/">add attachments</a>.</p>
<p>Attachments are an additional table to the primary GIS table but contains items such as documents, images and spreadsheets that are linked to one record in the feature-class.</p>
<p><img title="Enable attachments" src="http://downloads2.esri.com/blogs/images/dev_21898.jpg" alt="" width="347" height="226" /></p>
<p>So how can you view these attachments back in Dekho?  <span id="more-3571"></span></p>
<p>In my example, I have attached some dummy photos to a petrol stations feature class.  I have then published this to a map service. To access an attachment tied to one of the petrol station features, I can hit it with this URL:</p>
<p><em>http://lap-7bjs52s/ArcGIS/rest/services/Demos/PetrolStations_Attachments/MapServer/0/101/attachments/3</em></p>
<p>Note in my example:</p>
<ul>
<li>My feature-class is called mds.DBO.PetrolStations (sitting in SQL Server)</li>
<ul>
<li>The new attachments table is called mds.DBO.Petrolstations__ATTACH (note the double _)</li>
</ul>
<li>The feature record OBJECT ID is 101</li>
<li>The Attachment OBJECTID  is 3</li>
</ul>
<p>The goal of Dekho is to form this URL string to use within either a Feature or Layer Info Query.</p>
<p>&nbsp;</p>
<div class="mceTemp" style="text-align: left;">
<h3>Step 1: Define the query type:</h3>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/1.png" rel="prettyPhoto[3571]"><img class="aligncenter size-full wp-image-3574" title="1" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/1.png" alt="" width="628" height="254" /></a></p>
<h3>Step 2: Define the query Structure</h3>
<ul>
<li>In this example we are using SQL Server.</li>
<li>We have to form a text string</li>
<li>We are querying against the <em>PETROLSTATIONS__ATTACH</em><strong><em> </em></strong> table</li>
<li>We have to retrieve the <em>REL_OBJECTID</em> (This is the link back to the primary feature class)</li>
<li>We have to retrieve the <em>ATTACHMENTID</em> (This is the id in the <em>PETROLSTATIONS__ATTACH</em><strong><em> </em></strong>that relates to the attachment).</li>
<li>Both <em>REL_OBJECTID</em> are Number and we to convert them to string and ensure there is no white spaces. The following statement  converts the number to CHAR by the CAST command and the RTRIM removes and white spaces on the right side of the statement RTRIM(CAST(REL_OBJECTID AS CHAR))</li>
</ul>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/2.png" rel="prettyPhoto[3571]"><img class="aligncenter size-full wp-image-3575" title="2" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/2.png" alt="" width="592" height="164" /></a></p>
<h3>Step 3: Identify if it is a URL or Image list</h3>
<p>In this example, we will use Image List as I have only attached images to my features.  If I had attached Office documents or other non-image formats, I would use a URL list.</p>
<h3>Step 4: Tie the Query to the relevant Maps.</h3>
<h3>Step 5: Tie the Query to the Map Layer</h3>
<p>You need to tie the query to the map layer that has attachments tied to it.  (In my case, Petrol Stations).</p>
<h3>Step 6: Establish Relationship</h3>
<p>Identify the OBJECTID of the feature from the map layer and tie it to the Related OBJECTID in the attachment table.</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/3.png" rel="prettyPhoto[3571]"><img class="aligncenter size-full wp-image-3576" title="3" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/3.png" alt="" width="554" height="294" /></a></p>
<h3>Step 7: Finish and Test</h3>
<p>You should now be able to view attachments for your features back in Dekho.</p>
<p>Note that you can tie multiple attachments to the one feature.</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/4.png" rel="prettyPhoto[3571]"><img class="aligncenter size-full wp-image-3577" title="4" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/04/4.png" alt="" width="623" height="548" /></a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/pull-attachments-into-dekho/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting around Tomcat out-of-memory issues</title>
		<link>http://www.dekho.com.au/getting-around-tomcat-out-of-memory-issues/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-around-tomcat-out-of-memory-issues</link>
		<comments>http://www.dekho.com.au/getting-around-tomcat-out-of-memory-issues/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 03:03:20 +0000</pubDate>
		<dc:creator>Charith S</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3565</guid>
		<description><![CDATA[“Server running out of memory” is one of the common causes for webserver crashing experienced by most of the Web Application Admins, yet it’s really easy for anyone to determine it happens due to java heap space limitation (JVM memory allocation).  This could lead to false conclusions such as application [...]]]></description>
			<content:encoded><![CDATA[<p>“Server running out of memory” is one of the common causes for webserver crashing experienced by most of the Web Application Admins, yet it’s really easy for anyone to determine it happens due to java heap space limitation (JVM memory allocation).  This could lead to false conclusions such as application needing more heap space or application should be clustered/load balanced to provide high availability. On the other hand, when the service is running out of memory it could appear as a memory leak within the application and eventually it can end up with development team testing it.</p>
<p>This post covers simple steps to fine-tune your system memory according to your application requirement, prior to deciding on any infrastructure changes that would be considered.</p>
<h2><span id="more-3565"></span> <strong>OutOfMemoryError</strong></h2>
<p><strong></strong>JVM throws this error when there is no space in memory for JVM to continue working. This happens mostly while you try to create more objects when there is no space in the heap to allocate as needed.</p>
<p>There are two main causes for this error.</p>
<p>1.  Java heap space limitation.<br />
2.  Java perm gen limitation</p>
<h2><strong>Java heap limitation</strong></h2>
<p><strong></strong>This is the most commonly known fact related to the out-of-memory issue. You can tweak heap space settings using –Xmx (Maximum heap size) and –Xms (Initial heap size) parameters. In general, if you have more memory the less frequent it needs to be garbage collected. So you could expect applications to run faster when there is more memory available. But from GC’s perspective it will have to work on a larger memory than usual. It’s just like for a floor cleaner you have a bigger floor to clean than he usually does. This in turn can decrease overall performance of your application so you should tweak these settings consciously.</p>
<p>Example :<br />
<em>    -Xmx1536m</em><br />
<em>     -Xms1024m</em><br />
<strong></strong></p>
<h2><strong>Java Permanent Generation limitation</strong></h2>
<p><strong></strong>This is where JVM store meta data information about classes, methods (on Eden heap and Tenured heap) and other java primitives. By default this value is set to 64m. Most of the time it’s not sufficient for many applications. So it’s really important to change this setting and provide some space for perm gen to work on. Unlike xmx and xms, you have to use “=” to define this setting. Also you can use additional JVM flags “-XX:+CMSClassUnloadingEnabled” and “-XX:+CMSPermGenSweepingEnabled”. This will enforce sweeping through the permanent generation to release unused references to some extent.</p>
<p>Example :<br />
<em>    -XX:PermSize=64M</em><br />
<em>     -XX:MaxPermSize=256m</em><br />
<em>     -XX:+CMSPermGenSweepingEnabled</em><br />
<em>     -XX:+CMSClassUnloadingEnabled</em></p>
<p>Generally many Application Admins are aware of heap space settings. Yet there are many instances where perm gen settings have gone unnoticed. It’s really important to fine-tune your application for permanent generation heap as it could be a good reason for your out-of-memory errors. You can find out more information on Java Heap and profiling information <a href="http://www.dekho.com.au/realtime-monitoring-of-tomcat-cpu-and-memory-usage/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/getting-around-tomcat-out-of-memory-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the HTML5 Geolocation API with Dekho</title>
		<link>http://www.dekho.com.au/using-the-html5-geolocation-api-with-dekho/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-the-html5-geolocation-api-with-dekho</link>
		<comments>http://www.dekho.com.au/using-the-html5-geolocation-api-with-dekho/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 05:53:37 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Customisation]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Custom Tools]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3548</guid>
		<description><![CDATA[Big thanks to those that came to our Perth Dekho workshop.  One thing that stood out for me, was that a number of clients had layers that were frequently changing, from vehicle tracking at mine sites to monitoring shark locations.  Was good to see that these users were making use [...]]]></description>
			<content:encoded><![CDATA[<p>Big thanks to those that came to our Perth Dekho workshop.  One thing that stood out for me, was that a number of clients had layers that were frequently changing, from vehicle tracking at mine sites to monitoring shark locations.  Was good to see that these users were making use of the <a href="http://www.dekho.com.au/help/32/default.htm?turl=Documents%2Fmakingalayerrefreshautomaticallywithinamap.htm">AUTOREFRESH </a>tag to keep these layers updated at the client end.  Was also interesting to see a number of you using Dekho outside of the office and in the field.</p>
<p>This got me thinking.  Modern browsers (IE9+) that<a href="http://caniuse.com/#feat=geolocation"> support HTML5 Geolocation API</a>, can attempt to determine where you are located.  <a href="http://caniuse.com/#feat=geolocation">This post </a>is a good summary of how it does it, but you do not have to have a GPS-enabled device.  It can make estimates on ip addresses, cell phone network towers, etc.</p>
<p>So first off, test if your browser can locate you <a href="http://html5demos.com/geo">here</a>.</p>
<p>With Flash/Flex, geolocation is <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/sensors/Geolocation.html">restricted to Adobe Air</a>.<br />
However, we can still take advantage of HTML5 goodness from Dekho.</p>
<p><!-- copy and paste. Modify height and width if desired. -->       <object id="scPlayer"  width="640" height="498" type="application/x-shockwave-flash" data="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/2f0fa5d6-2db8-4d8f-9491-8f60a289d736/geolocation_controller.swf" ><param name="movie" value="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/2f0fa5d6-2db8-4d8f-9491-8f60a289d736/geolocation_controller.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="containerwidth=640&#038;containerheight=498&#038;showstartscreen=true&#038;showendscreen=true&#038;loop=false&#038;autostart=false&#038;color=000000,000000&#038;thumbscale=45&#038;content=http://content.screencast.com/users/SimonGIS/folders/Dekho/media/2f0fa5d6-2db8-4d8f-9491-8f60a289d736/geolocation.mp4&#038;blurover=false" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/2f0fa5d6-2db8-4d8f-9491-8f60a289d736/" /><iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/SimonGIS/folders/Dekho/media/2f0fa5d6-2db8-4d8f-9491-8f60a289d736/embed" height="498" width="640" ></iframe></object></p>
<p><span id="more-3548"></span></p>
<p>The tool:</p>
<ul>
<li>Checks if your browser supports the HTML5 Geolocation API (via a JavaScript function)</li>
<li>Attempts to determine your location and passes lat/longs back to Dekho.</li>
<li>Puts a point on the map (bouncing off geometry service to project if necessary)</li>
</ul>
<p>Ok. So if you are sitting at your desk (like every other work day) then yes = there is little point to this tool.<br />
However, if your out in the field then this tool could be very useful (especially if your lost).</p>
<p>On a more serious note, geolocation is <a href="http://msdn.microsoft.com/en-us/magazine/hh563893.aspx">impressive stuff</a>.  Take a step back and have a bigger think about how you could use that information for perhaps a more elaborate custom tool.</p>
<ul>
<li>Combine this with the street view tool to show street view at point.</li>
<li>There is a nice <a href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/exp/exp_geolocate.html">Esri JavaScript API sample</a> that tracks your current location dynamically in a graphics layer.</li>
<li>You could get the location and pass it into a geoprocessing service as an input parameter.</li>
<li>You could use it to create a point in a feature service.</li>
<li>You could combine it with routing to give the best route back to base from current location.</li>
</ul>
<p>&nbsp;</p>
<h2>Setup:</h2>
<ul>
<li><a href="http://www.dekho.com.au/download-gallery/?did=20">Download the tool from the downloads gallery.</a></li>
<li>Copy the SWF and icon to the Apache ROOT folder  e.g. ..ROOT\DekhoTools\geolocation\</li>
<li>Add the tool via Dekho Admin.</li>
</ul>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/Setup.png" rel="prettyPhoto[3548]"><img class="aligncenter size-full wp-image-3552" title="Setup" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/Setup.png" alt="" width="569" height="566" /></a></p>
<ul>
<li>Make a copy of Dekho.jsp file and then edit original.  This file is located under the Dekho folder.  A modified dekho.jsp file is included in download, but be careful to not overwrite any other customisations you may have in their.</li>
</ul>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/EditsInDekhoJSP.png" rel="prettyPhoto[3548]"><img class="aligncenter size-full wp-image-3553" title="EditsInDekhoJSP" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/EditsInDekhoJSP.png" alt="" width="611" height="367" /></a></p>
<p>From their you should be able to call the tool from within your Dekho maps.</p>
<p>Please use comments for any casual comments or <a href="http://answers.dekhoforum.com/">Dekho Answers</a> for more specific issues on using the tool.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/using-the-html5-geolocation-api-with-dekho/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/2f0fa5d6-2db8-4d8f-9491-8f60a289d736/geolocation.mp4&amp;blurover=false" length="295454" type="video/mp4" />
		</item>
		<item>
		<title>Dekho Answers back in business!</title>
		<link>http://www.dekho.com.au/dekho-answers-back-in-business/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dekho-answers-back-in-business</link>
		<comments>http://www.dekho.com.au/dekho-answers-back-in-business/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 11:07:57 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3530</guid>
		<description><![CDATA[Had to put my very small python/django hat on and do some messing around on our hosting provider, but now have Dekho answers back online. For those that know me, I am a huge fan of Stack Exchange &#8211; I highly recommend checking out the GIS site. The Esri forums [...]]]></description>
			<content:encoded><![CDATA[<p>Had to put my very small python/django hat on and do some messing around on our hosting provider, but now have Dekho answers back online.</p>
<p>For those that know me, I am a huge fan of <a href="http://stackexchange.com/">Stack Exchange</a> &#8211; I highly recommend checking out the <a href="http://gis.stackexchange.com/">GIS site</a>.</p>
<p><img class="alignright" style="border-style: initial; border-color: initial;" title="Esri forums" src="http://downloads.esri.com/blogs/arcgisdeveloper/forumsvoting.jpg" alt="" width="137" height="224" /></p>
<div>
<p>The <a href="http://blogs.esri.com/esri/arcgis/2012/03/04/the-new-arcgis-discussion-forums-mvp-program/">Esri forums</a> have also recently adopted some of the same functionality from Stack Exchange.<a href="http://answers.dekhoforum.com/">Dekho Answers </a>is built on top of <a href="http://www.osqa.net/">OSQA</a>, which is an excellent open source Q&amp;A platform, that mimics a lot of what Stack Exchange sites do.</p>
<div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>So what is the difference between a Q&amp;A site and a traditional forum?  For the long answer, I have a ramble in the below video.<br />
The short answer, is that a Q&amp;A site promotes well thought out questions, and the community decides which answers are the best, and then instead of answers being laid out in chronological order, they are viewed from most voted (and thus most useful) at the top.<br />
<span id="more-3530"></span></p>
<p>Please take a read on the <a href="http://answers.dekhoforum.com/faq/">FAQ </a>and <a href="http://answers.dekhoforum.com/about/">About </a>Page for Dekho Answers.</p>
<p>The biggest mistake that users make, is treating a Q&amp;A site like a forum.  You should spend time writing your answer.<br />
If people need more info from you, they will ask for more details via the comments.</p>
<p>i.e. You should only ask one question at a time, and then the community should only create new answers if they are answer.  Comments are encouraged to get more information.</p>
<p>&nbsp;</p>
<p>If you have questions that demand attentitive answers (e.g. your production environment is down, or having some major issues affecting your users), then please continue to <a href="http://www.dekho.com.au/ask-a-techie/">fire these at our support team</a>, as they have KPIs to get you answers within certain SLAs.  Please also continue to use support if you have a feeling that getting an answer will involve a lot more investigation, such as analysing logs, perhaps getting an analyst involved in a remote session, etc.</p>
<p>However, for other issues where you believe that we could answer without having to gather more detailed information, I<strong> highly encourage you to raise these via Dekho Answers.</strong></p>
<p>Myself, the developers and support will be keeping an eye on incoming questions, and you can even raise questions that fall outside the scope of standard support (e.g. custom development &amp; Dekho).</p>
<p>&nbsp;</p>
<p><strong>Examples of good Questions:</strong></p>
<ul>
<li>Will Dekho support Windows 8, and if so, when? <img class="alignright size-full wp-image-3541" style="border-style: initial; border-color: initial;" title="Resolved" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/Resolved.png" alt="" width="189" height="168" /></li>
<li>I keep getting this WARNING in my log, what does it mean?</li>
<li>What are some good resources to get started with Dekho Development?</li>
<li>What options do I have for integrating with our SAP System?</li>
<li>etc</li>
</ul>
<p>And remember &#8211; when you get an answer that solves your question = REMEMBER TO MARK IT AS RESOLVED USING THE TICKBOX</p>
<p>    <iframe src="http://player.vimeo.com/video/23106953" width="500" height="306" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/dekho-answers-back-in-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dekho Answers currently down</title>
		<link>http://www.dekho.com.au/dekho-answers-currently-down/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dekho-answers-currently-down</link>
		<comments>http://www.dekho.com.au/dekho-answers-currently-down/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 23:27:23 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3528</guid>
		<description><![CDATA[Dekho Answers is currently down. Seems our hosting provider stripped out Python (which OSQA relies on). We will dive in and have a look at fixing things up this week. If you need assistance before that, please fire it through to support, or if its not support-related, hit us up [...]]]></description>
			<content:encoded><![CDATA[<p>Dekho Answers is currently down. Seems our hosting provider stripped out Python (which OSQA relies on).</p>
<p>We will dive in and have a look at fixing things up this week.</p>
<p>If you need assistance before that, please <a href="http://www.dekho.com.au/ask-a-techie/">fire it through to support,</a> or if its not support-related, <a href="http://www.dekho.com.au/ask/">hit us up direct.</a></p>
<p>Apologies for the inconvenience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/dekho-answers-currently-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building your .Net &amp; Flex Dekho Custom Tools with a build server – Part 2</title>
		<link>http://www.dekho.com.au/building-your-net-flex-dekho-custom-tools-with-a-build-server-part-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-your-net-flex-dekho-custom-tools-with-a-build-server-part-2</link>
		<comments>http://www.dekho.com.au/building-your-net-flex-dekho-custom-tools-with-a-build-server-part-2/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 04:54:35 +0000</pubDate>
		<dc:creator>DamianS</dc:creator>
				<category><![CDATA[Customisation]]></category>
		<category><![CDATA[How to]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3490</guid>
		<description><![CDATA[Using Jenkins Continuous Integration to build your custom Dekho Flex tools. In Part 1 we covered how to install Jenkins and to get it ready to build Flex and .Net projects (without the need for Visual Studio or Flex Builder). There was a reference to installing Apache Ant which you [...]]]></description>
			<content:encoded><![CDATA[<p>Using Jenkins Continuous Integration to build your custom Dekho Flex tools.<span id="more-3490"></span></p>
<p>In<a title="Part 1" href="http://www.dekho.com.au/?p=3466"> Part 1</a> we covered how to install Jenkins and to get it ready to build Flex and .Net projects (without the need for Visual Studio or Flex Builder).</p>
<p>There was a reference to installing Apache Ant which you may have wondered, what is it?</p>
<p>Apache Ant is the tool that is going to perform the build automation for our Flex project.   Jenkins is the management of the build.</p>
<p>In Part 2 we will cover building of a Google Street View Dekho Flex tool.  Before we use Jenkins to manage the build process, we will build the Flex tool from the command line.</p>
<p><strong>The Flex SDK</strong></p>
<p>The Flex SDK provides the Flex libraries and also comes with the mxml and actionscript compiler, and Ant library to support building our Dekho tool.   While I have put the latest 4.5 SDK into my Flash Builder folder, Flash Builder is not required.</p>
<p>The \bin folder has mxmlc.exe and the \ant\lib folder has flexTasks.jar</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/flex-sdk.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3491" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/flex-sdk.png" alt="" width="729" height="489" /></a></p>
<p>&nbsp;</p>
<p><strong>Building Flex SWF with Apache Ant</strong></p>
<p>In our Google Street View tool working folder lets create two new files that will be used by Apache Ant.  The two files should be checked into your source code repository so the build server will pick them up, as well as tracking changes to the build configuration.</p>
<ol>
<li>build.properties &#8211; Build properties specific to this project.</li>
<li>build.xml &#8211; Generic build file for our custom Dekho Flex tools.  You should not need to make further changes to this file.</li>
</ol>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/street-view-files.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3494" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/street-view-files.png" alt="" width="534" height="341" /></a></p>
<p><strong>build.properties</strong></p>
<p>Update this file with the paths to the required tools (and version), and the name of the application / source mxml file to build.    This StreetView sample tool is an older example being built with Flex SDK 3.5.0</p>
<p><code><br />
######################################<br />
## Project information<br />
######################################<br />
application.name=StreetView</code></p>
<p># Where flex is installed:<br />
FLEX_HOME=C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0<br />
LOCALE=en_US<br />
ENCODING=UTF-8</p>
<p>######################################<br />
## tools<br />
######################################</p>
<p>### FlexTask<br />
FLEX.TASK.DIR=${FLEX_HOME}/ant/lib/flexTasks.jar</p>
<p># Browsers<br />
firefox=C:/Program Files/Mozilla Firefox/firefox.exe<br />
ie=C:/Program Files/Internet Explorer/iexplore.exe</p>
<p>######################################<br />
## Properties<br />
######################################<br />
src.dir=src<br />
bin.dir=bin-release<br />
lib.dir=libs<br />
wrapper.dir=html-template<br />
html.file=${bin.dir}/${application.name}.html</p>
<p>main.class = ${src.dir}/${application.name}.mxml<br />
swf.export = ${bin.dir}/${application.name}.swf</p>
<p># ASSETS DIR<br />
assets.dir=${src.dir}/assets/</p>
<p>&nbsp;</p>
<p><strong> build.xml</strong></p>
<p>This build.xml file has four target sections which run in the following order;</p>
<ol>
<li>clean &#8211; deletes the old build files</li>
<li>init &#8211; some info about the build</li>
<li>compile &#8211; perform the build</li>
<li>wrapper &#8211; copies the html-template folder to the release folder and uses index.template.html to create StreetView.html</li>
</ol>
<p><code><br />
&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />
&lt;project name="Dekho Custom Tool" basedir="." default="masterbuild"&gt;</code></p>
<p>&lt;!&#8211; Load Environment specific properties from properties file &#8211;&gt;<br />
&lt;property file=&#8221;build.properties&#8221; /&gt;</p>
<p>&lt;!&#8211; Load the flex tasks for compiling the actionScript code and running flexUnit &#8211;&gt;<br />
&lt;taskdef resource=&#8221;flexTasks.tasks&#8221; classpath=&#8221;${FLEX.TASK.DIR}&#8221; /&gt;</p>
<p>&lt;target name=&#8221;init&#8221; description=&#8221;Initializes the build&#8221;&gt;<br />
&lt;tstamp/&gt;<br />
&lt;echo message=&#8221;=============================================&#8221;/&gt;<br />
&lt;echo message=&#8221;${application.name} [${TODAY}]&#8220;/&gt;<br />
&lt;echo message=&#8221;OS : ${os.name}&#8221; /&gt;<br />
&lt;echo message=&#8221;==============================================&#8221;/&gt;<br />
&lt;/target&gt;</p>
<p>&lt;!&#8211; Compile Main application &#8211;&gt;<br />
&lt;target name=&#8221;compile&#8221; depends=&#8221;init&#8221; description=&#8221;Compiles the mxml/as source files&#8221;&gt;<br />
&lt;mxmlc<br />
file=&#8221;${main.class}&#8221;<br />
output=&#8221;${swf.export}&#8221;<br />
actionscript-file-encoding=&#8221;${ENCODING}&#8221;<br />
keep-generated-actionscript=&#8221;false&#8221;<br />
incremental=&#8221;false&#8221;<br />
locale=&#8221;${LOCALE}&#8221;<br />
compiler.as3=&#8221;true&#8221;<br />
&gt;<br />
&lt;load-config filename=&#8221;${FLEX_HOME}/frameworks/flex-config.xml&#8221;/&gt;<br />
&lt;compiler.source-path path-element=&#8221;${FLEX_HOME}/frameworks&#8221;/&gt;<br />
&lt;compiler.debug&gt;false&lt;/compiler.debug&gt;<br />
&lt;compiler.source-path path-element=&#8221;${src.dir}&#8221;/&gt;<br />
&lt;compiler.include-libraries dir=&#8221;${basedir}&#8221; append=&#8221;true&#8221;&gt;<br />
&lt;include name=&#8221;${FLEX_HOME}/lib&#8221; /&gt;<br />
&lt;/compiler.include-libraries&gt;<br />
&lt;!&#8211; List of SWC files or directories that contain SWC files. These will be link-merged &#8211;&gt;<br />
&lt;compiler.library-path dir=&#8221;${lib.dir}&#8221; append=&#8221;true&#8221;&gt;<br />
&lt;include name=&#8221;*.swc&#8221; /&gt;<br />
&lt;/compiler.library-path&gt;</p>
<p>&lt;/mxmlc&gt;<br />
&lt;/target&gt;<br />
&lt;!&#8211; Clean output dirs &#8211;&gt;<br />
&lt;target name=&#8221;clean&#8221; description=&#8221;clean all generated files&#8221;&gt;<br />
&lt;delete includeemptydirs=&#8221;true&#8221; verbose=&#8221;true&#8221;&gt;<br />
&lt;fileset dir=&#8221;${bin.dir}&#8221; includes=&#8221;**/*&#8221; /&gt;<br />
&lt;/delete&gt;<br />
&lt;/target&gt;<br />
&lt;!&#8211; Create HTML wrapper &#8211;&gt;<br />
&lt;target name=&#8221;wrapper&#8221; depends=&#8221;compile&#8221; description=&#8221;Creates the HTML wrapper&#8221;&gt;<br />
&lt;!&#8211; Copy the html-wrapper dir except the index.template.html &#8211;&gt;<br />
&lt;copy todir=&#8221;${bin.dir}&#8221;&gt;<br />
&lt;fileset dir=&#8221;${wrapper.dir}&#8221;&gt;<br />
&lt;exclude name=&#8221;**/index.template.html&#8221; /&gt;<br />
&lt;/fileset&gt;<br />
&lt;/copy&gt;<br />
&lt;!&#8211; Copy and rename the index.template.html &#8211;&gt;<br />
&lt;copy file=&#8221;${wrapper.dir}/index.template.html&#8221;<br />
tofile=&#8221;${html.file}&#8221; /&gt;</p>
<p>&lt;!&#8211; Replace placeholders in the html with our variables &#8211;&gt;<br />
&lt;!&#8211;Check the flex version_major, version_minor, version_revision&#8211;&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{width\}&#8221;<br />
replace=&#8221;100%&#8221;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{height\}&#8221;<br />
replace=&#8221;100%&#8221;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{title\}&#8221;<br />
replace=&#8221;{project.name}&#8221;<br />
encoding=&#8221;utf-8&#8243;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{version_major\}&#8221;<br />
replace=&#8221;9&#8243;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{version_minor\}&#8221;<br />
replace=&#8221;0&#8243;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{version_revision\}&#8221;<br />
replace=&#8221;0&#8243;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{application\}&#8221;<br />
replace=&#8221;${application.name}&#8221;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{bgcolor\}&#8221;<br />
replace=&#8221;#FFFFFF&#8221;/&gt;<br />
&lt;replaceregexp<br />
file=&#8221;${html.file}&#8221;<br />
flags=&#8221;gs&#8221;<br />
match=&#8221;\$\{swf\}&#8221;<br />
replace=&#8221;${application.name}&#8221;/&gt;<br />
&lt;/target&gt;</p>
<p>&lt;!&#8211; Run all, default &#8211;&gt;<br />
&lt;target name=&#8221;masterbuild&#8221;<br />
depends=&#8221;clean, compile, wrapper&#8221;<br />
description=&#8221;Complete build in efficient sequence&#8221;/&gt;</p>
<p>&lt;/project&gt;</p>
<p>&nbsp;</p>
<p><strong> Building the Dekho Flex tool</strong></p>
<p>Open a command prompt in the StreetView tool folder and run the following command line<br />
<code>ant masterbuild</code></p>
<p>If the build is successful, commit the build.xml and build.properties to source control.</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/ant-command-line.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3498" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/ant-command-line.png" alt="" width="659" height="563" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Jenkins Build Job</strong></p>
<p>Now we have successfully created the Flex SWF file, let us create the Jenkins job to manage it on the build server.</p>
<ol>
<li>Open the Jenkins dashboard.   <a href="http://localhost:8080/jenkins/">http://my_build_server:8080/jenkins/</a></li>
<li>Click on New Job and give it a name<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-create-job1.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3500" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-create-job1.png" alt="" width="977" height="546" /></a></li>
<li>Enter the source code repository details.<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-subversion.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3503" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-subversion.png" alt="" width="977" height="794" /></a></li>
<li>Select Build periodically, and/or Poll SCM.   You will most likely want to have a nightly build, and Poll SCM for changes every few minutes for continuous integration.</li>
<li>Click Add build step button, and select Invoke Ant</li>
<li>Set the Ant target to the target name in build.xml to run.  In our case masterbuild<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/build-triggers.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3505" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/build-triggers.png" alt="" width="977" height="610" /></a></li>
<li>Further build steps can be added via different plugins.  For example, running units test, building install program, and copy the release to a file server.</li>
<li>Set the email notification addresses.<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-email1.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3513" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-email1.png" alt="" width="816" height="485" /></a></li>
<li>Save the job.</li>
<li>To test the build process, force the job to run now by clicking on the green arrow next to the job.<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-force-build.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3507" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-force-build.png" alt="" width="848" height="539" /></a></li>
<li>View the build console output<br />
<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-console-output.png" rel="prettyPhoto[3490]"><img class="alignnone size-full wp-image-3508" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-console-output.png" alt="" width="977" height="835" /></a></li>
</ol>
<div></div>
<div></div>
<div></div>
<div><strong>Summary</strong></div>
<div>Hopefully this gives you an introduction to how to manage the software release for a suite of software tools and projects, specifically Dekho Custom tools.</div>
<div></div>
<div></div>
<div></div>
<div></div>
<div><strong>Note: </strong>if you are trying the StreetView_V2 sample <a href="http://www.dekho.com.au/download-gallery/?did=5">http://www.dekho.com.au/download-gallery/?did=5</a> you will have to update the Apache Ant build.properties as follows</div>
<div></div>
<div><code><code>main.class = ${src.dir}/ExampleCustomTools/DekhoStreetView/${application.name}.mxml</code></code></div>
<div><code><code></code></code>FLEX_HOME=C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/4.5.0</div>
<div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/building-your-net-flex-dekho-custom-tools-with-a-build-server-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building your .Net &amp; Flex Dekho Custom Tools with a build server &#8211; Part 1</title>
		<link>http://www.dekho.com.au/building-your-net-flex-dekho-custom-tools-with-a-build-server-part-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-your-net-flex-dekho-custom-tools-with-a-build-server-part-1</link>
		<comments>http://www.dekho.com.au/building-your-net-flex-dekho-custom-tools-with-a-build-server-part-1/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 04:53:05 +0000</pubDate>
		<dc:creator>DamianS</dc:creator>
				<category><![CDATA[Customisation]]></category>
		<category><![CDATA[How to]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3466</guid>
		<description><![CDATA[You have a team of developers and consultants working on a big solution or a number of projects.  You probably have a source control like subversion to help manage changes to the code, but there are still issues like; What version of SDK/libraries/framework and settings did person X build the [...]]]></description>
			<content:encoded><![CDATA[<p>You have a team of developers and consultants working on a big solution or a number of projects.  You probably have a source control like subversion to help manage changes to the code, but there are still issues like;</p>
<ul>
<li>What version of SDK/libraries/framework and settings did person X build the software with?</li>
<li>Did person X actually commit/add the source code to source control before it was released to test?</li>
<li>Person X is sick or unavailable, I need a new build so I can test the latest changes.  Have to wait?</li>
<li>Development team is constantly being interrupted, and re-building install programs is just one more interruption</li>
<li>There are actually automated unit tests for the code, but did they get run before the test release?</li>
<li>The last change was a few years ago, and no one here knows how to build it?  or no one has a license to install the tool(s) to create it?</li>
</ul>
<p>If any of the above are true, then it is most likely there is no central point of truth for your software release.<span id="more-3466"></span></p>
<p>An automated build server solve the above issues;</p>
<ul>
<li>The build server is a controlled deployment of SDK&#8217;s, libraries and frameworks required for the solutions.  The configuration of the build sequence is managed by the automated build tool.</li>
<li>Source code has to be commit to source control, before the build server can fetch it from source control.  It does this either periodically or if it detects a change.  The build will fail if you partially committed the code, and the team will be automatically emailed.</li>
<li>Testers can go to the build server or file share location to get the latest build with out interrupting the development team.  However it is a responsibility of the development team that the build server is working.</li>
<li>Unit tests can get added to the automated build sequence.  If they fail, the team gets emailed.</li>
<li>The automated build sequence remains after others have gone.   Additionally .Net and Flex solutions get built without a requirement of a license for Microsoft Visual Studio, or Adobe Flash Builder.</li>
</ul>
<p>There are several automated build tools available that manage the process of building, and possibly deploying, a new software release.  This blog will discuss the install of the Jenkins (aka Hudson) automated build tool.  All open source.   <a title="Part 2" href="http://www.dekho.com.au/?p=3490">Part 2</a> will cover building a Dekho custom tool, Google Street View.</p>
<p>A quick overview of the Jenkins dashboard.  The centre of the screen shows the jobs that have been created and their current status.  Clicking on one of the job will take you to the details of the job.</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-dashboard.png" rel="prettyPhoto[3466]"><img class="alignnone size-full wp-image-3487" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-dashboard.png" alt="" width="977" height="546" /></a><br />
<strong>Pre-requisites</strong></p>
<ul>
<li>Windows virtual machine (XP, Server 2003, Server 2008, Windows 7,&#8230;)</li>
<li>Source Code Repository Client. eg Tortoise Subversion Client <a href="http://tortoisesvn.net/downloads.html">http://tortoisesvn.net/downloads.html</a></li>
<li>Java Development Kit (JDK)</li>
<li>Tomcat web server (Currently v7)</li>
<li>Jenkins <a href="http://jenkins-ci.org/">http://jenkins-ci.org/</a></li>
<li>Apache Ant <a href="http://ant.apache.org/">http://ant.apache.org/</a></li>
<li>Adobe Flex SDK <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5</a></li>
<li>.Net 3.5 and 4.0 if using MSBuild to build .Net projects</li>
<li>ArcObjects .Net SDK if your solutions includes web services/ArcMap addins that require ArcObjects</li>
</ul>
<p>&nbsp;</p>
<p><strong>Install</strong></p>
<ol>
<li>Install Source Code Repository Client.   In our case this is TortoiseSVN.</li>
<li>Install the JDK.</li>
<li>Create the JAVA_HOME environment variable, point to the JDK path location.</li>
<li>Install .Net 3.5, 4.0 if you are going to be building .Net solutions.  This includes MSBUILD</li>
<li>Install ArcObjects SDK version required and service pack.</li>
<li>Install the Flex SDK(s).  Currently v4.5</li>
<li>Install Tomcat.  Use port 8080</li>
<li>Change Tomcat windows service to automatic start</li>
<li>Copy the Jenkins.war file to the Tomcat web folder.   Tomcat should extract it and create a Jenkins folder</li>
<li>Jenkins will create a working folder in C:\.Jenkins.   If you want to move this, stop Tomcat first then move the folder.</li>
<li>Create a JENKINS_HOME environment variable, point to the working folder.</li>
<li>Install the Apache Ant files to C:\Program Files\Apache Software Foundation\Ant</li>
<li>Create a ANT_HOME environment variable, point to the path location.</li>
<li>Add to the PATH environment variable %ANT_HOME%\bin.</li>
<li>Reboot so the environment variable changes are loaded.</li>
</ol>
<p><strong>Configure</strong></p>
<ol>
<li> Open the URL <a href="http://localhost:8080/jenkins/">http://localhost:8080/jenkins/</a></li>
<li>Click on the Manage Jenkins link<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/manage-jenkins.png" rel="prettyPhoto[3466]"><img class="alignnone size-full wp-image-3471" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/manage-jenkins.png" alt="" width="895" height="896" /><br />
</a></li>
<li>Click on Manage Plugins</li>
<li>Click on Available Plugins</li>
<li>Select Ant, and MSBuild plugins, then select Install.<br />
If your server doesn&#8217;t have internet access, do it manually.<br />
<a href="https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Byhand">https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Byhand</a><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-plugins.png" rel="prettyPhoto[3466]"><img class="alignnone size-full wp-image-3474" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-plugins.png" alt="" width="884" height="570" /><br />
</a></li>
<li>Go back to Manage Jenkins, and select Configure</li>
<li>Add a MS-Build install for .Net 3.5 and .Net 4.0.  See screen shot.  This give you the choice of which .Net compiler to invoke when building your .Net solution.<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-msbuild.png" rel="prettyPhoto[3466]"><img class="alignnone size-full wp-image-3480" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-msbuild.png" alt="" width="884" height="629" /></a></li>
<li>Setup the Email server details for notifications.<a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-email.png" rel="prettyPhoto[3466]"><img class="alignnone size-full wp-image-3476" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/jenkins-email.png" alt="" width="816" height="485" /></a></li>
<li>Save the configuration changes</li>
</ol>
<p>&nbsp;</p>
<p>In <a title="Part 2" href="http://www.dekho.com.au/?p=3490">Part 2</a>, I will cover setting up Jenkins Job for a custom Dekho Flex tool.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/building-your-net-flex-dekho-custom-tools-with-a-build-server-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add an Alert Bar to help noobs</title>
		<link>http://www.dekho.com.au/add-an-alert-bar-to-help-noobs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-an-alert-bar-to-help-noobs</link>
		<comments>http://www.dekho.com.au/add-an-alert-bar-to-help-noobs/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 03:51:12 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Customisation]]></category>
		<category><![CDATA[How-to]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3454</guid>
		<description><![CDATA[Dekho is a powerful application fit for solving a large variety of problems.  It has an interface similar to a desktop application, with toolbars, sidebar, results panel, etc. As a result, to a newcomer, they may need some initial guidance on how to use Dekho to get the information they [...]]]></description>
			<content:encoded><![CDATA[<p>Dekho is a powerful application fit for solving a large variety of problems.  It has an interface similar to a desktop application, with toolbars, sidebar, results panel, etc.</p>
<p>As a result, to a newcomer, they may need some initial guidance on how to use Dekho to get the information they need.</p>
<p>I know a lot of our clients give internal training on Dekho to their users.  However, how is this going to work with a public facing Dekho or if a casual internal user needs to hop on, but does not require full training?</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/screen.png" rel="prettyPhoto[3454]"><img class="alignleft  wp-image-3455" title="screen" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/screen.png" alt="" width="725" height="112" /></a></p>
<p><span id="more-3454"></span></p>
<p><!-- copy and paste. Modify height and width if desired. -->       <object id="scPlayer"  width="640" height="498" type="application/x-shockwave-flash" data="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/fea3d484-191a-43b5-9949-35cda16e94fe/alertbar_controller.swf" ><param name="movie" value="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/fea3d484-191a-43b5-9949-35cda16e94fe/alertbar_controller.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="containerwidth=640&#038;containerheight=498&#038;showstartscreen=true&#038;showendscreen=true&#038;loop=false&#038;autostart=false&#038;color=000000,000000&#038;thumbscale=45&#038;content=http://content.screencast.com/users/SimonGIS/folders/Dekho/media/fea3d484-191a-43b5-9949-35cda16e94fe/AlertBar.mp4&#038;blurover=false" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/fea3d484-191a-43b5-9949-35cda16e94fe/" /><iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/SimonGIS/folders/Dekho/media/fea3d484-191a-43b5-9949-35cda16e94fe/embed" height="498" width="640" ></iframe></object></p>
<p>This was very easy to achieve, with a little help from a plugin for JQuery.</p>
<h3>Required changes:</h3>
<ol>
<li>Make a backup of your dekho.jsp file (under &#8230;Tomcat\webapps\Dekho)</li>
<li>Download latest version of <a href="http://needim.github.com/noty/">noty </a>from their <a href="https://github.com/needim/noty/downloads">Github page</a>.</li>
<li>Extract the zip to a folder called <strong>custom</strong> underneath the Dekho folder in webapps.</li>
<li><em>Optional step</em> &#8211; <a href="http://docs.jquery.com/Downloading_jQuery">download </a>a local copy of JQuery and also place under custom folder.</li>
<li>Open dekho.jsp in a text editor.  Make the changes highlighted below &#8211; this references JQuery and the Noty plugin, and also adds in some additional CSS for the font in the alert bar.</li>
</ol>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/script1.png" rel="prettyPhoto[3454]"><img class="size-full wp-image-3458 alignnone" title="script1" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/script1.png" alt="" width="773" height="290" /></a></p>
<p>Then include the below function within the functions section further down in the file:</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/scren2.png" rel="prettyPhoto[3454]"><img class="alignnone size-full wp-image-3459" title="scren2" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/03/scren2.png" alt="" width="582" height="451" /></a></p>
<p>My entire dekho.jsp can be seen <a href="http://pastebin.com/3LVFQ0UD">here </a>if you want to copy and paste that function.</p>
<p>The noty options can be tweaked on the <a href="http://needim.github.com/noty/">noty </a>site.</p>
<p>This function could be tweaked to perhaps show the alertbar for the first few times, or perhaps for a few days.  You could even get fancy and make it a sticky alertbar, move it to the side, and only stop showing it when the user clicks the exit sign.</p>
<p>Another thing worth mentioning &#8211; you can edit the built in help with a <a href="http://www.coffeecup.com/">WYSIWYG HTML editor </a> to include additional pages.</p>
<p>I personally recommend to clients, to tweak the help tool to point to &#8216;<a href="http://www.dekho.com.au/help/32/default.htm?turl=Documents%2Fusingdekhoforthefirsttime.htm">Using Dekho for the 1st Time</a>&#8216;  and editing ..\Tomcat\webapps\Dekho\help\Documents\<em>usingdekhoforthefirsttime.htm </em>to embed some videos (I recommend <a href="http://www.screencast.com/">screencast.com</a>) showing your users how to achieve specific workflows in Dekho.  This will help your users understand how and what you can do with Dekho, specifically to your business.</p>
<p>Just remember &#8211; if you make modifications to files beneath the Dekho folder, to back these up.  When you upgrade, the Dekho folder is scrapped and a new one deployed.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/add-an-alert-bar-to-help-noobs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://content.screencast.com/users/SimonGIS/folders/Dekho/media/fea3d484-191a-43b5-9949-35cda16e94fe/AlertBar.mp4&amp;blurover=false" length="701682" type="video/mp4" />
		</item>
		<item>
		<title>Using Non Standard ArcGIS Server Instance Names in Dekho</title>
		<link>http://www.dekho.com.au/using-non-standard-arcgis-server-instance-names-in-dekho/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-non-standard-arcgis-server-instance-names-in-dekho</link>
		<comments>http://www.dekho.com.au/using-non-standard-arcgis-server-instance-names-in-dekho/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 00:28:16 +0000</pubDate>
		<dc:creator>John H</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3422</guid>
		<description><![CDATA[We have had a few examples where users have been unable to publish maps to Dekho where the ArcGIS Server Instance Name for a service is not the default arcgis name. For example Dekho would happily publish services from: http://machine/arcgis/services but would not publish from: http://machine/arcgis1/services (note the additional ‘1’ after arcgis): [...]]]></description>
			<content:encoded><![CDATA[<p>We have had a few examples where users have been unable to publish maps to Dekho where the ArcGIS Server Instance Name for a service is not the default arcgis name. For example Dekho would happily publish services from:</p>
<p><a href="http://lap-303647/arcgis/services">http://</a><a href="http://machine/arcgis/services">machine</a><a href="http://lap-303647/arcgis/services">/arcgis/services</a></p>
<p>but would not publish from:</p>
<p><a href="http://lap-303647/arcgis1/services">http://</a><a href="http://machine/arcgis/services">machine</a><a href="http://lap-303647/arcgis1/services">/arcgis1/services</a></p>
<p>(note the additional ‘1’ after arcgis):<span id="more-3422"></span></p>
<p>By default Dekho expects the following ArcGIS map service URL pattern: <a href="http://machine/arcgis/services">http://machine/arcgis/services</a>, however it is possible specify additional configurations if required. A list of ArcGIS url patterns is fed into Dekho through a file called &#8216;beans.xml&#8217;, and this can be modified to accommodate a non standard URL.</p>
<p>For example, to add the URL ‘/arcgis1/services’ to the list, the steps are as follows:</p>
<p>1.       Open &lt;tomcat_server&gt;\webapps\Dekho\WEB-INF\classes\beans.xml file in a text editor.</p>
<p>2.       Search for following text:</p>
<blockquote><p> &lt;!&#8211; Start.. RestURL static initialization &#8211;&gt;<br />
&lt;bean id=&#8221;restURLPattenInit&#8221;<br />
class=&#8221;au.com.esriau.dekho.config.RestURL&#8221;&gt;<br />
&lt;constructor-arg&gt;<br />
&lt;list&gt;<br />
&lt;value&gt;(/[Aa]rc[Gg][Ii][Ss])(/[rR][eE][sS][tT]/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
&lt;value&gt;(/[Mm][Dd][Ss])(/[rR][eE][sS][tT]/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
&lt;/list&gt;<br />
&lt;/constructor-arg&gt; &lt;constructor-arg&gt;<br />
&lt;list&gt;<br />
&lt;value&gt;(/[Aa]rc[Gg][Ii][Ss])(/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
&lt;value&gt;(/[Mm][Dd][Ss])(/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
&lt;/list&gt;<br />
&lt;/constructor-arg&gt; &lt;/bean&gt; &lt;!&#8211; End.. RestURL static initialization &#8211;&gt;</p></blockquote>
<p>3       Edit it to equal:</p>
<blockquote><p>&lt;!&#8211; Start.. RestURL static initialization &#8211;&gt;<br />
&lt;bean id=&#8221;restURLPattenInit&#8221;<br />
class=&#8221;au.com.esriau.dekho.config.RestURL&#8221;&gt;<br />
&lt;constructor-arg&gt;<br />
&lt;list&gt;<br />
&lt;value&gt;(/[Aa]rc[Gg][Ii][Ss])(/[rR][eE][sS][tT]/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
<strong>&lt;value&gt;(/[Aa]rc[Gg][Ii][Ss]1)(/[rR][eE][sS][tT]/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;</strong><strong><br />
</strong>&lt;value&gt;(/[Mm][Dd][Ss])(/[rR][eE][sS][tT]/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
&lt;/list&gt;<br />
&lt;/constructor-arg&gt; &lt;constructor-arg&gt;<br />
&lt;list&gt;<br />
&lt;value&gt;(/[Aa]rc[Gg][Ii][Ss])(/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
<strong>&lt;value&gt;(/[Aa]rc[Gg][Ii][Ss]1)(/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;</strong><strong><br />
</strong>&lt;value&gt;(/[Mm][Dd][Ss])(/[Ss][eE][rR][vV][iI][cC][eE][sS]/)&lt;/value&gt;<br />
&lt;/list&gt;<br />
&lt;/constructor-arg&gt; &lt;/bean&gt; &lt;!&#8211; End.. RestURL static initialization &#8211;&gt;</p></blockquote>
<p>&nbsp;</p>
<p>We have added in two new lines (essentially: ‘ArcGIS1/REST/SERVICES/’ and ‘ArcGIS1/SERVICES/’) using the required bracketed format.</p>
<p>4          Now restart the application server and you should be good to go.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/using-non-standard-arcgis-server-instance-names-in-dekho/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Map Tips to Display in Dekho</title>
		<link>http://www.dekho.com.au/getting-map-tips-to-display-in-dekho/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-map-tips-to-display-in-dekho</link>
		<comments>http://www.dekho.com.au/getting-map-tips-to-display-in-dekho/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 04:27:52 +0000</pubDate>
		<dc:creator>John H</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3438</guid>
		<description><![CDATA[This blog provides a quick methodology for getting Map Tips working in Dekho: Open up your configuration mxd and add in a vector layer (an SDE feature layer) For the layer go into Properties=&#62;Display and under Display Expression tick the option to ‘Show MapTips using the display expression’ Select the [...]]]></description>
			<content:encoded><![CDATA[<p>This blog provides a quick methodology for getting Map Tips working in Dekho:</p>
<ul>
<li>Open up your configuration mxd and add in a vector layer (an SDE feature layer)</li>
<li>For the layer go into Properties=&gt;Display and under Display Expression tick the option to ‘Show MapTips using the display expression’</li>
<li>Select the field you want to use as the basis of your Map Tip from the drop down (and create an expression if desired)</li>
<li>Click OK and test the Map Tips by hovering your cursor over the features in your vector layer</li>
<li>Save the configuration mxd to your config mxd directory and publish it to Dekho</li>
<li>Open your Dekho Map and you are good to go</li>
</ul>
<p><span id="more-3438"></span><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/Untitled3.png" rel="prettyPhoto[3438]"><img class="alignnone size-medium wp-image-3444" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/Untitled3-300x176.png" alt="" width="300" height="176" /></a></p>
<p>Should point out that as of v3.3 we are retiring &#8216;vector layers&#8217; in your Configuration MXD, and replacing the functionality they provided with the <a href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000020000000">Feature Service</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/getting-map-tips-to-display-in-dekho/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Profile and Viewshed tools</title>
		<link>http://www.dekho.com.au/profile-and-viewshed-tools/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=profile-and-viewshed-tools</link>
		<comments>http://www.dekho.com.au/profile-and-viewshed-tools/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 23:58:52 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Customisation]]></category>
		<category><![CDATA[Custom Tools]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3407</guid>
		<description><![CDATA[We have two new custom tools on the downloads gallery that make use of geoprocessing services, to add further intelligence to your Dekho maps. Surface Profile Tool Draw a polyline across your map, and it will bounce off the Esri sample service to return an elevation profile along that line. [...]]]></description>
			<content:encoded><![CDATA[<p>We have two new custom tools on the downloads gallery that make use of geoprocessing services, to add further intelligence to your Dekho maps.<span id="more-3407"></span></p>
<h3><a href="http://www.dekho.com.au/download-gallery/?did=16">Surface Profile Tool</a></h3>
<p>Draw a polyline across your map, and it will bounce off the<a href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService"> Esri sample service</a> to return an elevation profile along that line.</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/Profile1.png" rel="prettyPhoto[3407]"><img class="wp-image-3413 alignnone" title="Profile Tool" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/Profile1.png" alt="" width="558" height="301" /></a></p>
<p>&nbsp;</p>
<h3><a href="http://www.dekho.com.au/download-gallery/?did=19">Line of Sight Tool</a> (Viewshed analysis)</h3>
<p>Set a view distance &amp; click the map to bounce off the <a href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/Viewshed">Esri Sample service</a> to calculate the viewshed from that location.</p>
<p>&nbsp;</p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/Profile.png" rel="prettyPhoto[3407]"><img class="alignleft  wp-image-3410" title="Profile Tool" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/Profile-1024x666.png" alt="" width="614" height="400" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The code is included with both downloads and you can set up <a href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Guide_to_the_geoprocessing_service_examples/00930000003m000000/">similar services</a> and re-tweak the tools to point to your own.</p>
<p>Please bare in mind that custom tools are not supported but please direct issues/feedback about them to <a href="http://answers.dekhoforum.com/">Dekho Answers</a>.</p>
<p>Pending the popularity of tools, we will try to keep them up to date against newer versions of Dekho.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/profile-and-viewshed-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Streetview tools updated</title>
		<link>http://www.dekho.com.au/streetview-tools-updated/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=streetview-tools-updated</link>
		<comments>http://www.dekho.com.au/streetview-tools-updated/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 00:38:45 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Customisation]]></category>
		<category><![CDATA[Custom Tools]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Street View]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3392</guid>
		<description><![CDATA[We have re-compiled the original Streetview tool against v3.2 and it is available via the downloads gallery. &#160; &#160; &#160; &#160; &#160; &#160; This code originated from Mansour Raad, a Senior Software Architect at Esri. We  have also updated the Dual Maps tool Fixed a bug where it could not be dragged to [...]]]></description>
			<content:encoded><![CDATA[<p>We have re-compiled the original Streetview tool against v3.2 and it is available <a href="http://www.dekho.com.au/download-gallery/?did=5">via the downloads gallery.</a></p>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/StreetView_Screen.png" rel="prettyPhoto[3392]"><img class="alignleft size-medium wp-image-3402" title="StreetView_Screen" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/StreetView_Screen-300x177.png" alt="" width="300" height="177" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-3392"></span></p>
<p>This code <a href="http://thunderheadxpler.blogspot.com.au/2009/12/street-view-within-flex-api-for-ags.html">originated from Mansour Raad</a>, a Senior Software Architect at Esri.</p>
<p>We  have also <a href="http://www.dekho.com.au/download-gallery/?did=1">updated the Dual Maps tool</a></p>
<ul>
<li>Fixed a bug where it could not be dragged to far right hand side of Dekho</li>
<li>Added options to include Google Traffic and photo layers.</li>
<li>Ability to search embedded google map.</li>
</ul>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/DualMaps_Screen.png" rel="prettyPhoto[3392]"><img class="alignleft size-medium wp-image-3398" title="DualMaps_Screen" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/DualMaps_Screen-300x185.png" alt="" width="300" height="185" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The dedicated street view tool has the advantage in that as you pan around within the streetview, it updates the location and viewing angle to the Dekho map.</p>
<p>However, the Dual Maps tool does allow you to switch to full screen for a better look at whats happening on the ground.</p>
<p>For future versions we will try and mash the missing functionality into both tools.</p>
<p>Don&#8217;t be afraid of custom tools &#8211; give them both a whirl!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/streetview-tools-updated/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Embed Dekho in a Website using an IFrame</title>
		<link>http://www.dekho.com.au/embed-dekho-in-a-website-using-an-iframe/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=embed-dekho-in-a-website-using-an-iframe</link>
		<comments>http://www.dekho.com.au/embed-dekho-in-a-website-using-an-iframe/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 23:26:12 +0000</pubDate>
		<dc:creator>Simon J</dc:creator>
				<category><![CDATA[Customisation]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3384</guid>
		<description><![CDATA[Personally I think Dekho should be entitled for 100% width and height of your browser, so that you have maximum screen space to allow your users to work their magic.  However, for some situations you may want to nest Dekho within another website &#8211; perhaps make it look consistent with [...]]]></description>
			<content:encoded><![CDATA[<p>Personally I think Dekho should be entitled for 100% width and height of your browser, so that you have maximum screen space to allow your users to work their magic.  However, for some situations you may want to nest Dekho within another website &#8211; perhaps make it look consistent with the rest of your site, retaining the header &amp; footer for example.<span id="more-3384"></span></p>
<p>For this scenario, the easiest approach would be to make use of an <a href="http://www.w3schools.com/tags/tag_iframe.asp">IFrame</a>.</p>
<ol>
<li>Create a new page on your website.</li>
<li>Within the &lt;body&gt; tag, place the following:<br />
<em>&lt;iframe height=&#8221;90%&#8221; width=&#8221;90%&#8221; src=&#8221;http://&lt;InsertHostName&gt;:8080/Dekho/&#8221;&lt;/iframe&gt;</em></li>
</ol>
<div><em><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/ea_dekho.png" rel="prettyPhoto[3384]"><img class="alignright size-full wp-image-3386" title="ea_dekho" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/ea_dekho.png" alt="" width="621" height="468" /></a></em></div>
<p>&nbsp;</p>
<p><a href="http://stackoverflow.com/questions/362730/are-iframes-considered-bad-practice">Should you use an IFrame</a>?  For the above scenario, I do not think there are any drawbacks to using an IFrame to embed Dekho within your main website.  The IFrame is still about in HTML5, and it is a very easy way to embed Dekho into your main website.</p>
<p>The alternative approach is to either edit the Dekho.jsp page, to include a header/footer, or better still &#8211; to separate our the required Javascript from the Dekho.jsp and reference it from your main web page, and make use of <a href="http://code.google.com/p/swfobject/">swfObject </a>to embed Dekho directly into your code.</p>
<p>Remember you can also tweak if the sidebar is expanded on initial load with <a href="http://www.dekho.com.au/change-sidebar-behaviour-with-start-tab-apptype/">the use of start.tab</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/embed-dekho-in-a-website-using-an-iframe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Esri Australia Dev Meetup – Melbourne</title>
		<link>http://www.dekho.com.au/esri-australia-dev-meetup-melbourne/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=esri-australia-dev-meetup-melbourne</link>
		<comments>http://www.dekho.com.au/esri-australia-dev-meetup-melbourne/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 00:50:24 +0000</pubDate>
		<dc:creator>John H</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3369</guid>
		<description><![CDATA[Esri Australia are pleased to announce the launch of our first Dev Meet Up group, which is to be established in Melbourne. This Dev Meet Up is a social gathering for developers to discuss geospatial technologies, complementary third-party tools, and development platforms (e.g., Silverlight, Java, Flex, JavaScript) that are supported by [...]]]></description>
			<content:encoded><![CDATA[<div>
<p><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/global_22469538.png" rel="prettyPhoto[3369]"><img class="alignnone size-thumbnail wp-image-3370" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/global_22469538-150x150.png" alt="" width="150" height="150" /></a></p>
<p>Esri Australia are pleased to announce the launch of our first Dev Meet Up group, which is to be established in Melbourne.<span id="more-3369"></span></p>
<p>This Dev Meet Up is a social gathering for developers to discuss geospatial technologies, complementary third-party tools, and development platforms (e.g., Silverlight, Java, Flex, JavaScript) that are supported by Esri. Presentations run the gamut of our community: from Web development to mobile location development for iOS, Android and Windows Phone 7 to automating tasks with Python. Developers of all levels of expertise are welcome, from seasoned GIS professionals to those new to geospatial development. At these meetups, you can:</p>
</div>
<div>
<ul>
<li><strong>Demonstrate your application or framework.</strong></li>
<li><strong>Present an interesting concept or idea.</strong></li>
<li><strong>Share your experiences.</strong></li>
<li><strong>Connect with other developers.</strong></li>
</ul>
<p>Sign-up for a Lightning Talk! You can also submit a topic for a 10-minute lightning presentation. There are generally only time for 4 per meetup so be sure to submit them as soon as possible! Keynote speakers are also welcome.</p>
<p>So go ahead and join the group and we will subsequently update you with details of the first meet up (planned for May 2012): <a href="http://www.meetup.com/ESRI-Australia-Dev-Meetup-Melbourne/">http://www.meetup.com/ESRI-Australia-Dev-Meetup-Melbourne/</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/esri-australia-dev-meetup-melbourne/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New logo for Apache Flex</title>
		<link>http://www.dekho.com.au/new-logo-for-apache-flex/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-logo-for-apache-flex</link>
		<comments>http://www.dekho.com.au/new-logo-for-apache-flex/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 02:13:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3359</guid>
		<description><![CDATA[The logo contest for the new Apache Flex logo has a slick new logo &#8211; congratulations to Adrian Knopik &#38; Tomasz Maciag of Fuse Collective. If you want to follow the Apache Flex project and get involved, check this page:http://incubator.apache.org/flex/ &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>The logo contest for the new <a href="http://incubator.apache.org/flex/">Apache Flex</a> logo has a slick new logo &#8211; congratulations to Adrian Knopik &amp; Tomasz Maciag of <a href="https://plus.google.com/110106254054698446288/posts">Fuse Collective</a>.</p>
<p><img class="size-full wp-image-3360 alignnone" style="border-style: initial; border-color: initial;" title="apache_flex_logo_3d" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2012/02/apacheflex_fc.jpg" alt="" width="500" height="298" /></p>
<p><span id="more-3359"></span></p>
<p>If you want to follow the Apache Flex project and get involved, check this page:<a href="http://incubator.apache.org/flex/" target="_blank">http://incubator.apache.org/flex/</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/new-logo-for-apache-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>High Quality Printing with ArcPy</title>
		<link>http://www.dekho.com.au/high-quality-printing-with-arcpy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=high-quality-printing-with-arcpy</link>
		<comments>http://www.dekho.com.au/high-quality-printing-with-arcpy/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 12:40:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[ArcPy]]></category>
		<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3033</guid>
		<description><![CDATA[With some minor tweaks to the existing ArcPy print sample for Dekho, you can point the script at your source data as opposed to the map services that have references to the source data. This not only improves the quality (as the map services &#8216;rasterise&#8217; the raw data), but also [...]]]></description>
			<content:encoded><![CDATA[<p>With some minor tweaks to the existing ArcPy print sample for Dekho, you can point the script at your source data as opposed to the map services that have references to the source data.</p>
<p>This not only improves the quality (as the map services &#8216;rasterise&#8217; the raw data), but also dramatically speeds up the process.</p>
<p>&nbsp;</p>
<p>For a<strong> 600DPI</strong> print at <strong>A1</strong> using the standard ArcPy print sample for Dekho (via map services) = <span style="text-decoration: underline;">1 minute</span></p>
<p style="text-align: center;"><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2011/11/StandardArcPySample.png" rel="prettyPhoto[3033]"><img class="aligncenter size-full wp-image-3038" title="StandardArcPySample" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2011/11/StandardArcPySample.png" alt="" width="661" height="248" /></a></p>
<p> <span id="more-3033"></span></p>
<p>Same again, but the ArcPy pointing to the data in a local File-GDB = <span style="text-decoration: underline;"><strong>20s</strong></span></p>
<p style="text-align: center;"><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2011/11/HQ_ArcPySample.png" rel="prettyPhoto[3033]"><img class="aligncenter size-full wp-image-3039" title="HQ_ArcPySample" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2011/11/HQ_ArcPySample.png" alt="" width="651" height="264" /></a></p>
<p>Please see this screen-cast on how to make the necessary changes:<br />
<iframe src="http://player.vimeo.com/video/32122381?title=0&amp;byline=0&amp;portrait=0" frameborder="0" width="500" height="375"></iframe><br />
Another plus point, is that the output PDFs will also allow the end-user to turn layers on/off via the PDF.  You can also <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00sm00000007000000.htm">tweak the script</a> to allow users to identify attributes and get coordinates from the PDFs.</p>
<p style="text-align: center;"><a href="http://www.dekho.com.au/wordpress/wp-content/uploads/2011/11/ArcPySample.png" rel="prettyPhoto[3033]"><img class="aligncenter size-full wp-image-3035" title="ArcPySample" src="http://www.dekho.com.au/wordpress/wp-content/uploads/2011/11/ArcPySample.png" alt="" width="691" height="616" /></a></p>
<p style="text-align: left;">The code snippet you need to change within the existing ArcPy Sample for Dekho printing is this.  Watch the video for details on the changes.</p>
<pre><em># --------------------------------------------------------------------------------</em>
<em># Create a temporary print layout based on the map document given for printing,</em>
<em># the layout mxd and the visible layers selected for printing.</em>
<em># --------------------------------------------------------------------------------</em>
<em>def createPrintMap(sourcMxdPath, layoutMxdPath, visibleLayers):</em>
<em> arcpy.AddMessage("Creating print layout")</em>
<em> arcpy.AddMessage("Jerome Test")</em>

<em> # Load source MXD</em>
<em> #sourceMxd = arcpy.mapping.MapDocument(sourcMxdPath)</em>
<em> #sourceDf = arcpy.mapping.ListDataFrames(sourceMxd, "Layers")[0]</em>

<em> # Load print layout MXD</em>
<em> layoutMxd = arcpy.mapping.MapDocument(layoutMxdPath)</em>
<em> layoutDf = arcpy.mapping.ListDataFrames(layoutMxd, "Layers")[0]</em>

<em> lyrCount = 1</em>
<em> for lyr in arcpy.mapping.ListLayers(layoutMxd, "", layoutDf):</em>
<em> try:</em>
<em> visibleLayers.index(repr(lyrCount))</em>
<em> # Layer is in the visible layers list.</em>
<em> lyr.visible = True</em>
<em> except Exception:</em>
<em> lyr.visible = False</em>
<em> pass</em>
<em> #arcpy.mapping.AddLayer(layoutDf, lyr, "BOTTOM") # values could be AUTO_ARRANGE, BOTTOM, TOP</em>
<em> lyrCount += 1</em>

<em> # Get random filename to save the temporay print file.</em>
<em> printTemplate = getTempFile("DekhoPrint_","mxd")</em>

<em> # Save the template file in the scratch workspace.</em>
<em> layoutMxd.saveACopy(printTemplate)</em>

<em> return printTemplate</em></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/high-quality-printing-with-arcpy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Layer Description Tags: A Comprehensive List</title>
		<link>http://www.dekho.com.au/layer-description-tags-a-comprehensive-list/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=layer-description-tags-a-comprehensive-list</link>
		<comments>http://www.dekho.com.au/layer-description-tags-a-comprehensive-list/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 22:47:27 +0000</pubDate>
		<dc:creator>John H</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.dekho.com.au/?p=3324</guid>
		<description><![CDATA[I hope most of our Dekho users are aware of what can be done with Layer Description Tags; things like hiding a layer or legend, or making layers un-selectable.  If this concept is new to you – I will give you a quick explanation of how they are applied. 1)      [...]]]></description>
			<content:encoded><![CDATA[<p>I hope most of our Dekho users are aware of what can be done with Layer Description Tags; things like hiding a layer or legend, or making layers un-selectable.  If this concept is new to you – I will give you a quick explanation of how they are applied.<span id="more-3324"></span></p>
<p>1)       In your configuration .mxd, right click on one (or more) of your service layers (or groups of layers)</p>
<p>2)      Go into ‘Properties’ and under the ‘General’ tab write one or more tags into the ‘Description’ text box, for example: LEGEND_VISIBLE=FALSE; IDENTIFY=FALSE;</p>
<p>3)      Save the mxd and then publish it as a map through Dekho Admin.</p>
<p>4)       When you then view the map in Dekho, in this example your layer will display, but the legend will not be visible in the table of contents. Additionally the layer will be hidden from the Info tool.</p>
<p>NB: Make sure you include the ; at the end of each tag you use.</p>
<p>There are numerous tags, with descriptions spread across the Dekho Web Help, Dekho Blogs and Dekho TV. However, we have now compiled them into a single resource, complete with links to the relevant web pages. At present this exists as PDF document you can download (and print out for your wall!), but in the future it will make it into the main help. I hope this is helpful to you and please comment if you have any improvements.</p>
<p>Here is the Link to download the <a href="http://www.dekho.com.au/downloads/downloads/LayerDescriptionTagsV2.pdf">Download Layer Description Tag PDF </a></p>
<p><![if !IE]><iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fwww.dekho.com.au%2Fdownloads%2Fdownloads%2FLayerDescriptionTagsV2.pdf&amp;embedded=true" class="pdf" frameborder="0" style="height:600px;width:500px;border:0" width="500" height="600"></iframe><![endif]><!--[if IE]><object width="500" height="600" type="application/pdf" data="http://www.dekho.com.au/downloads/downloads/LayerDescriptionTagsV2.pdf" class="pdf ie">
<div style="width:500;height:600;text-align:center;background:#fff;color:#000;margin:0;border:0;padding:0">Unable to display PDF<br /><a href="http://www.dekho.com.au/downloads/downloads/LayerDescriptionTagsV2.pdf">Click here to download</a></div>
<p></object><![endif]--></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dekho.com.au/layer-description-tags-a-comprehensive-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.369 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-20 21:06:11 -->

