|
POST
|
Matthew, It doesn't seem there are any features in the extent you're sending to the query for the large layer: Large: http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WAWFA_Large_test/FeatureServer/0/query? returnGeometry=true& where=1=1&outSr=4326& outFields=*& inSr=4326&geometry={"xmin":-88.11035156249999," ymin":43.100982876188546,"xmax":-88.08837890625," ymax":43.11702412135048," spatialReference":{"wkid":4326}}& geometryType=esriGeometryEnvelope& spatialRel=esriSpatialRelIntersects& geometryPrecision=4& maxAllowableOffset=0.00003328443215608169& f=geojson Small: http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WAWFA_Small_test/FeatureServer/0/query? returnGeometry=true& where=1=1&outSr=4326& outFields=*& inSr=4326&geometry={"xmin":-88.11035156249999," ymin":43.100982876188546,"xmax":-88.08837890625," ymax":43.11702412135048," spatialReference":{"wkid":4326}}& geometryType=esriGeometryEnvelope& spatialRel=esriSpatialRelIntersects& geometryPrecision=4& maxAllowableOffset=0.00003328443215608169& f=geojson That extent looks to be around Milwaukee. The small layer has features here, it seems, but the large one does not... For example, the small dataset has TARGET_FID 34921 - this is not found in the large ds when I query for it. I also tried to find where [Name] = "City of Butler-Menomonee River" - this is not found in the large ds. I further checked where [HUC12] = "040400030403" - this wasn't found, either, in the large ds.
... View more
12-11-2015
12:17 PM
|
0
|
1
|
1474
|
|
POST
|
I forgot the last element in the array - I went ahead and updated my answer so it accounts for that. You can make it more elegant, but it should output what you need: [[12.523986568755383,57.71127941662247], [12.45961803332399,57.635773125999144], [12.436624888552302,57.576614311073236], [12.436624888552302,57.576614311073236]]
... View more
12-11-2015
09:54 AM
|
1
|
3
|
5058
|
|
POST
|
You can do this with regex, but, since you aren't familiar with it, it may cause more pain than good. There's an old saying, "I once had a problem I thought I'd solve with regex... Now I have two problems!" That being said, regex is really powerful, just remember when to use it, when not to use it, and always use wisely! You can Google regex testers online for your flavor of regex, e.g. Python, .NET, etc. to help you proof-of-concept something. In the meantime, try something like this: Pre-logic: def updateValue(value):
valueArry = value.split(" ")
newValueArry = []
retVal = "["
s = " "
for latLong in valueArry[:-1]:
pairArry = latLong.split(",")
newPair = pairArry[1] + "," + pairArry[0]
newValueArry.append("[" + newPair + "],")
else:
pairArry = latLong.split(",")
newPair = pairArry[1] + "," + pairArry[0]
newValueArry.append("[" + newPair + "]")
retVal = retVal + s.join(newValueArry)
return retVal + "]" Polygon = updateValue( !Polygon! ) UPDATED...
... View more
12-11-2015
09:43 AM
|
1
|
4
|
5058
|
|
POST
|
Can you create a .chm and reference that? You can use something like RoboHelp or HelpNDoc. What about documenting in the Service Editor? http://server.arcgis.com/en/server/latest/publish-services/windows/documenting-a-geoprocessing-service.htm
... View more
12-09-2015
02:35 PM
|
0
|
0
|
897
|
|
POST
|
I did some quick debugging: Line 299 (pretty-printed in http://js.arcgis.com/3.15/esri/dijit/FeatureTable.js😞 l ? B ? b.push(this._generateDateTimeEditorColumn(a, this._layerInfo._fieldInfo )) : We don't seem to ever get into _generateDateTimeEditorColumn, which is the only place I found tapping into the formatter. Instead, we go into _generateDateTimeColumn, which only has a reference to timeEnabled. Seems like it's missing functionality... But, that had me wondering, the API does specifically say: Object defining the date options specifically for formatting date and time editors.
... View more
12-09-2015
01:31 PM
|
0
|
1
|
2317
|
|
POST
|
Something does appear to happen when you enable time: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FeatureTable without map</title>
<link rel="stylesheet" href="https://community.esri.com//js.arcgis.com/3.15/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="https://community.esri.com//js.arcgis.com/3.15/esri/css/esri.css">
<script src="//js.arcgis.com/3.15/"></script>
<style>
html, body, #map{
width:100%;
height:100%;
margin:0;
padding:0;
}
</style>
<script>
var map;
require([
"esri/IdentityManager",
"esri/layers/FeatureLayer",
"esri/dijit/FeatureTable",
"dojo/dom-construct",
"dojo/dom",
"dojo/parser",
"dojo/ready",
"dojo/on",
"dojo/_base/lang",
"dijit/registry"
], function (
IdentityManager, FeatureLayer, FeatureTable,
domConstruct, dom, parser, ready, on,lang,
registry
) {
parser.parse();
ready(function(){
// Create the feature layer
var myFeatureLayer = new FeatureLayer("https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Apple_Stores/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["Store", "Opening_Date"],
visible: true,
id: "fLayer"
});
myTable = new FeatureTable({
"featureLayer" : myFeatureLayer,
"dateOptions": {"datePattern" : "yyyyMMdd", "timeEnabled" : true, "timePattern": "HH:mm:ss"}
}, 'myTableNode');
myTable.startup();
});
});
</script>
</head>
<body class="claro esri">
<p>
<i>The FeatureTable dijit supports tables with lots of features, with the table growing as you scroll.</i>
</p>
<div id="myTableNode"></div>
</body>
</html> Formatting still isn't right, though...
... View more
12-09-2015
01:01 PM
|
0
|
3
|
2317
|
|
POST
|
According to the API documentation, it doesn't say anything about it being in beta. I saw the thread you mentioned - FeatureTable dijit appears to ignore the dateOptions - Kelly Hutchins said the doc would be updated - that was back around API v3.12 As far as the documentation is concerned, it should work!
... View more
12-09-2015
12:38 PM
|
1
|
6
|
2317
|
|
POST
|
If you just need to get some data, you could load the file gdb from the Census into ArcMap. Since you can't do "top n"/subqueries in a file gdb (you can in a personal gdb), I created a script that should get what you need: fc = "ACS_11_5YR_BG_36_NEW_YORK"
popField = "B01001e1"
fl = arcpy.MakeFeatureLayer_management(fc, "top10pre", "STATEFP = '36' AND COUNTYFP IN ('005','047','061','081','085')")
records = [row[0] for row in arcpy.da.SearchCursor(fl, popField)]
topTen = sorted(records)[-10:]
query = "\"{0}\" in {1}".format(popField, tuple(topTen))
arcpy.MakeFeatureLayer_management(fl, "top10population", query) This will output two layers - the last one will have what you need "top10population": This will give you the top ten block groups, considering only those block groups that are within NYC (the five NYC boroughs - see the COUNTYFP for the fips values).
... View more
12-09-2015
10:11 AM
|
1
|
0
|
1922
|
|
POST
|
When you say custom blocks - are you not using the blocks provided by the Census? You can easily get this info from them: http://www2.census.gov/geo/tiger/TIGER_DP/2011ACS/2011_ACS_5YR_BG_36.gdb.zip Here's the metdata: http://www2.census.gov/geo/docs/maps-data/data/tiger/prejoined/ACSMetadata2011.txt You would want to look at B01001e1, which is total population.
... View more
12-09-2015
08:09 AM
|
1
|
2
|
1922
|
|
POST
|
You may want to contact Esri technical support. Have you tried turning-off background geoprocessing as a workaround?
... View more
12-09-2015
07:39 AM
|
1
|
0
|
1590
|
|
POST
|
Well, that's a loaded question. What is your pre-defined area type? County? Zip? Census Block/Tract? Do you just need to know the fips codes/names for the top 10 areas and their population and/or do you need to see it on a map?
... View more
12-09-2015
07:31 AM
|
0
|
4
|
1922
|
|
POST
|
Jim, That's why I grab just the map content and add it to my own HTML print template (header and footer). My maps are embedded within a web app - just a small portion of the app are maps, but users can export just the map using the ArcGIS print service, or they can scrape only the map using the browser print function. Basically, you'd grab the container HTML and insert into a blank print template pop-up, then call the JS print functions. You can set it up just right so the pop-up only allows printing: http://stackoverflow.com/questions/6460630/close-window-automatically-after-printing-dialog-closes
... View more
12-09-2015
05:56 AM
|
0
|
1
|
2143
|
|
POST
|
It's not an image - it would be a printout from the browser using a scape of the map's HTML - the browser might support saving as an image though. For instance, in Chrome, I can send the printout as an image to MS OneNote.
... View more
12-08-2015
02:03 PM
|
0
|
0
|
2045
|
|
POST
|
Let me add an addendum - the quotes I gave were for commercial enterprises. As I understand, if you are an NGO or governmental organization, you may fall under a completely different pricing scheme... it's best to contact Esri directly.
... View more
12-08-2015
09:51 AM
|
0
|
1
|
2916
|
|
POST
|
If you're licensed for the product, there shouldn't be any issue with doing this - you're just printing the page. You may want to have a look at this: Is the ArcGIS Server JavaScript API free to use? - Geographic Information Systems Stack Exchange
... View more
12-08-2015
09:47 AM
|
0
|
2
|
2045
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|