|
POST
|
Thanks, Avinash. It works well to click on the View in: Google Earth url in the rest/services folder for the service for line and polygon services, but for images I'm not getting good resolution at larger scales anything close to what the image source should be capable of, unless I add as an Image Overlay in Google Earth and edit the Width and Height parameters in the url.
... View more
09-02-2016
11:47 AM
|
1
|
1
|
981
|
|
POST
|
When I try to copy and paste this url, I get excessive % characters and a https://community.esri.com/external-link prefix. ?? Not very useful. /external-link.jspa?url=http%3A%2F%2Fnsmap%3A6080%2Farcgis%2Fservices%2FWIP78Mosaic%2FImageServer%2FWMSServer%3FVERSION%3D1.1.1%26REQUEST%3DGetMap%26SRS%3DEPSG%3A4326%26WIDTH%3D4000%26HEIGHT%3D4000%26LAYERS%3D0%26STYLES%3Ddefault%26TRANSPARENT%3DTRUE%26FORMAT%3Dimage%2Fpng%26
... View more
08-18-2016
01:06 PM
|
0
|
0
|
981
|
|
POST
|
It's too bad this Geonet system took the url string I typed and turned it into a link while truncating its content. I can't figure out how to reveal the complete string now. Following the link doesn't go anywhere, and doesn't show the original url string. How was I supposed to enter this as an example, not as a unfathomable link? As a source code block?
... View more
08-17-2016
05:35 PM
|
0
|
3
|
4435
|
|
POST
|
ESRI Customer helped me with a trick. Edit the HEIGHT and WIDTH values in the url used from AS to set up the image overlay in Google Earth to get more resolution at larger scales. For example, http://nsmap:6080/arcgis/services/WIP78Mosaic/ImageServer/WMSServer?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=400… The maximum HEIGHT and WIDTH values possible for ArcGIS Server WMS Services are 4096 X 4096. Increasing HEIGHT and WIDTH will increase your Google Earth draw times, so try a few values until you get a good balance between draw time and resolution.
... View more
08-09-2016
02:14 PM
|
2
|
4
|
4435
|
|
POST
|
The work flow provided by ESRI Customer Care is: In Google Earth, go to Add > Image Overlay. Add a name and the URL of the WMS Service in the Link field. In the Refresh Tab, click on the WMS Parameters button. In the “Web Mapping Services Parameters” window, click Add. Add the URL to the WMS service again as in step 2.This will connect to the service and list the layers in the Opaque layers column.Those can be moved to the Selected Layers column.Click Apply, then OK.Click OK once more. Which is more complete that what I have been looking at from Google Earth: https://support.google.com/earth/answer/148099?guide=22373&ref_topic=22376 Even though it now works as an image overlay, it works somewhat worse than the link in the rest services page for the service to "View in: .... Google Earth" which passes a kmz link. Like the view in Google Earth link, the WMS overlay doesn't seem to zoom to higher resolutions, and worse than the link, sometimes draws a blank across the bottom of the GE window. The WMS service zooms down to large scales in ArcCatalog. https://www.dropbox.com/s/l6pbrctpduzsokx/screenWMS.jpg?dl=0
... View more
08-05-2016
01:48 PM
|
2
|
0
|
4435
|
|
POST
|
That url just got me a "WMS Capability fetch failed" from GE add overlay.
... View more
08-05-2016
01:41 PM
|
0
|
0
|
4435
|
|
POST
|
Also tried looking up the url of the WMS in ArcServer Manager and adding it to Google Earth by Add>Image Overlay. All I get is the big red x in Google earth. Tried both the http://myserver:6080/arcgis/services/WIP78Mosaic/ImageServer/WMSServer and the http://localhost:6080/arcgis/services/WIP78Mosaic/ImageServer/WMSServer on the ArcServer machine as possibilities.
... View more
08-04-2016
11:17 AM
|
0
|
3
|
4435
|
|
POST
|
I just added my WMS services to ArcCatalog 10.3.1 for testing the WMS service, and in preview, it scales write up until I can read the fine print. Performs as expected. It must be something different about Google Earth Pro now.
... View more
07-29-2016
01:55 PM
|
0
|
4
|
4435
|
|
POST
|
A few years ago, when I was running Arc Server 9.3.1, I was able to publish image services with WMS enabled, then add them to Google Earth as an image overlay https://support.google.com/earth/answer/148099?guide=22373&ref_topic=22376 (but the content at this link location has been updated, doesn't match what I had been telling users to do back then.) My image services would work pretty well for my users who only had Google Earth. Now with ArcServer 10.3.1, I have some image services of mosaics published with WMS checked, overviews built, and they scale up and down just fine in ArcGIS 10.3.1. But when I try adding my new services to Google Earth Pro by listing my rest services in a browser at http://myserver:6080/arcgis/rest/services , selecting the image service and the View in Google Earth option, the WMS service opens in Google Earth, but it doesn't look like it jumps to the more detailed pyramids at larger scales. It seems stuck at about 1:31000. Is there a new way to add these 10.3.1 image services to Google Earth?
... View more
07-28-2016
05:26 PM
|
0
|
13
|
8269
|
|
POST
|
Does it lack style to use newname three times and to use newname to define a new version of newname?
... View more
06-29-2016
04:27 PM
|
0
|
0
|
11679
|
|
POST
|
I got it to work satisfactorily. Now the pdf files are written to a different folder, outputdir. I tried a couple times to get lines 13 -15 combined into one line, but I don't have time for that kind of elegance. By default, the SaveAs overwrites files in the output directory if they already exist, which is fine by me. I suppose if you wanted to avoid overwrite, you would have to use try-except somehow. import sys
import os
import glob
import win32com.client
dir = r"C:\Users\Paul\Documents\web\ykfp\Par16\Presentations\YBSMC 2016 Thursday"
outputdir = r"C:\Users\Paul\Documents\web\ykfp\Par16\Presentations\pdf"
def convert(files, formatType = 32):
powerpoint = win32com.client.Dispatch("Powerpoint.Application")
powerpoint.Visible = 1
for filename in files:
newname = os.path.splitext(filename)[0] + ".pdf"
newname = os.path.split(newname)[1]
newname = os.path.join(outputdir,newname)
deck = powerpoint.Presentations.Open(filename)
deck.SaveAs(newname, formatType)
deck.Close()
powerpoint.Quit()
files = glob.glob(os.path.join(dir,"*.ppt*"))
#print(files)
convert(files)
... View more
06-29-2016
02:49 PM
|
0
|
2
|
11679
|
|
POST
|
Thanks, Darren, that's a lot like what I came up with on my own. I set the path explicitly, then got side tracked with a for loop to test the list contents, lines 18 - 23, now commented out, and when that part showed me a good list of files, I almost put lines 25- 27 in the for loop, but then thought, hey that's what the glob.glob part is supposed to do. (Still, I don't understand entirely how this magic works. I'll read up on this.) So I replaced the sys.argv[1] with my dir variable in line 25, and it ran. PowerPoint opens up, shows a little "publishing" progress bar for each input file, then Powerpoint shuts down. Your suggestion to change ppt? to ppt worked well to pick up both the old and the new file extensions. Now if I can just direct the output files to a different folder, I'll be done. import sys
import os
import glob
import win32com.client
def convert(files, formatType = 32):
powerpoint = win32com.client.Dispatch("Powerpoint.Application")
powerpoint.Visible = 1
for filename in files:
newname = os.path.splitext(filename)[0] + ".pdf"
#print(files)
deck = powerpoint.Presentations.Open(filename)
deck.SaveAs(newname, formatType)
deck.Close()
powerpoint.Quit()
dir = r"C:\Users\Paul\Documents\web\ykfp\Par16\Presentations\YBSMC 2016 Thursday"
##filelist = []
##for file in [ ppt for ppt in os.listdir(dir)
##if ppt.endswith("ppt")]:
## filelist.append(file)
##
#print filelist
files = glob.glob(os.path.join(dir,"*.ppt*"))
print(files)
convert(files)
... View more
06-29-2016
11:58 AM
|
0
|
0
|
11679
|
|
POST
|
Print(files) after 16 gave [], remarked that out and tried print after line 10, got nothing out. This example script doesn't set the input or output path, so I figured it might work if I just save and run the script in the same folder that contains the PowerPoint files, .ppt? Maybe I'll see if I can set the path then create a list of ppt? files. Oh, skip, I guess I can't use arcpy to set the workspace or make the list because ppt isn't an arcpy format.
... View more
06-29-2016
10:42 AM
|
0
|
3
|
11679
|
|
POST
|
This isn't a GIS question, but I thought maybe someone could help. I have a couple folders of PowerPoint files that I need to convert to PDF files, and I thought it would help me practice some python to see if I could script this task. I found an example at http://odetocode.com/blogs/scott/archive/2013/06/26/convert-a-directory-of-powerpoint-slides-to-pdf-with-python.aspx that I am using as a starting point. If I can see this run once then I can extend it to loop through the whole folder and write to different output folder. import sys
import os
import glob
import win32com.client
def convert(files, formatType = 32):
powerpoint = win32com.client.Dispatch("Powerpoint.Application")
powerpoint.Visible = 1
for filename in files:
newname = os.path.splitext(filename)[0] + ".pdf"
deck = powerpoint.Presentations.Open(filename)
deck.SaveAs(newname, formatType)
deck.Close()
powerpoint.Quit()
files = glob.glob(os.path.join(sys.argv[1],"*.ppt?"))
convert(files)
First I tried running the script in IDLE, but first hit No module named win32.com, then after I installed pywin extensions for python 27, 32 bit, I got ImportError: No module named win32api. Looking through posts at Geonet, I found that I was having this problem with win32 back in 2006, and the easy way out is to run it in PythonWin. I'm running ArcGIS 10.3.1 on a 64 bit Windows system, so it looks like python 2.7.8, so I tried the install of win32 2.7 32 bit. Running the script in pythonwin made it easier to insert an input file name as argv[1], and I didn't hit any of the win32 errors. But it seemed to run to completion, giving "returned exit code 0" in the PythonWin bottom bar, but I can't find any output pdf file on my system. What happened?
... View more
06-28-2016
02:31 PM
|
0
|
8
|
26116
|
|
POST
|
I'm still loading data into my Enterprise Geodatabase, 10.3.1, on SQL Server 2012R2 on Windows Server 2012 R2, and trying to figure out how the EGDB can best be used to manage LiDAR collections. https://community.esri.com/thread/168592. I moved from a file GDB, a bare earth multipoint set for lidar job that covers 33 sq. mi., two point files for some bathemetry within the project area, and an outline polygon to see if I could duplicate the terrain in the EGDB that I have in a file geodatabase. I used steps in my old script for guidance, but ran them in tools. gp.CreateTerrain_3d(featuredataset, terrainname, "3", "50000", "") Added the points to terrain as masspoints, the outline as a clip, gp.AddTerrainPyramidLevel_3d(newterrain, "ZTOLERANCE", "'1 2500';'2.5 10000';'5 25000';'10 50000'") Then BuildTerrain. When I ran Build Terrain from a client PC with my data owner connection, it ran over the weekend without making any progress, so I killed the process. When I ran Build Terrain from my ArcServer machine, it appeared to be making progress but very slowly. It's been running since 5/23 (today is 5/25) and says "Build pyramid (phase 1): 1780/ 40795". The number is still incrementing but very slowly. The other thing I tried was from my client PC, copy/paste the feature dataset from the local fgdd to the enterprise gdb. That took 15- 20 minutes, but when it finished the terrain was successfully copied over too. And it has 6 pyramid levels as well. I didn't realize that the original had 6 levels. I compared draw times in ArcMap on a client PC of the local fgdb version of the terrain and the copy/paste version on the egdb, and they seemed to be very close. Is this expected behavior or is there something wrong with my setup? What happened to the BuildTerrian within the egdb? Is the copy/paste the preferred way to load Lidar terrains? For future lidar collections, will I need to build them in a file geodatabase, then copy them to the egdb? Is egdb storage of Lidar data advised? Since lidar data would not need to ever be edited anyone, and if there is no performance gain, maybe standard fgdb storage on a windows share is more suitable?
... View more
05-25-2016
04:51 PM
|
0
|
0
|
1966
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-28-2018 04:57 PM | |
| 3 | 09-20-2017 02:37 PM | |
| 1 | 09-20-2017 02:21 PM | |
| 1 | 03-09-2018 03:25 PM | |
| 1 | 03-12-2015 02:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|