Hi to every one, i'm creating an app android that load a grib data from file and set the color of tiles from grib data that i loaded. But this code is very slow. How can speed up this?

try {
                gribFileTileSource.setRecord(1);
                for (int j=0;j<tileSize;j++) {
                    lat=minLat+j*dLat;
                    for (int i=0;i<tileSize;i++) {
                        lon=minLon+i*dLon;
                        //Log.d(LOG_TAG,"lon:"+lon+" lat:"+lat);
                        u=gribFileTileSource.getValue(lat,lon);
                        color=gribFileTileSource.getColor(u);
                        bitmap.setPixel(i,tileSize-j-1,color);
                    }
                }
thanks in advance

asked 12 Jan, 10:55

Pasquale22's gravatar image

Pasquale22
11234
accept rate: 0%

At first glance perhaps https://gis.stackexchange.com/questions/ would be more likely to find someone who can answer a question like this?

(12 Jan, 12:46) SomeoneElse ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×153
×56
×39

question asked: 12 Jan, 10:55

question was seen: 313 times

last updated: 12 Jan, 12:46

powered by OSQA