mraad / exportimagesoi Goto Github PK
View Code? Open in Web Editor NEWArcGIS Server Object Interceptor and MemSQL
License: Apache License 2.0
ArcGIS Server Object Interceptor and MemSQL
License: Apache License 2.0
Would you please comment the following code? Or explain what it is doing? I need to join data with features and finding hard to understand. I need to code to simply access features and join features with extended data from the external database. Would appreciate your guidance.
val resultSet = preparedStatement.executeQuery
try {
val dx = xmax - xmin
val dy = ymax - ymin
val px = new Array[Int](7)
val py = new Array[Int](7)
val hexCell = new HexCell(hexGrid.size)
while (resultSet.next) {
val loc = resultSet.getString(1)
val pop = resultSet.getInt(2)
val arr = loc.split(':')
val row = arr(0).toLong
val col = arr(1).toLong
val cellXY = hexGrid.convertRowColToHexXY(row, col)
var i = 0
while (i < 7) {
val hx = cellXY.x + hexCell.x(i)
val hy = cellXY.y + hexCell.y(i)
val fx = (hx - xmin) / dx
val fy = 1.0 - (hy - ymin) / dy
px(i) = (imgW * fx).toInt
py(i) = (imgH * fy).toInt
i += 1
}
val colorIndex = if (pop < minCount) 0
else if (pop > maxCount) 255
else math.floor(255 * (pop - minCount) / delCount).toInt
g.setColor(colorMapper.getColor(colorIndex))
g.fillPolygon(px, py, 7)
g.setColor(Color.GRAY)
g.drawPolygon(px, py, 7)
}
} finally {
resultSet.close()
}
I tried and getting the following error,
"Could not resolve dependencies for project com.esri:ExportImageSOI:jar:0.32: The following artifacts could not be resolved: com.esri:hex-grid_2.10:jar:1.2, com.esri:webmercator_2.10:jar:1.2: Failure to find com.esri:hex-grid_2.10:jar:1.2 in https://repository.cloudera.com/artifactory/cloudera-repos was cached in the local repository, resolution will not be reattempted until the update interval of cloudera-releases has elapsed or updates are forced".
Kindly assist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.