Forum

Author Topic: Google Maps Tile Export  (Read 9124 times)

Max

  • Newbie
  • *
  • Posts: 3
    • View Profile
Google Maps Tile Export
« on: February 05, 2014, 12:49:02 AM »
Well, this is my first post here but I have been using Photoscan for over a year now and have found it to be an excellent tool which covers almost every aspect of UAS imagery processing. The two portions of processing which I do outside of Photoscan are RAW conversion to TIF and conversion of the exported mosaic into tiles which can be displayed using Google Maps API. I don't really expect Photoscan to do RAW work, as that would be pretty complex and unnecessary to implement, but it would be nice to see a Google Maps tiling engine.

Since Photoscan will already export the orthomosaic as a KML or tiles, it seems like it would be pretty easy to add the zoom layer tiles and create the HTML file that allows the tiles to be easily embedded in a website. I know there are a decent number of programs out there that do this but the free ones tend not to be great and MapTiler, which does a great job, is obscenely expensive.

tenboair

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Google Maps Tile Export
« Reply #1 on: September 19, 2014, 05:33:29 PM »
I am also very interested in this and share Max's sentiments.

Patribus

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: Google Maps Tile Export
« Reply #2 on: September 24, 2014, 12:01:45 PM »
+1

andrekje

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: Google Maps Tile Export
« Reply #3 on: October 13, 2014, 09:11:44 AM »
+1

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Google Maps Tile Export
« Reply #4 on: September 08, 2017, 03:45:47 PM »
Any update on this?

Something like gdal2tiles can do it using GeoTiff, but I'm not sure about if google tiles format is supported.
http://www.gdal.org/gdal2tiles.html

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Google Maps Tile Export
« Reply #5 on: September 08, 2017, 03:51:15 PM »
Hello photoscan_user,

Have you tried to use File Menu -> Export Orthomosaic -> Export Google Map Tiles option? Does it fit your needs as expected?
Best regards,
Alexey Pasumansky,
Agisoft LLC

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Google Maps Tile Export
« Reply #6 on: September 13, 2017, 07:54:18 PM »
Looks promising, what export format it corresponds to?
Quote
Raster format in [RasterFormatTiles, RasterFormatKMZ, RasterFormatXYZ, RasterFormatMBTiles, RasterFor-
matWW]

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Google Maps Tile Export
« Reply #7 on: September 13, 2017, 08:04:28 PM »
Hello photoscan_user,

RasterFormatXYZ corresponds to Google Maps Tiles export format.
Best regards,
Alexey Pasumansky,
Agisoft LLC

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Google Maps Tile Export
« Reply #8 on: September 13, 2017, 08:09:23 PM »
It works, but how to control number of LOD levels? Now I have 16-20 levels, does number of levels depends on dx,dy params?

Quote
chunk.exportOrthomosaic(path=os.path.join(OUTPUT_TILES_DIR,'tiles.zip'), format=PhotoScan.RasterFormat.RasterFormatXYZ, image_format=PhotoScan.ImageFormat.ImageFormatPNG, dx=0.000001, dy=0.000001, blockw=256, blockh=256)