POST
|
Is is possible to harvest metadata from OpenData portals hosted on ArcGIS Online, using some sort of standard e.g. csw. I could write some sort of scraper but that just seams silly having to resort to that. Is it possible to harvest the metadata fr
... View more
11-17-2016
12:43 PM
|
0
|
0
|
332
|
IDEA
|
I would like to have the ability to harvest metadata using csw or some sort of standard protocol from any OpenData portal that is hosted on ArcGIS Online. The ability to aggregate data from these portals would be great. If there is then please document it well.
... View more
11-16-2016
06:58 PM
|
27
|
0
|
670
|
POST
|
Thanks that is really helpful. I did also notice in the blog post that there was suppose to be an aditional package with scipy etc. that you could download from ESRI that would work nicely with with ArcPy I guess that has also quietly died a death for now as well. There must have been some issues.
... View more
07-19-2015
03:25 PM
|
0
|
0
|
836
|
POST
|
I thought I would install 10.3.1 to try it out and went looking for the python modules pandas and scipy. Tried importing them no luck. Where are they? There has been a lot of talk of them being in this release and I was looking forward to them. It was announced that they would be installed as standard at the dev summit and in this blog post: http://blogs.esri.com/esri/esri-insider/2014/11/05/strengthening-the-link-between-gis-and-science/ Does anyone know what the story is with these python third party modules.
... View more
07-17-2015
02:31 AM
|
0
|
8
|
5078
|
POST
|
We found the problem with our RHEL 6 server it was an incorrectly configured /etc/host file. Which as the previous person mentioned it was a server name resolving issue. Andrew Rae
... View more
10-25-2012
02:37 PM
|
0
|
0
|
382
|
POST
|
We are having exactly the same issue but with a Red Hat Linux 6 Server. As of yet we do no have a solution but when we do I will post something.
... View more
10-25-2012
11:46 AM
|
0
|
0
|
382
|
POST
|
Hi thanks for the answers Jay and Tom they both appear to answer my question. After reading some of the dojo documentation I came up exactly with what Jay had by declearing the function with the button in the html.
<button data-dojo-type="dijit.form.ToggleButton" data-dojo-props='
iconClass:"dijitCheckBoxIcon",
label:"Imagery",
checked:"true",
onChange:function(checked){ layerVisibility(mapLayers[0]);}'>
</button>
Thanks for your code as well Tom, it looks as if it would do the trick by listening for the event with dojo.connect. I have yet to try it though and is along the lines of the following tutorial. http://dojotoolkit.org/documentation/tutorials/1.6/checkboxes/ I guess one advantage with this approach is that it would seprate out the Javascript from the HTML a little more which I like. I think it was the annoymous functions that tripped me up I really need to do some more reading about dojo. Thanks once again Andy Rae Now where is that checkbox
... View more
04-30-2012
06:47 PM
|
0
|
0
|
728
|
POST
|
Hi I am new to this dojo stuff and I have been trying to use a toggle button to switch a layer off and on. but I am having great difficulty in getting the toggle button to trigger any event. I spent several days of getting not very far. I have created a button and give it an id so I can hook into it using the dijit.byId method. <button id="imagery" data-dojo-type="dijit.form.ToggleButton" data-dojo-props="iconClass:'dijitCheckBoxIcon', checked: true">Imagery</button> I then put the dojo.connect listner in the init function. dojo.connect(dijit.byId('imagery'), 'onChange', layerVisibility(mapLayers[0])); Although when I do this the layer never loads and the button never works. Here is an example of how I am using it within a web page it is using some esri sample map services. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>FeatureLayer On Demand</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dijit/themes/claro/claro.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
</style>
<script type="text/javascript">djConfig = { parseOnLoad:true };</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8"></script>
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("esri.layers.FeatureLayer");
dojo.require("dijit.form.Button");
dojo.require("dijit.Dialog");
var mapLayers = []; //array of layers in client map
var map;
function init() {
var extent = new esri.geometry.Extent({"xmin":-96.6063,"ymin":38.3106,"xmax":-96.4764,
"ymax":38.3689,"spatialReference":{"wkid":4269}});
map = new esri.Map("map", { extent: esri.geometry.geographicToWebMercator(extent)});
dojo.connect(map, "onLoad", initOperationalLayer);
var imagery = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer");
map.addLayer(imagery);
mapLayers.push(imagery);
}
function initOperationalLayer(map) {
var content = "<b>Type</b>: ${ftype}" +
"<br /><b>Code</b>: ${fcode}";
var infoTemplate = new esri.InfoTemplate("Rivers", content);
var featureLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/MapServer/1",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate: infoTemplate
});
map.addLayer(featureLayer);
map.infoWindow.resize(150,105);
mapLayers.push(featureLayer); //this client side map layer is the maps graphics layer
dojo.connect(dijit.byId('imagery'), 'onChange', layerVisibility(mapLayers[0]));
}
function layerVisibility(layer) {
(layer.visible) ? layer.hide() : layer.show();
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div style="position:relative;width:100%;height:100%;">
<div id="map" style="border:1px solid #000;width:100%;height:100%;">
<div style="position:absolute; left:100px; top:10px; z-Index:999;">
<button id="imagery" data-dojo-type="dijit.form.ToggleButton" data-dojo-props="iconClass:'dijitCheckBoxIcon', checked: true">Imagery</button>
<button dojoType="dijit.form.Button" onClick="layerVisibility(mapLayers[1]);">Hydrology</button>
</div>
</div>
</div>
</body>
</html>
I have also tried declearing a dojo/method when setting up the toggle button as well but this did not work although I think this might be an old way of doing things. As well as specifying a function with the toggle button delcaration in a fit of desperation. e.g. <button id="imagery" data-dojo-type="dijit.form.ToggleButton" onChange="layerVisibility(mapLayers[0]);" data-dojo-props="iconClass:'dijitCheckBoxIcon', checked: true">Imagery</button> I susspect I need to maybe grab the map div first using dijit.byId('map') and then grab the toggle button by it's id since the toggle button is within the map div. Thanks Andy Rae
... View more
04-27-2012
02:07 AM
|
0
|
3
|
5251
|
POST
|
I think the reason you cannot alter the position the normal way is that it is implemented using different classes. When you inspect the element with fire bug you will get the following code with the small slider. <div id="mapDiv_zoom_slider" class="esriSimpleSlider esriSimpleSliderVertical" style="z-index: 30;"> Compare this with the first line of the default slider. Which is set up within a table and uses another set of classes <table id="map_Div_zoom_slider" class="dijit dijitReset dijitSlider You maybe able to alter the location by changing the style for the esriSimpleSlider with css. My knowledge of css is not crash hot so I maybe wrong. Andy Rae
... View more
04-25-2012
01:05 PM
|
0
|
0
|
554
|
POST
|
Thanks rmill Wonderful this looks as if it will do the trick. I found an example of the code in the following code sample. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_resize.html This example uses the full javascript library instead of the compact one unlike the other examples using the small sliderstyle. I am not sure how well documented it is. Thanks Andy Rae
... View more
04-24-2012
04:07 PM
|
0
|
0
|
554
|
POST
|
Hi all Maybe this is a bit of a newbie question but... I would like to change the default map_zoom_slider to the esriSimpleSlider which is the default in compact javascript library. I need to use the standard library as I am uses image services in my application (they do not appear to be supported using the compact JavaScript library). I am hoping t should be easy to do. Thanks Andy Rae
... View more
04-23-2012
02:34 PM
|
0
|
8
|
1491
|