POST
|
Hey guys, We were using a tif extension, and have taken your suggestion to use some other extensions and file names, but to no avail. We'll keep trying things and let you know. Thanks again, Colin
... View more
07-22-2014
07:31 AM
|
0
|
0
|
655
|
POST
|
@Dan: We have read the help file and still cannot solve our issue. Which field name are you referring to? @Ian: No the raster is not being created in the hard drive. Thanks for the help.
... View more
07-21-2014
01:21 PM
|
0
|
4
|
655
|
POST
|
Point one has a 146 z-value and point two has a 121 z-value, both are in feet, and have a 6 foot observer offset. As a side note, I've run this process successfully before with different data, using the same parameters. Would the use of two viewer points possibly be an issue? Thanks, Colin
... View more
07-21-2014
01:00 PM
|
0
|
7
|
655
|
POST
|
I am running ArcMap 10.2 and have been trying to complete a fairly large viewshed analysis and have chosen to use the visibility tool in order to be able to produce an optional above-ground-level (AGL) layer which will be the focus of further analysis. The visibility is from a layer consisting of 2 points and the raster is a DSM. I have run several repetitions of this tool (both 3D Analyst & Spatial Analyst) and every time the process completes successfully producing a viable viewshed, but there is never any AGL to be found. There are no errors accompanying the completion of the tool either. Why would this be? How do I get the tool to produce an AGL? I have tried using only one viewer point as opposed to two without any difference in the outcome. Thanks, Colin
... View more
07-21-2014
12:07 PM
|
0
|
9
|
2940
|
POST
|
Figured things out so I figured I'd offer the pretty straight-forward solution here. Not sure why I couldn't find it to start, but simply put, you use the applyEdits() method on a feature layer, supplying it with a JSON formatted array of graphics/geometries and attributes. Here's the code: function showResults(featureSet) {
// Clear prior graphics
map.graphics.clear();
// Assign symbology to selected features
var parcelSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([98, 194, 204]), 2), new dojo.Color([98, 194, 204, 0.5]));
// Put result in array
var resultFeatures = featureSet.features;
if (resultFeatures.length > 0) {
// Empty out array for new features
features = [];
// Loop through each feature (here it's limited to one feature)
for (var i=0, il=resultFeatures.length; i<1; i++) {
var feature = resultFeatures;
feature.setSymbol(parcelSymbol);
var geometry = feature.geometry;
var parcelGraphic = new esri.Graphic(geometry);
var attr = {};
parcelGraphic.setAttributes(attr);
features.push(parcelGraphic);
}
} Hope it helps, Colin
... View more
06-28-2014
05:12 AM
|
0
|
0
|
210
|
POST
|
Greetings, I'm interested in passing a geometry object with certain attributes to an exposed feature class for committed edits. Essentially, I want to manually create a new feature without the template pane or editor widget. The geometry and attributes are both pre-defined, and the user just needs to select one pair from a group and push an "Add to Geodatabase" button. I'm reading through the documentation and I can't see a clear way to do this. I see that if I don't want the pane or widget, then I need to use a geometry service, but I don't see a "create feature" method, or something that accepts a geometry object or attributes. Thanks for the help, Colin
... View more
06-25-2014
04:30 AM
|
0
|
1
|
723
|
POST
|
So unfortunately, the problem has returned for IE6 and IE7 (and probably 8, though I haven't checked) because of the way it busts up z-indexing. I've tried various solutions spread out across the net, but none were successful... the most promising one had me set the parent div of the popup to a higher z-index than the rest, but that would be the map root, which ends up covering everything up... (button, logo, scale, etc.). All I really need to do is change the constraints on the maximum window... its set to a 10px border all around now... I would just need that to be 25 or 30 and I'd be golden. I'm not sure how to do that, though. Is there some way of overriding the onClick function of the maximize button/class? Any other suggestions? Thanks.
... View more
08-17-2011
07:21 AM
|
0
|
0
|
268
|
POST
|
Greetings, I'm implementing popup windows because I like their style, zoom function, and maximize window option... my app, though, has a logo and drop down menu in two corners... when I maximize my popup window, the logo floats above, as does the button, blocking the minimize and exit commands of the popup. Is there any way of setting the z-value of the popup? Or is there a way to alter the maximum dimensions? Thanks, DR
... View more
08-11-2011
06:09 AM
|
0
|
3
|
1095
|
POST
|
Thanks for the tip. My map is in a NAD83 projection with 2 different map services providing layers. I can't use your snippet in firebug because the map.__tileInfo is null... not surprising since both services are dynamic map services. I tried throwing this in there: var lods = [
{level: 0, scale: 1000000},
{level: 1, scale: 750000},
{level: 2, scale: 500000},
{level: 3, scale: 250000},
{level: 4, scale: 100000},
{level: 5, scale: 75000},
{level: 6, scale: 24000},
{level: 7, scale: 10000},
{level: 8, scale: 1000},
{level: 9, scale: 500}
]; But it didn't like that one bit... slider wouldn't work and I couldn't use my mouse to zoom in and out either... maybe because the resolution isn't included? Any ideas as to how to get that information? Would it be different for each map service? Thanks, DR
... View more
08-05-2011
08:05 AM
|
0
|
0
|
657
|
POST
|
Thanks for the tip... is there any way to change this? I'd like to use the cached service slider on my dynamic map server. Thanks, DR
... View more
08-04-2011
09:25 AM
|
0
|
0
|
657
|
POST
|
Greetings, The zoom slider that shows up in my map by default has two little boxes, with no "slider" in between them... see the attached screenshot for a visual. How can I get the normal zoom slider that I see on all of the samples? Thanks, DR
... View more
08-04-2011
08:37 AM
|
0
|
6
|
3328
|
POST
|
Greetings, I just figured out a technique to output the fields of many different layers (with different fields) into a datagrid from an info query... it seems to have decent performance, and so I thought I'd share it here, since I couldn't find a similar sample around. Also, it could be that this isn't the best way to go about this, and someone might have some critique. I set most of the identity parameters up when I construct my map service, as well setup an event handler for when a user clicks the map. When constructing the structure for the datagrid, I specify certain fields I want to hide from the user, as well as ensure a wide column for the "Notes" field, which I know typically contains large strings (Dojo does not recommend width="auto", as it isn't fully supported and can cause some funky errors). Further down the line, I check to see if the datagrid exists, and if it does, can just update the structure (to accommodate new fields) and store. Importantly, this is setup for identifying a single feature... to alter it for multiple features, I might just remove the allItems.slice(0,1) and tweak the graphics section to handle multiple geometries. With the single feature in mind, I added the grid.canSort function at the end to disable the column sorting... without this little bit, the column headers add an annoying little arrow on top of the label when clicked that throws the layout off a bit. Hope this helps some folks.
function constructLayers(){
fLayers = new esri.layers.ArcGISDynamicMapServiceLayer("http://server/ArcGIS/rest/services/features/MapServer");
allLayers.push({layer:fLayers,title:'Features'});
gsvc = new esri.tasks.GeometryService("http://server/ArcGIS/rest/services/Geometry/GeometryServer");
dojo.connect(map, "onClick", executeIdentityTask);
identityTask = new esri.tasks.IdentifyTask("http://server/ArcGIS/rest/services/features/MapServer");
identityParams = new esri.tasks.IdentifyParameters();
identityParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_TOP;
identityParams.tolerance = 6;
identityParams.width = map.width;
identityParams.height = map.height;
identityParams.returnGeometry = true;
}
function executeIdentityTask(evt){
map.graphics.clear();
identityParams.mapExtent = map.extent;
identityParams.geometry = evt.mapPoint;
identityTask.execute(identityParams, function(layerInfo){
displayInfo(layerInfo);
});
}
function displayInfo(layerInfo){
/* Graphics */
var symbol = new esri.symbol.SimpleMarkerSymbol();
var graphic = layerInfo[0].feature;
graphic.setSymbol(symbol);
map.graphics.add(graphic);
/* Datagrid */
var allItems = dojo.map(layerInfo, function(layerInfo){
return layerInfo.feature.attributes;
});
var items = allItems.slice(0, 1);
var data = {
items: items
};
var currentStore = new dojo.data.ItemFileReadStore({
data: data
});
var currentLayout = []
for (fieldName in items[0]) {
if (fieldName == "OBJECTID"||fieldName == "ROWGUID"|| fieldName == "Shape"){
var addField = {
field: fieldName, hidden: true
};
currentLayout.push(addField);
}
else if (fieldName == "NOTES"){
var addField = {
field: fieldName, width: "500px"
};
currentLayout.push(addField);
}
else{
var addField = {
field: fieldName
};
currentLayout.push(addField);
}
}
if (grid === null || grid === undefined) {
/* Create Grid */
grid = new dojox.grid.DataGrid({
store: currentStore,
structure: currentLayout
}, document.createElement('div'));
dojo.byId("gridPane").appendChild(grid.domNode);
grid.startup();
}
else {
/* Update Grid */
grid.setStructure(currentLayout);
grid.setStore(currentStore);
}
grid.canSort = function(){
return false;
}
} And to avoid identifying features in layers that are "visible" but turned off, I include a... identityParams.layerIds = visible; ...line in both the portion of my code that produces a layer checklist ("visible" being an array of those layers that are turned on), and the portion that updates the visibility. See examples of returning a visible layers array in the sample here... http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_dynamiclayerlist.html
... View more
07-29-2011
05:10 AM
|
0
|
0
|
408
|
POST
|
It was a working service... it turns out I was giving bad parameters. All is well now, thank you for the help. DR
... View more
07-27-2011
07:32 AM
|
0
|
0
|
442
|
POST
|
I stopped the script and entered the url it was pointing to in my browser... that took me to the ArcGIS Services page for the Geometry service. It lists the supported interfaces (REST and SOAP) and operations (all of them, including project.) I guess the one odd part (if it is even odd, I'm not sure) was when I entered the REST link, it gave me an essentially blank page (not so for the SOAP link). The attached screenshot shows what I mean. Thanks, DR
... View more
07-27-2011
05:09 AM
|
0
|
0
|
442
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|