How to set the 'dsetid'


Hello,Joe!

I want my Dchart can locate each dataset like others for users can find the dataset in the interface immediately.I notice that the 'dsetid' in the URL is a key factor, so can you show me how to set the 'dsetid' of the datasets?

And anthoer question is how to use the 'Center map at location:', should i putin the name of one country or section, or the latitude and longitude?

Regards.
Chao Xu

Dsetid


Hi Chao,

The dsetid is generated from the md5 hash of the URL of the dataset. Well, almost. There is a bug in generating the hash string in which a hex value that is less than 0xf doesn't have a '0' prepended. You can see for yourself if you look at the Util.idhash method in the Util.java file.

The "Center map at location" feature uses a Web service based at geonames.org and, as far as I know, doesn't support latitude/longitude searches. Cities, countries, or other placenames should work.

- Joe