Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 142205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:53:58+00:00 2026-05-11T07:53:58+00:00

I want to create some heat-map style tiles to overlay over our base maps

  • 0

I want to create some heat-map style tiles to overlay over our base maps using Open Layers. Basically, I want to divide some some bounding box into a grid, and display each square of the grid using a different color based on how many points of a sample fall within that grid square.

The technologies involved are C#, OpenLayers, SQL Server 2008 and GeoServer.

My question is basically one of general approach, I’m not really sure where to put the tip of the chisel on this one.

My ultimate goal is to be able to take any arbitrary bounding box, calculate an x-mile by x-mile grid that fits within that bounding box, the iterate over a collection of individual points and assign them to one grid square or another so I can calculate point density per grid square, then color the grid according to the densities, then overlay that on a CloudMade base map using Open Layers.

Any help at all would be greatly appreciated, on the whole thing or any piece of it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:53:59+00:00Added an answer on May 11, 2026 at 7:53 am

    If your bounding box is axis aligned, this is fairly simple. Just make your image, and create a world file for it by hand. The world file is just 6 lines of text, and you already know everything needed (x & y pixel size, coordinate of your upper left corner).

    Just make sure that you use the CENTER of the upper left corner pixel, not the corner of the box.

    —— Here’s how you’d make the world file ——-

    Say your bounding box’s upper left corner is at 203732×598374, and you want an image that has rectangles that are 200m wide east<->west and 300m tall north<->south.

    You’d make an image that was the appropriate number of pixels, then a world file that had the following 6 lines:

    200 0 0 -300 203632 598524 

    This corresponds to:

    200 == size of one pixel in X 0 == shear1 0 == shear2 -300 == size of one pixel in Y (from top down) 203632 == left edge - 1/2 pixel size (to center on pixel instead of edge of box) 598524 == top edge - 1/2 pixel size (to center on pixel instead of edge of box) 

    If you use a .png image, you’ll want to save this with the same name, but as .pgw. If you use a .jpg, it’d be .jgw, etc.

    For complete details, see: Wiki on World Files

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi want to create some report using data what I have. Below is what
I've been using Clojure for a little while and want to create some projects
I'm using Extbase in TYPO3. I want to create some repository function which can
I want to create some folders in Linux using shell. The folder names should
I want to create some distributed mutual exclusion using a database table. It would
I want to create some memory to use for DMA transfers. (Using Linux 2.6.18-128.el5
I want to create some up and down buttons using the standard button background
I'm using CodeIgniter and I want to create some sort of filter to know
I want to create some DOM nodes with jQuery, append them to the html
I want to create some function for rendering images from within Joomla v1.5.23. That

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.