GithubHelp home page GithubHelp logo

exportimagesoi's People

Contributors

mraad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

exportimagesoi's Issues

Need Help

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()
            }

Error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.