Rizwan
Rizwan

Reputation: 103

Package com.esri.arcgisruntime.ogc.kml for Arcgis API of Java

I am currently working on a project where I have to convert my data into kml. So, I go through this java package com.esri.arcgisruntime.ogc.kml on the developers website of ESRI.

This package basically provides interfaces and classes for working with Keyhole Markup Language (KML). KML is an XML-based data format that defines a range of geographic data structures such as placemarks, descriptions, ground overlays, paths, and polygons.

With this packages we can:

Now, I need some working example or reference of this package, so that I can modify my java project accordingly because on the ESRI website , only details of the package are there and there is no such working example that how this package works.

Upvotes: 0

Views: 194

Answers (2)

TWiStErRob
TWiStErRob

Reputation: 46460

That library looks good, I reached the same conclusions, but this lib is quite complex, it needs 480 MBs of native code extracted to specific location(s) (see copyNatives in the example project) to execute this code:

val kmlDocument = KmlDocument()
// Call .get() to make sure it's synchronously saved.
kmlDocument.saveAsAsync(File("test.kmz").absolutePath).get()

additionally

  • it needs a custom maven repository reference (mavenCentral is not enough)
  • it might also need a licence

I also looked at other libraries:

Upvotes: 0

Nixta
Nixta

Reputation: 464

Visit the ArcGIS Runtime SDK for Java sample code page and search for KML at the top of the Table of Contents.

Upvotes: 0

Related Questions