Comments (9)
Investigate possibility of removing services once cache is complete.
https://developers.arcgis.com/javascript/jssamples/layers_webtiled_one.html
from enviroatlas.
A few notes and additional links:
https://developers.arcgis.com/javascript/jssamples/layers_web_tiled.html
(Esri is an option for the tiling scheme - so no need to change to open
source looks like we just copy/export up the tiles (exploded not compact)
to production)
https://developers.arcgis.com/javascript/jssamples/layers_custom_tiled.html
https://developers.arcgis.com/javascript/jssamples/layers_webtiled_many.html
On Wed, Dec 23, 2015 at 9:48 AM, Torrin Hultgren [email protected]
wrote:
Investigate possibility of removing services once cache is complete.
—
Reply to this email directly or view it on GitHub
#64 (comment)
.
Barbara Rosenbaum
Innovate!, Inc.
Office: (541) 929-6622
Message: (703) 922.9090 x 739
[email protected]
Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security, Business
Consulting, Project Management and Executive Coaching solutions to our
government and private sector clients. Check us out at www.innovateteam.com.
from enviroatlas.
Okay - I'd like some other eyes on this - so when you have some time please read below and let me know what you think... I haven't even thought about the map switching yet...
I created two services and "exported" one cache to play with without an associated AGS service. For the record, these were created using the "new" HUC12 layer (not the one in the existing services) and the "old" data is reapportioned data from the old HUC12s (2011 version) to the "new" HUC12s. The cache was created using a "full resolution" - not generalized - HUC12 feature class in Web Mercator. I used the layer name (without spaces) as the AGS service name, but could easily use the field name - these should be shorter names and unique across all and to each database/layer.
I'm relying on the code here as the example: https://developers.arcgis.com/javascript/jssamples/layers_custom_tiled.html
Here is a description of the three examples:
-
http://leb.epa.gov/arcgis/rest/services/test_services/Acresofcropsthathavenonearbypollinatorhabitat/MapServer is cached for level 0 - 9 (10 - 19 are not pre-built in the cache) The attribute/field is "Acres_Unpo" and would be a shorter service name. Cache for this (and the following service) is stored in "D:\Public\Data\arcgisserver\directories\arcgiscache" - full path to one of the pngs is D:\Public\Data\arcgisserver\directories\arcgiscache\test_services_Acresofcropsthathavenonearbypollinatorhabitat\National Data - EnviroAtlas_alllayers\L06\R0000001a\C0000000e.png. This and the following service each used approximately 23mb of space for the cache - I didn't use or limit with an area of interest, instead I just used the whole map.
-
http://leb.epa.gov/arcgis/rest/services/test_services/Agriculturalwateruse/MapServer is the second example, same levels created. The attribute/field is "AWD_mgal".
-
exported the cache for # 2 into a shorter named cache folder "AWD_mgal" (the field name) in the folder "D:\Public\Data\arcgisserver\arcgiscache\exports". I made a virtual directory in IIS pointing to D:\Public\Data\arcgisserver\arcgiscache\exports and called it "arcgiscache_exp". you can see an example tile with this link: http://leb.epa.gov/arcgiscache_exp/AWD_mgal/National%20Data%20-%20EnviroAtlas/_alllayers/L06/R0000001a/C0000000e.png
(oh, and I can just make the "National%20Data%20-%20EnviroAtlas" be "Layer" - I renamed it in the mxd but this is just for testing....)
Also found this link - might have some hints - this is mostly for offline access to caches for mobile apps: https://github.com/Esri/offline-editor-js
from enviroatlas.
typo in previous post...in item # 1 - lost a backslash between EnviroAtlas and _alllayers. Should be:
D:\Public\Data\arcgisserver\directories\arcgiscache\test_services_Acresofcropsthathavenonearbypollinatorhabitat\National Data - EnviroAtlas_alllayers\L06\R0000001a\C0000000e.png
from enviroatlas.
ah ha!! special character quirk
D:\Public\Data\arcgisserver\directories\arcgiscache\test_services_Acresofcropsthathavenonearbypollinatorhabitat\National Data - EnviroAtlas_alllayers\L06\R0000001a\C0000000e.png
from enviroatlas.
Cool, got it working in the Esri Sandbox!
<meta name="viewport" content="initial-scale=1,
maximum-scale=1,user-scalable=no">
<title>Portland Tile Server</title>
<link rel="stylesheet" href="
https://js.arcgis.com/3.15/dijit/themes/claro/claro.css">
<script src="https://js.arcgis.com/3.15/"></script>
<script>
dojo.require("esri.map");
function init() {
initLayer();
var map = new esri.Map("map");
map.addLayer(new my.PortlandTiledMapServiceLayer());
}
function initLayer(){
dojo.declare("my.PortlandTiledMapServiceLayer",
esri.layers.TiledMapServiceLayer, {
constructor: function() {
this.spatialReference = new esri.SpatialReference({ wkid:102100
});
this.initialExtent = (this.fullExtent = new
esri.geometry.Extent(-13899346.378, 2815952.218899999, -7445653.2326,
6340354.452, this.spatialReference));
this.tileInfo = new esri.layers.TileInfo({
"rows" : 256,
"cols" : 256,
"dpi" : 96,
"format" : "PNG",
"compressionQuality" : 0,
"origin" : {
"x" : -20037508.342787,
"y" : 20037508.342787
},
"spatialReference" : {
"wkid" : 102100
},
"lods" : [
{
level: 0,
resolution: 156543.03392800014,
scale: 591657527.591555
},
{
level: 1,
resolution: 78271.51696399994,
scale: 295828763.795777
},
{
level: 2,
resolution: 39135.75848200009,
scale: 147914381.897889
},
{
level: 3,
resolution: 19567.87924099992,
scale: 73957190.948944
},
{
level: 4,
resolution: 9783.93962049996,
scale: 36978595.474472
},
{
level: 5,
resolution: 4891.96981024998,
scale: 18489297.737236
},
{
level: 6,
resolution: 2445.98490512499,
scale: 9244648.868618
},
{
level: 7,
resolution: 1222.992452562495,
scale: 4622324.434309
},
{
level: 8,
resolution: 611.4962262813797,
scale: 2311162.217155
},
{
level: 9,
resolution: 305.74811314055756,
scale: 1155581.108577
},
{
level: 10,
resolution: 152.87405657041106,
scale: 577790.554289
}]
});
this.loaded = true;
this.onLoad(this);
},
getTileUrl: function(level, row, col) {
return "
http://leb.epa.gov/arcgiscache_exp/AWD_mgal/National%20Data%20-%20EnviroAtlas/_alllayers/"
+
"L" + dojo.string.pad(level, 2, '0') + "/" +
"R" + dojo.string.pad(row.toString(16), 8, '0') + "/" +
"C" + dojo.string.pad(col.toString(16), 8, '0') + "." +
"png";
}
});
}
dojo.ready(init);
</script>
On Wed, Dec 30, 2015 at 3:57 PM, brosenbaum [email protected]
wrote:
ah ha!! special character quirk
D:\Public\Data\arcgisserver\directories\arcgiscache\test_services_Acresofcropsthathavenonearbypollinatorhabitat\National
Data - EnviroAtlas_alllayers\L06\R0000001a\C0000000e.png—
Reply to this email directly or view it on GitHub
#64 (comment)
.
Torrin Hultgren
Senior Manager, Geospatial Solutions
Innovate!, Inc.
O: (703) 922-9090 x737
Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security,
Business Consulting, Project Management and Executive Coaching
solutions to our government and private sector clients. Check us out
at www.innovateteam.com.
from enviroatlas.
The cache seems tiny, but I looking at the largest scale I'm not sure it
needs to be any bigger - how long did it take to generate? Any other
thoughts before coding against these examples?
On Wed, Dec 30, 2015 at 4:44 PM, Torrin Hultgren <[email protected]
wrote:
Cool, got it working in the Esri Sandbox!
<meta name="viewport" content="initial-scale=1,
maximum-scale=1,user-scalable=no">
<title>Portland Tile Server</title><link rel="stylesheet" href="
https://js.arcgis.com/3.15/dijit/themes/claro/claro.css">
<script src="https://js.arcgis.com/3.15/"></script> <script> dojo.require("esri.map"); function init() { initLayer(); var map = new esri.Map("map"); map.addLayer(new my.PortlandTiledMapServiceLayer()); } function initLayer(){ dojo.declare("my.PortlandTiledMapServiceLayer",
esri.layers.TiledMapServiceLayer, {
constructor: function() {
this.spatialReference = new esri.SpatialReference({
wkid:102100 });
this.initialExtent = (this.fullExtent = new
esri.geometry.Extent(-13899346.378, 2815952.218899999, -7445653.2326,
6340354.452, this.spatialReference));this.tileInfo = new esri.layers.TileInfo({ "rows" : 256, "cols" : 256, "dpi" : 96, "format" : "PNG", "compressionQuality" : 0, "origin" : { "x" : -20037508.342787, "y" : 20037508.342787 }, "spatialReference" : { "wkid" : 102100 }, "lods" : [ { level: 0, resolution: 156543.03392800014, scale: 591657527.591555 }, { level: 1, resolution: 78271.51696399994, scale: 295828763.795777 }, { level: 2, resolution: 39135.75848200009, scale: 147914381.897889 }, { level: 3, resolution: 19567.87924099992, scale: 73957190.948944 }, { level: 4, resolution: 9783.93962049996, scale: 36978595.474472 }, { level: 5, resolution: 4891.96981024998, scale: 18489297.737236 }, { level: 6, resolution: 2445.98490512499, scale: 9244648.868618 }, { level: 7, resolution: 1222.992452562495, scale: 4622324.434309 }, { level: 8, resolution: 611.4962262813797, scale: 2311162.217155 }, { level: 9, resolution: 305.74811314055756, scale: 1155581.108577 }, { level: 10, resolution: 152.87405657041106, scale: 577790.554289 }] }); this.loaded = true; this.onLoad(this); }, getTileUrl: function(level, row, col) { return "
http://leb.epa.gov/arcgiscache_exp/AWD_mgal/National%20Data%20-%20EnviroAtlas/_alllayers/"
+
"L" + dojo.string.pad(level, 2, '0') + "/" +
"R" + dojo.string.pad(row.toString(16), 8, '0') + "/" +
"C" + dojo.string.pad(col.toString(16), 8, '0') + "." +
"png";
}
});
}dojo.ready(init); </script>
On Wed, Dec 30, 2015 at 3:57 PM, brosenbaum [email protected]
wrote:ah ha!! special character quirk
D:\Public\Data\arcgisserver\directories\arcgiscache\test_services_Acresofcropsthathavenonearbypollinatorhabitat\National
Data - EnviroAtlas_alllayers\L06\R0000001a\C0000000e.png—
Reply to this email directly or view it on GitHub
#64 (comment)
.Torrin Hultgren
Senior Manager, Geospatial Solutions
Innovate!, Inc.
O: (703) 922-9090 x737Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security,
Business Consulting, Project Management and Executive Coaching
solutions to our government and private sector clients. Check us out
at www.innovateteam.com.
Torrin Hultgren
Senior Manager, Geospatial Solutions
Innovate!, Inc.
O: (703) 922-9090 x737
Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security,
Business Consulting, Project Management and Executive Coaching
solutions to our government and private sector clients. Check us out
at www.innovateteam.com.
from enviroatlas.
oh, a LONG time... for each layer, it took more time to classify and make
the mxd then it did for the cache to be built - think it was less than a
minute.
Adding the next level of cache (level 10 - 1:577,790) jumped the cache
from 23mb to ~80mb - about 60mb larger.. still pretty small.
The next level (11 - 1:288,895 [where the WATERS services draw - so pretty
zoomed in]) jumps to about 315mb.
So, we have 200 national layers x 25 mb (rounding up) = 5 gb of disk
space - pretty darn reasonable.
If we go to the next level, we have 200 national layers x 100mb (rounding
up) = 20 gb of disk space. still awesome!
Think we just have to make sure the "identify pop-ups" still work at least
at some of the mid-levels like 4 or 5 through 9.
On Wed, Dec 30, 2015 at 1:47 PM, Torrin Hultgren [email protected]
wrote:
The cache seems tiny, but I looking at the largest scale I'm not sure it
needs to be any bigger - how long did it take to generate? Any other
thoughts before coding against these examples?On Wed, Dec 30, 2015 at 4:44 PM, Torrin Hultgren <
[email protected]wrote:
Cool, got it working in the Esri Sandbox!
<title>Portland Tile Server</title> <script src="https://js.arcgis.com/3.15/"></script> <script> dojo.require("esri.map"); function init() { initLayer(); var map = new esri.Map("map"); map.addLayer(new my.PortlandTiledMapServiceLayer()); } function initLayer(){ dojo.declare("my.PortlandTiledMapServiceLayer", esri.layers.TiledMapServiceLayer, { constructor: function() { this.spatialReference = new esri.SpatialReference({ wkid:102100 }); this.initialExtent = (this.fullExtent = new esri.geometry.Extent(-13899346.378, 2815952.218899999, -7445653.2326, 6340354.452, this.spatialReference)); this.tileInfo = new esri.layers.TileInfo({ "rows" : 256, "cols" : 256, "dpi" : 96, "format" : "PNG", "compressionQuality" : 0, "origin" : { "x" : -20037508.342787, "y" : 20037508.342787 }, "spatialReference" : { "wkid" : 102100 }, "lods" : [ { level: 0, resolution: 156543.03392800014, scale: 591657527.591555 }, { level: 1, resolution: 78271.51696399994, scale: 295828763.795777 }, { level: 2, resolution: 39135.75848200009, scale: 147914381.897889 }, { level: 3, resolution: 19567.87924099992, scale: 73957190.948944 }, { level: 4, resolution: 9783.93962049996, scale: 36978595.474472 }, { level: 5, resolution: 4891.96981024998, scale: 18489297.737236 }, { level: 6, resolution: 2445.98490512499, scale: 9244648.868618 }, { level: 7, resolution: 1222.992452562495, scale: 4622324.434309 }, { level: 8, resolution: 611.4962262813797, scale: 2311162.217155 }, { level: 9, resolution: 305.74811314055756, scale: 1155581.108577 }, { level: 10, resolution: 152.87405657041106, scale: 577790.554289 }] }); this.loaded = true; this.onLoad(this); }, getTileUrl: function(level, row, col) { return " http://leb.epa.gov/arcgiscache_exp/AWD_mgal/National%20Data%20-%20EnviroAtlas/_alllayers/ " + "L" + dojo.string.pad(level, 2, '0') + "/" + "R" + dojo.string.pad(row.toString(16), 8, '0') + "/" + "C" + dojo.string.pad(col.toString(16), 8, '0') + "." + "png"; } }); } dojo.ready(init); </script>On Wed, Dec 30, 2015 at 3:57 PM, brosenbaum [email protected]
wrote:ah ha!! special character quirk
D:\Public\Data\arcgisserver\directories\arcgiscache\test_services_Acresofcropsthathavenonearbypollinatorhabitat\National
Data - EnviroAtlas_alllayers\L06\R0000001a\C0000000e.png—
Reply to this email directly or view it on GitHub
<
#64 (comment).
Torrin Hultgren
Senior Manager, Geospatial Solutions
Innovate!, Inc.
O: (703) 922-9090 x737Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security,
Business Consulting, Project Management and Executive Coaching
solutions to our government and private sector clients. Check us out
at www.innovateteam.com.Torrin Hultgren
Senior Manager, Geospatial Solutions
Innovate!, Inc.
O: (703) 922-9090 x737Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security,
Business Consulting, Project Management and Executive Coaching
solutions to our government and private sector clients. Check us out
at www.innovateteam.com.—
Reply to this email directly or view it on GitHub
#64 (comment)
.
Barbara Rosenbaum
Innovate!, Inc.
Office: (541) 929-6622
Message: (703) 922.9090 x 739
[email protected]
Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security, Business
Consulting, Project Management and Executive Coaching solutions to our
government and private sector clients. Check us out at www.innovateteam.com.
from enviroatlas.
Test services good, need to write code in new issue.
from enviroatlas.
Related Issues (20)
- Community tiled layers not showing "Map description" in layer list menu, also popups are flakey
- Time Series Viewer - please change default visibility/transparency for all layers to 60% HOT 4
- Raindrop Tool - misc. questions HOT 1
- Only one segment of an elevation profile is being displayed
- Many layers are hidden from searchFilter widget when a community is selected
- All external services fail to load via add data widget, even if service is live
- Remove "+/-" button in search filter widget.
- Break multipart features into single part to make popups more performant HOT 1
- Delay application of new symbology until "apply" button is clicked HOT 2
- "Draw layer on top" isn't working for dynamic layers HOT 8
- Default visibility should be 60% instead of 50% HOT 2
- For tiled map services in the config file, the layer list legend does not respect transparency but... HOT 1
- Change wording from "All Communities" to "Combined Communities" throughout application HOT 1
- SLD layers have feature services turned on at all scales
- Config file changes HOT 1
- HUC Nav and raindrop text changes HOT 1
- fixes to left panel widgets HOT 1
- Explore including text next to cursor for analysis tools HOT 1
- Functionality issue between Raindrop/HucNav/Elevation HOT 1
- Explore upgrade to WebAppBuilder 2.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enviroatlas.