|
POST
|
I think I got it...I was using a normal text Element not a Dynamic text element...
... View more
05-15-2018
07:18 AM
|
0
|
20
|
3344
|
|
POST
|
What kind of Element did you add to your layout? I added a Text element (Which needs to have a caption). Did you add some other element?
... View more
05-15-2018
07:09 AM
|
0
|
0
|
3344
|
|
POST
|
Don't know where to put this question. I created an mxd and then created a print service that I put up in my ArcGIS Server. I then created an AGOL web application and referenced this print service....This works great. My question is can I add some sort of user input parameter to allow them to create a title for the map when they use the print service via ArcGIS online web app? Right now I can only hard code a title in the layout before it goes to print service. I am using ArcGIS desktop 10.5.1 I added 3 Custom Text Elements and gave them names I use "Export Web Map" I then Use "Get Layout Templates Info" In the Results tab I right click and publish "Export Web Map" Making sure to "Add Result" of the Get Layouts Templates Info Result while in the Service Editor The only other thing I did in the Service Editor was change the Execution Mode When I view the "Get Layouts Templates Info" via the rest end point I can see the 3 CustomTextElements (see below image) But when I go to print I dont see the option to add text to these Custom Text Elements in the Advanced Window. I dont see anywhere in the advanced settings to add test to these Custom Text Elements... Anyone have any ideas why this is not working? Or did I do something wrong?
... View more
05-15-2018
04:55 AM
|
0
|
25
|
7070
|
|
POST
|
I figured out a solution that worked for me....don know if this is the only way but it worked and sick of trying... I used Kernel Density and created a Raster I then classified it to 10 classes I then did a Reclassify on the Raster which actually created a table on the raster. I then was able to go Raster to Polygon directly This created all the proper rings based on the reclassified value.
... View more
04-19-2018
06:28 AM
|
3
|
0
|
5117
|
|
POST
|
I have a point file that is spread over the state I want to create a heat map based on a count field in the point data. From there I want to create a polygon layer that shows the rings. What I want is a value associated with the rings themselves...say 1-5 depending on the heat map/ kernel density representation. I can then use those polygon rings for search/select boundaries I tried to use Kernel density I then try to convert to polygon and says invalid GP Type. I used the int function in tools and it only creates a single record....Very confused.. Any thoughts?
... View more
04-18-2018
12:41 PM
|
0
|
3
|
6350
|
|
POST
|
It says that SQL Expressions were implemented to better support bla bla bla.....I read it...Better support NOT will work with these file types and not these....would be nice if the text and documentation was a bit more specific. A simple line - Will not work with gdb or shapefiles. 7 words eliminates all this confusion.
... View more
03-30-2018
12:16 PM
|
1
|
2
|
1308
|
|
POST
|
my example was the most simplistic I could think of...why does it fail with SQL Expression, which is the main question in this thread... I was able to get it working in Python3
... View more
03-30-2018
11:17 AM
|
0
|
1
|
2985
|
|
POST
|
This is ArcGIS Pro 2.1.2 I am simply hitting a shapefile - I havent tried on a GDB or SDE FC
... View more
03-30-2018
10:18 AM
|
0
|
3
|
2985
|
|
POST
|
That's guys....both do the trick....have to pick one for the answer....I like Dan's simpler approach but both answers are greatly appreciated....Still confused why simply SQL statements are not working in the SQL Expression Type Somethin such as the below is failing FieldName = 'TestingValue' FieldName= "TestingValue"
... View more
03-30-2018
05:38 AM
|
0
|
5
|
2985
|
|
POST
|
I am trying to concatenate a couple XY values I have the X and Y fields (Double data type) I created a Test field (string) CONCAT(X, Y) Then simply tried to calculate a simple test field NAME - this is a field name I get this error: ERROR002536 Table Jurisdictions does not support or is in a state to support SQL Expressions Any thoughts? Can do this in ArcMap in 2 seconds...ArcPro....ugggggg
... View more
03-29-2018
10:59 AM
|
0
|
15
|
5680
|
|
POST
|
went to ArcGIS Pro and things are working....but layout methods are very cumbersome and take twice the time....ArcGIS Pro is horrible with graphics and grouping...can do this in desktop 200% faster...have a complicated layout with many insets and took all day....1/2 of time waiting for an I7, SSD, 16gb ram to figure out what I was doing...thumbs down to ArcPro
... View more
03-24-2018
02:24 PM
|
1
|
0
|
5315
|
|
POST
|
I am trying to create an inset map. I create a new data frame and it appears in the map - Great I add layers and they show up in the new dataframe - Great I now want to make this round. I go into the Frame Properties and set the border and background "Rounding" to 100% It look good in the layout When I look at it in Print Preview or when I print it there is a square box from the original square frame? I have this sitting over background data and I get this ugly output... How do I get rid of the white square? attached is the image from print Preview...
... View more
03-22-2018
01:53 PM
|
0
|
4
|
7090
|
|
POST
|
Thanks Robert ...I knew I was on the correct path regarding the symbology for the returned geometry....
... View more
03-13-2018
05:48 AM
|
0
|
0
|
2033
|
|
POST
|
Yea the polygons are really small...I set the buffer geometry to 10 miles and still not selecting the Polygons....well it might be but they are not showing up selected in the map. Thats why I was thinking it might be the items selected graphic???? Where the example is querying Points and displaying point graphics. I am querying polygons and showing polygons...Just not sure how to adapt the code for this.
... View more
03-09-2018
10:52 AM
|
0
|
3
|
2033
|
|
POST
|
I am trying the below. The example works fine.... ArcGIS API for JavaScript Sandbox I put in my Map Service and it does not work???? I stripped the return results and calculation to the html out of the example link above...but the below code works with the ESRI map service but not mine. The only difference I see is that my Map Service is a polygon...does that matter. Why is my Polygon map service not showing the results in the buffer.... Any thoughts? <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Select with feature layer</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.23/dijit/themes/tundra/tundra.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.23/esri/css/esri.css">
<style>
html, body, #mapDiv {
padding: 0;
margin: 0;
height: 100%;
}
#messages{
background-color: #fff;
box-shadow: 0 0 5px #888;
font-size: 1.1em;
max-width: 15em;
padding: 0.5em;
position: absolute;
right: 20px;
top: 20px;
z-index: 40;
}
</style>
<script src="https://js.arcgis.com/3.23/"></script>
<script>
var map;
require([
"esri/map", "esri/layers/FeatureLayer",
"esri/tasks/query", "esri/geometry/Circle",
"esri/graphic", "esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/renderers/SimpleRenderer",
"esri/config", "esri/Color", "dojo/dom", "dojo/domReady!"
], function(
Map, FeatureLayer,
Query, Circle,
Graphic, SimpleMarkerSymbol,
SimpleLineSymbol, SimpleFillSymbol, SimpleRenderer,
esriConfig, Color, dom
) {
// Use a proxy page if a URL generated by this page is greater than 2000 characters
//
// This should not be needed as nearly all query & select functions are performed on the client
//esriConfig.defaults.io.proxyUrl = "/proxy/";
map = new Map("mapDiv", {
basemap: "streets",
center: [-95.249, 38.954],
zoom: 14,
slider: false
});
// Add the census block points in on demand mode. An outfield is specified since it is used when calculating the total population falling within the one mile radius.
var featureLayer = new FeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0",{
outFields: ["*"]
});
// Selection symbol used to draw the selected census block points within the buffer polygon
var symbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CIRCLE,
12,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_NULL,
new Color([247, 34, 101, 0.9]),
1
),
new Color([207, 34, 171, 0.5])
);
featureLayer.setSelectionSymbol(symbol);
// Make unselected features invisible
var nullSymbol = new SimpleMarkerSymbol().setSize(0);
featureLayer.setRenderer(new SimpleRenderer(nullSymbol));
map.addLayer(featureLayer);
var circleSymb = new SimpleFillSymbol(
SimpleFillSymbol.STYLE_NULL,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SHORTDASHDOTDOT,
new Color([105, 105, 105]),
2
), new Color([255, 255, 0, 0.25])
);
var circle;
// When the map is clicked create a buffer around the click point of the specified distance
map.on("click", function(evt){
circle = new Circle({
center: evt.mapPoint,
geodesic: true,
radius: 1,
radiusUnit: "esriMiles"
});
map.graphics.clear();
var graphic = new Graphic(circle, circleSymb);
map.graphics.add(graphic);
var query = new Query();
query.geometry = circle.getExtent();
// Use a fast bounding box query. It will only go to the server if bounding box is outside of the visible map.
featureLayer.queryFeatures(query, selectInBuffer);
});
function selectInBuffer(response){
var feature;
var features = response.features;
var inBuffer = [];
// Filter out features that are not actually in buffer, since we got all points in the buffer's bounding box
for (var i = 0; i < features.length; i++) {
feature = features[i];
if(circle.contains(feature.geometry)){
inBuffer.push(feature.attributes[featureLayer.objectIdField]);
}
}
var query = new Query();
query.objectIds = inBuffer;
// Use an objectIds selection query (should not need to go to the server)
featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, function(results){
});
}
});
</script>
</head>
<body>
<span id="messages">Click on the map to select census block points within 1 mile.</span>
<div id="mapDiv"></div>
</body>
</html>
... View more
03-09-2018
10:14 AM
|
0
|
5
|
2140
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|