Mnoho uživatelů mělo potřebu publikovat dlaždicovou službu na ArcGIS Online. Dvě problémy, kterým čelí, jsou, že nemají ArcGIS for Server a nechtějí spotřebovat všechny své kredity tím, že by ArcGIS Online vytvářel dlaždice. Tento dokument vám ukáže, jak toho dosáhnout, aniž byste narazili na tyto problémy.<\/P>
<\/P>
1. Přidejte do ArcMap data, pro která chcete vytvořit dlaždicovou službu. V níže uvedeném příkladu používám mozaikový dataset SID snímků:<\/P>
2. (VOLITELNÉ)<\/STRONG> Otevřete nástroj Generate Tile Cache Tiling Scheme<\/A> v sadě nástrojů Data Management > Tile Cache. Určete vytvoření NOVÉho dlaždicového schématu, zadejte počet měřítek, samotná měřítka a formát dlaždic:<\/P><\/P><\/P><\/P>3. Otevřete nástroj Manage Tile Cache<\/A>. Určete umístění cache, název cache a vstupní zdroj dat (například v tomto příkladu mozaikový dataset). Pro Tiling Scheme vyberte předdefinované schéma ArcGIS Online z rozbalovací nabídky nebo zvolte 'IMPORT_SCHEME' a vyhledejte XML soubor vytvořený nástrojem Generate Tile Cache Tiling Scheme. Volitelně upravte minimální a maximální uložená měřítka.<\/P><\/P><\/P><\/P>Poznámka<\/STRONG>: Nastavení prostředí Parallel Processing Factor<\/A> lze použít ke zrychlení výkonu využitím více než jednoho jádra.<\/P><\/P>4. Po dokončení tohoto nástroje je cache vytvořena a přidána do mapy. Dále otevřete nástroj Export Tile Cache<\/A>. Určete právě vytvořenou cache a výstupní umístění. Vyberte 'TILE_PACKAGE' pro 'Export Cache As'. Tento nástroj vytvoří soubor .tpk.<\/P><\/P><\/P><\/P>5. Sdílejte soubor TPK na ArcGIS Online otevřením nástroje Share Package<\/A>. Pokud nejste přihlášeni k ArcGIS Online, bude po vás požadováno zadání přihlašovacích údajů. Po otevření nástroje Share Package určete .tpk soubor jako vstupní balíček vytvořený dříve. Přidejte shrnutí, štítky a volitelně sdílejte s Everybody nebo vašimi skupinami ArcGIS Online.<\/P><\/P><\\/P><\\/P><\\/p>6. Po dokončení nástroje Share Package se přihlaste do ArcGIS Online pomocí vámi zvoleného prohlížeče a přejděte do 'My Content'. Zde uvidíte balíček dlaždic:<\\/p> < \/ p > < p > 7 . & nbsp ; Klikněte na balíček dlaždic & gt ; Publish & gt ; Publish : < \/ p > < p > < img __jive_id = \ "48503\ " alt = \ "screen1.png\ " class = \ "image-7 jive-image\ " src = \ "https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ legacyfs \/ online \/ 48503_screen1.png\ " style = \ "width : 620px ; height : 359px ; \ " \/ > < \/ p > < p > Dlaždice začnou být publikovány . & nbsp ; Stav dlaždic můžete sledovat kliknutím na 'Manage Tiles' : < \/ p > < p > < img __jive_id = \ "48504\ " alt = \ "screen1.png\ " class = \ "image-8 jive-image\ " src = \ "https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ legacyfs \/ online \/ 48504_screen1.png\ " style = \ "width : 620px ; height : 474px ; \ " \/ > < \/ p > < p > Jakmile jsou všechny dlaždice publikovány , budete mít dlaždicovou vrstvu , kterou můžete použít ve svých webových mapách a aplikacích : < \/ p > < p > < img __jive_id = \ "48506\ " alt = \ "screen1.png\ " class = \ "image-9 jive-image\ " src = \ "https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ legacyfs \/ online \/ 48506_screen1.png\ " style = \ "width : 620px ; height : 131px ; \ " \/ > < \/ p > < p > Protože jste použili Desktop k vytvoření dlaždic (ArcGIS Online byl použit pouze k jejich publikování), nebude vám účtován kredit za každých 1000 vygenerovaných dlaždic . & nbsp ; Účtovány vám budou pouze poplatky za ukládání dlaždic , což je 1,2 kreditu za 1 GB uložených dat za měsíc . < \/ p > < \/ BODY >< \/ HTML >
3. Otevřete nástroj
Poznámka<\/STRONG>: Nastavení prostředí
4. Po dokončení tohoto nástroje je cache vytvořena a přidána do mapy. Dále otevřete nástroj
5. Sdílejte soubor TPK na ArcGIS Online otevřením nástroje
<\\/P><\\/P><\\/p>6. Po dokončení nástroje Share Package se přihlaste do ArcGIS Online pomocí vámi zvoleného prohlížeče a přejděte do 'My Content'. Zde uvidíte balíček dlaždic:<\\/p>
< \/ p > < p > 7 . & nbsp ; Klikněte na balíček dlaždic & gt ; Publish & gt ; Publish : < \/ p > < p > < img __jive_id = \ "48503\ " alt = \ "screen1.png\ " class = \ "image-7 jive-image\ " src = \ "https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ legacyfs \/ online \/ 48503_screen1.png\ " style = \ "width : 620px ; height : 359px ; \ " \/ > < \/ p > < p > Dlaždice začnou být publikovány . & nbsp ; Stav dlaždic můžete sledovat kliknutím na 'Manage Tiles' : < \/ p > < p > < img __jive_id = \ "48504\ " alt = \ "screen1.png\ " class = \ "image-8 jive-image\ " src = \ "https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ legacyfs \/ online \/ 48504_screen1.png\ " style = \ "width : 620px ; height : 474px ; \ " \/ > < \/ p > < p > Jakmile jsou všechny dlaždice publikovány , budete mít dlaždicovou vrstvu , kterou můžete použít ve svých webových mapách a aplikacích : < \/ p > < p > < img __jive_id = \ "48506\ " alt = \ "screen1.png\ " class = \ "image-9 jive-image\ " src = \ "https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ legacyfs \/ online \/ 48506_screen1.png\ " style = \ "width : 620px ; height : 131px ; \ " \/ > < \/ p > < p > Protože jste použili Desktop k vytvoření dlaždic (ArcGIS Online byl použit pouze k jejich publikování), nebude vám účtován kredit za každých 1000 vygenerovaných dlaždic . & nbsp ; Účtovány vám budou pouze poplatky za ukládání dlaždic , což je 1,2 kreditu za 1 GB uložených dat za měsíc . < \/ p > < \/ BODY >< \/ HTML >
Jake,
Ok, I will have to try that.
I'm trying to create a tiled service that is just address point labels. The label is maplex black text with yellow halo. When I create the service and cache and view it in my rest directory preview it looks ok. But when I add it to ArcGIS Online map I am getting only black text and not at the correct zoom levels either. Any idea what is going on? Thanks
If you have a simple map you can also use the Create Map Tile Package and do a lot of this in one step. There is no AOI option and it does not use Parallel Processing but it is easier for users. Looks like these will not be fixed in 10.4 either.
Also note I have 4 open bugs on these tools all dealing with the AOI parameter. You will get all kinds of issues in the extent when using AOI.
[BUG-000086429: The Manage Tile Cache tool does not honor the area of interest parameter set when creating the cache.] I have 2 out there now that say only 3.63% of the tiles published but it actually works just fine. Case #01691221 and #01642593
[BUG-000085241: Publishing tiles does not complete in ArcGIS Online. This may be due to incorrect extents, however this warning is never provided to the user when creating the tile package.]
Unknown number - the extent is also wrong when using the Export Tile cache tool. They listed BUG-000085241 but this is already above and different. I had case #01642593 and #01623834 because the export tool also bombs in scheduled scripts but works fine not scheduled.
BUG-000084160 The Manage Tile Cache tool will fail when run in python. I was trying to get around the bug above and found another one.
Also on the issue of not being able to cache a Esri basemap.
Our contractor also has an open issue that hurts him and us. It was supposed to be fixed in 10.3.1 but was not. Defect Escalation - BUG-000081937 / DE-000000372
It is probably because you used a AOI. There is a know bug I have open on this. See this post and below
Mange Tiles shows much larger size than cache using custom scales
I think I saw a post that Maplex is not supported on AGO
I have found that if your data and map projection are not the same you will have all kinds of issues. I have published to AGO in UTM but then you can not mix them with regular basemaps.
I just created my own Area of Interest and also saw a percentage instead of 100%, even though it appears to be done. So your comment helped me, thanks!
I had to create my own custom scale range for tile service/tile schema to get my labels at lower levels since the default from ArcMap only goes to 1:1128. I used
1:2257
1:1128
1:564
1:282
Hope this helps.
http://support.esri.com/en/knowledgebase/techarticles/detail/43247
about labels in map service, "Simply set the layers transparency to 100%"
Great tip, thanks!!
Esri support wasn't sure what the problem was. But if I started from scratch building a new mxd adding data from the geodatabase (not copy/paste from other mxd) I could publish the map service and cache looked like it should with the halos.
I'm having some difficulties with something I feel should be working just fine -- a tileset of only labels (transparent background).
My goal is to create an AGOL-hosted basemap reference layer, which will sit atop another hosted tileset (already published within my organization). I have an MXD with multiple annotations for the labels set up specifically for each of several zoom levels. While publishing the service through ArcGIS for Desktop's built in method, on "Analyze" I get warnings that "Annotation layer may use inline fonts that are not installed on the server," and "Map is being published with data copied to the server using data frame full extent." When I "Preview," everything looks as I'd expect it to, with my labels sitting on an empty background for the several zooms I care about. However, when I publish the tile set (using tiled mapping, not feature access), the resulting tileset on AGOL is empty. I can add it to an existing web map, set it as the reference layer, but I am not seeing any of the labels I should.
Would publishing the MXD using a different tile packaging method be better suited for this? I don't think fonts are the issue, as I've tried several different ones.. and wouldn't it default to a different font if the current wasn't installed?
Sounds like you are publishing a service. If you want a cache of labels build a tile package using Create Map Tile package. I have done this with labels. You can also do this with vector tiles if you are going to use it online.
My issue is that when I set the visibility scales to let say the room level in AGOL, the images will not show up even though the standard Imagery appears at 1:524. Any thoughts? I have some site/design plans that have been georeferenced and the engineers would like to zoom in more and don't necessarily care about the ortho behind it. But as you said, there are limitations to whatever basemap you're using. Is there a better workflow to be discovered? Such as creating my own basemap then overlaying the site plans?
I am currently creating tile packages so that I can use them within Survey123 offline. So far the best way I have found to do this is by Share As > Tile Package. Then once it is finished tiling, I place the .tpk in the media folder of my survey using Connect for Survey123. This makes the surveys rather large in terms of file size and so it will often take a while for my survey to publish (getting stuck at the creating the item info) to AGOL so our field agents can use them. We have to be able to work offline in case of a bad storm, however I was wondering if there was a way to call these Tile Layers from Survey123 if we did have a connection. For example, when I click on my geopoint question within the survey on my device and the map enlarges there is an option to change my basemap. The tile package I embed shows up on the list. Is there a way to see all of the Tile Layers I have hosted on AGOL on the same list?
Also, my tile packages consist of clipped SID imagery of Florida's coastline overlaid with labeled vector data representing range monuments. Would I be able to create a separate Feature Service of range monuments, call that Feature Service into my Tile Layer, and then call that Tile Layer into my survey to reduce file size? I have read up on using custom URL schemes within Survey123 but have yet to find an answer.
Thank you!
Thanks Jake, you prevented me from wasting a bunch of credits with this workflow.
Hi Jake,
I don't know if this thread is still being monitored, but I tried to do this in Pro, and I keep getting hung up on the Export part of the process. Here's a screenshot of my parameters and the resulting error. I've tried multiple times to run it, using different output locations and "Export Cache as" options, all resulting in same error. Any ideas on what I'm doing wrong?
Thanks,
Amy
Amelia Newsam have you tried the same tool in ArcMap? I'm curious to see if it fails there as well.
Also, what version of ArcGIS Pro are you using?
2.4.1, and I did just get it to work using ArcMap. I will now see if I can get it up on my ESRI and if it looks OK.
Yup, it worked!! Thanks!
Looks like ArcMap still has some skin in the game
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Nový zde? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.