Home Database Mysql Tutorial MongoDB中空间数据的存储和操作

MongoDB中空间数据的存储和操作

Jun 07, 2016 pm 03:56 PM
d mongodb use storage official operate data space

本文使用官方C# Driver,实现在MongoDB中存储,查询空间数据(矢量) 空间数据的存储 本例中,从一个矢量文件(shapefile格式)中读取矢量要素空间信息以及属性表,并写入到MongoDB中去,其中读取shapefile文件以及将空间信息转成json的功能通过Ogr库实现 [csh

本文使用官方C# Driver,实现在MongoDB中存储,查询空间数据(矢量)

空间数据的存储

本例中,从一个矢量文件(shapefile格式)中读取矢量要素空间信息以及属性表,并写入到MongoDB中去,其中读取shapefile文件以及将空间信息转成json的功能通过Ogr库实现
          
[csharp] view plaincopyprint?01.//打开MongoDB的Collection  
02.           MongoDatabase db = server.GetDatabase("aa"); 
03.           MongoCollection colSheng = db.GetCollection("sheng"); 
04.           //使用Ogr库打开Shapefile文件  
05.           DataSource ds = Ogr.Open(@"c:\temp\sheng.shp", 0); 
06.           Layer lyr = ds.GetLayerByIndex(0); 
07.           //读取要素数量和字段数量  
08.           int feaCount = lyr.GetFeatureCount(0); 
09.           int fieldCount = lyr.GetLayerDefn().GetFieldCount(); 
10.           //读取所有字段名  
11.           List fieldNames  =new List(); 
12.           for (int i = 0; i 13.           { 
14.               fieldNames.Add(lyr.GetLayerDefn().GetFieldDefn(i).GetName()); 
15.           } 
16.           //循环将所有要素添加到MongoDB中  
17.           for (int i = 0; i 18.           { 
19.               //使用Ogr库将矢量要素的空间信息转成Json格式  
20.               Feature fea = lyr.GetFeature(i); 
21.               Geometry geo = fea.GetGeometryRef();       
22.               string json = geo.ExportToJson(null); 
23.                
24.               BsonDocument doc = new BsonDocument(); 
25.                
26.               //将Json格式的空间信息存到Collection中  
27.               //BsonValue bs = BsonValue.Create(json);                  //这种方法是不可以的,添加到库里之后无法使用空间查询语句查询  
28.               BsonValue bs2 = BsonDocument.Parse(json);               //这种方法才是正确的  
29.               //doc.Add(new BsonElement("geom", bs));  
30.               doc.Add(new BsonElement("geo",bs2)); 
31.               //通过循环将所有字段的属性信息存入Collection中  
32.               for (int j = 0; j 33.               { 
34.                   string tmpFieldVal = fea.GetFieldAsString(j); 
35.                   doc.Add(new BsonElement(fieldNames[j],tmpFieldVal)); 
36.               } 
37.               var res  = colSheng.Insert(doc);                 
38.           } 
 //打开MongoDB的Collection
            MongoDatabase db = server.GetDatabase("aa");
            MongoCollection colSheng = db.GetCollection("sheng");
            //使用Ogr库打开Shapefile文件
            DataSource ds = Ogr.Open(@"c:\temp\sheng.shp", 0);
            Layer lyr = ds.GetLayerByIndex(0);
            //读取要素数量和字段数量
            int feaCount = lyr.GetFeatureCount(0);
            int fieldCount = lyr.GetLayerDefn().GetFieldCount();
            //读取所有字段名
            List fieldNames  =new List();
            for (int i = 0; i             {
                fieldNames.Add(lyr.GetLayerDefn().GetFieldDefn(i).GetName());
            }
            //循环将所有要素添加到MongoDB中
            for (int i = 0; i             {
                //使用Ogr库将矢量要素的空间信息转成Json格式
                Feature fea = lyr.GetFeature(i);
                Geometry geo = fea.GetGeometryRef();     
                string json = geo.ExportToJson(null);
               
                BsonDocument doc = new BsonDocument();
               
                //将Json格式的空间信息存到Collection中
                //BsonValue bs = BsonValue.Create(json);                  //这种方法是不可以的,添加到库里之后无法使用空间查询语句查询
                BsonValue bs2 = BsonDocument.Parse(json);               //这种方法才是正确的
                //doc.Add(new BsonElement("geom", bs));
                doc.Add(new BsonElement("geo",bs2));
                //通过循环将所有字段的属性信息存入Collection中
                for (int j = 0; j                 {
                    string tmpFieldVal = fea.GetFieldAsString(j);
                    doc.Add(new BsonElement(fieldNames[j],tmpFieldVal));
                }
                var res  = colSheng.Insert(doc);               
            }

然后,可以查看一下存储到MongoDB中的矢量数据是什么样的

在命令行中输入:
[csharp] view plaincopyprint?01.> db.sheng.find().limit(1) 
> db.sheng.find().limit(1)

结果为
[javascript] view plaincopyprint?01.{ "_id" : ObjectId("5371bf4e1dbba31914224563"), "geo" : { "type" : "Polygon", "coordinates" : [ [ [ 89.8496, 14.093 ], [ 90.3933, 14.004 ], [ 90.2708, 13.4708 ], [ 89.7284, 13.5597 ], [ 89.8496, 14.093 ] ] ] }, "pyname" : "sx", "boxtype" : "inter", "date" : "2012/6/5 12:41:42" } 
{ "_id" : ObjectId("5371bf4e1dbba31914224563"), "geo" : { "type" : "Polygon", "coordinates" : [ [ [ 89.8496, 14.093 ], [ 90.3933, 14.004 ], [ 90.2708, 13.4708 ], [ 89.7284, 13.5597 ], [ 89.8496, 14.093 ] ] ] }, "pyname" : "sx", "boxtype" : "inter", "date" : "2012/6/5 12:41:42" }

可以看到名称为geo的这个Field,里边存的就是矢量要素的坐标信息

空间查询与空间索引

可用的空间操作包括geointersect,geowithin,near等,参考http://docs.mongodb.org/manual/reference/operator/query-geospatial/
这里使用geointersect为例说明一下:
          
[csharp] view plaincopyprint?01.//获取Collection  
02.           MongoDatabase db = server.GetDatabase("aa"); 
03.           MongoCollection colSheng = db.GetCollection("sheng"); 
04.         
05.           //定义一个查询框或查询多边形  
06.           var poly = GeoJson.Polygon
07.               GeoJson.Position(100, 20), 
08.               GeoJson.Position(110, 20), 
09.               GeoJson.Position(110, 40), 
10.               GeoJson.Position(100, 40), 
11.               GeoJson.Position(100, 20)); 
12.           //以这个查询多边形为条件定义一条查询语句  
13.           var queryFilter2 = Query.GeoIntersects("geo", poly); 
14.           //进行查询,输出MongoCursor  
15.           cur = colSheng.FindAs(queryFilter2).SetFields( "pyname", "date"); 
16.           //获取结果  
17.           var res = cur.ToArray(); 
18.           for (int i = 0; i 19.           { 
20.               BsonDocument tmpDoc = res.ElementAt(i); 
21.               //do something you want  
22.           } 
 //获取Collection
            MongoDatabase db = server.GetDatabase("aa");
            MongoCollection colSheng = db.GetCollection("sheng");
        
            //定义一个查询框或查询多边形
            var poly = GeoJson.Polygon(
                GeoJson.Position(100, 20),
                GeoJson.Position(110, 20),
                GeoJson.Position(110, 40),
                GeoJson.Position(100, 40),
                GeoJson.Position(100, 20));
            //以这个查询多边形为条件定义一条查询语句
            var queryFilter2 = Query.GeoIntersects("geo", poly);
            //进行查询,输出MongoCursor
            cur = colSheng.FindAs(queryFilter2).SetFields( "pyname", "date");
            //获取结果
            var res = cur.ToArray();
            for (int i = 0; i             {
                BsonDocument tmpDoc = res.ElementAt(i);
                //do something you want
            }

关于空间索引,可参考http://docs.mongodb.org/manual/applications/geospatial-indexes/
这里不详细说了

空间查询运算的问题:

在使用GeoIntersect进行空间查询时,遇到了查询结果与ArcGIS不一致的情况,详细看了一下,像是MongoDB的一个BUG(目前使用的是2.6.0版本)

具体信息如下(在命令行中操作):

Collection中的坐标

[csharp] view plaincopyprint?01.> db.test.find() 
02.{ "_id" : ObjectId("535884771dbba31858ad2101"), "geo" : { "type" : "Polygon", "coordinates" : [ [ [ 96.722, 38.755 ], [ 97.3482, 38.6922 ], [ 97.1674, 38.0752 ], [ 96.5474, 38.1383 ], [ 96.722, 38.755 ] ] ] } } 
> db.test.find()
{ "_id" : ObjectId("535884771dbba31858ad2101"), "geo" : { "type" : "Polygon", "coordinates" : [ [ [ 96.722, 38.755 ], [ 97.3482, 38.6922 ], [ 97.1674, 38.0752 ], [ 96.5474, 38.1383 ], [ 96.722, 38.755 ] ] ] } }

使用的查询语句

[csharp] view plaincopyprint?01.> db.test.find({ "geo" : { "$geoIntersects" : { "$geometry" : { "type" : "Polygon", "coordinates" : [[[91.0, 33.0], [102.0, 33.0], [102.0, 38.0], [91.0, 38.0], [91.0, 33.0]]] } } } }) 
> db.test.find({ "geo" : { "$geoIntersects" : { "$geometry" : { "type" : "Polygon", "coordinates" : [[[91.0, 33.0], [102.0, 33.0], [102.0, 38.0], [91.0, 38.0], [91.0, 33.0]]] } } } })

查询结果:

[csharp] view plaincopyprint?01.{ "_id" : ObjectId("535884771dbba31858ad2101"), "geo" : { "type" : "Polygon", "coordinates" : [ [ [ 96.722, 38.755 ], [ 97.3482, 38.6922 ], [ 97.1674, 38.0752 ], [ 96.5474, 38.1383 ], [ 96.722, 38.755 ] ] ] } } 
{ "_id" : ObjectId("535884771dbba31858ad2101"), "geo" : { "type" : "Polygon", "coordinates" : [ [ [ 96.722, 38.755 ], [ 97.3482, 38.6922 ], [ 97.1674, 38.0752 ], [ 96.5474, 38.1383 ], [ 96.722, 38.755 ] ] ] } }

但可以看到,collection中只有一条记录,且该记录所有点的Y坐标均大于38.0,为什么查询结果里,这条记录与语句中的Box相交呢。。。很奇怪

因为有这样的问题,所以还不放心直接将空间查询用于实际应用,而是通过一种变通的方法进行简单的空间查询,测试后发现,可能是由于空间索引的问题,这种方式查询比自带的GeoIntersects方法要快

大致思路为:为每一条记录均生成一个最小外接矩形,得到其xmax,xmin,ymax,ymin四个边界值,用数值的形式保存至Collection中,每次进行空间查询时,首先通过最小外接矩形进行一次筛选,判断这些最小外接矩形与查询语句中多边形的最小外接矩形之间的关系,如果相交,那么进行第二步判断,通过Ogr组件判断实际的多边形是否相交,返回最后结果

首先是生成最小外接矩形的代码:
          
[csharp] view plaincopyprint?01.//获取Collection  
02.            MongoDatabase db = server.GetDatabase("aa"); 
03.            MongoCollection colsheng= db.GetCollection("sheng"); 
04.            //查询所有记录  
05.            var cur = colsheng.FindAllAs(); 
06.            long totalCount = cur.Count(); 
07.            //遍历所有记录  
08.            for (int i = 0; i 09.            { 
10.                if (i * 1000 >= totalCount) continue; 
11.                int skip = i * 1000; 
12.                var cur2 = cur.Clone().SetSkip(skip).SetLimit(1000); 
13.                var lst = cur2.ToArray(); 
14.                for (int j = 0; j 15.                { 
16.                    //获取一条记录对应的BsonDocument  
17.                    BsonDocument doc = lst[j]; 
18.                        var id = doc["_id"];                    //该记录对应的ID  
19.                        BsonDocument geo = doc["geo"].ToBsonDocument();     
20.                        string geostr = geo[1].ToString();        //该记录对应空间信息的Json字符串  
21.                        List coords = GetCoordLstFromString(geostr);        //解析Json串,获得所有点的坐标(这里子函数就省略了)  
22.                        double xmin = 181, xmax = -181, ymin = 91, ymax = -91;        //四个边界值,由于图层为经纬度,所以初值设为这些值  
23.                        //计算最大最小值  
24.                        for (int k = 0; k 25.                        { 
26.                            if (k % 2 == 0) 
27.                            { 
28.                                if (coords[k] 29.                                if (coords[k] > xmax) xmax = coords[k]; 
30.                            } 
31.                            else 
32.                            { 
33.                                if (coords[k] 34.                                if (coords[k] > ymax) ymax = coords[k]; 
35.                            } 
36.                        } 
37.                        //将最大最小值写入Collection  
38.                        var tmpQuery = Query.EQ("_id", id); 
39.                        var tmpUpdate = MongoDB.Driver.Builders.Update.Set("xmax", xmax); 
40.                        var tmpres = col02c.Update(tmpQuery, tmpUpdate); 
41.                        tmpUpdate = MongoDB.Driver.Builders.Update.Set("xmin", xmin); 
42.                        tmpres = col02c.Update(tmpQuery, tmpUpdate); 
43.                        tmpUpdate = MongoDB.Driver.Builders.Update.Set("ymax", ymax); 
44.                        tmpres = col02c.Update(tmpQuery, tmpUpdate); 
45.                        tmpUpdate = MongoDB.Driver.Builders.Update.Set("ymin", ymin); 
46.                        tmpres = col02c.Update(tmpQuery, tmpUpdate); 
47.                    } 
48.                } 
//获取Collection
            MongoDatabase db = server.GetDatabase("aa");
            MongoCollection colsheng= db.GetCollection("sheng");
            //查询所有记录
            var cur = colsheng.FindAllAs();
            long totalCount = cur.Count();
            //遍历所有记录
            for (int i = 0; i             {
                if (i * 1000 >= totalCount) continue;
                int skip = i * 1000;
                var cur2 = cur.Clone().SetSkip(skip).SetLimit(1000);
                var lst = cur2.ToArray();
                for (int j = 0; j                 {
                    //获取一条记录对应的BsonDocument
                    BsonDocument doc = lst[j];
                        var id = doc["_id"];                    //该记录对应的ID
                        BsonDocument geo = doc["geo"].ToBsonDocument();   
                        string geostr = geo[1].ToString();        //该记录对应空间信息的Json字符串
                        List coords = GetCoordLstFromString(geostr);        //解析Json串,获得所有点的坐标(这里子函数就省略了)
                        double xmin = 181, xmax = -181, ymin = 91, ymax = -91;        //四个边界值,由于图层为经纬度,所以初值设为这些值
                        //计算最大最小值
                        for (int k = 0; k                         {
                            if (k % 2 == 0)
                            {
                                if (coords[k]                                 if (coords[k] > xmax) xmax = coords[k];
                            }
                            else
                            {
                                if (coords[k]                                 if (coords[k] > ymax) ymax = coords[k];
                            }
                        }
                        //将最大最小值写入Collection
                        var tmpQuery = Query.EQ("_id", id);
                        var tmpUpdate = MongoDB.Driver.Builders.Update.Set("xmax", xmax);
                        var tmpres = col02c.Update(tmpQuery, tmpUpdate);
                        tmpUpdate = MongoDB.Driver.Builders.Update.Set("xmin", xmin);
                        tmpres = col02c.Update(tmpQuery, tmpUpdate);
                        tmpUpdate = MongoDB.Driver.Builders.Update.Set("ymax", ymax);
                        tmpres = col02c.Update(tmpQuery, tmpUpdate);
                        tmpUpdate = MongoDB.Driver.Builders.Update.Set("ymin", ymin);
                        tmpres = col02c.Update(tmpQuery, tmpUpdate);
                    }
                }

然后是查询的代码:
          
[csharp] view plaincopyprint?01.//获取Collection  
02.            MongoDatabase db = server.GetDatabase("aa"); 
03.            MongoCollection colSheng = db.GetCollection("zy02c"); 
04.            //第一步,通过四边界筛选,  
05.            var query = Query.And(Query.GT("xmax", 91.0), Query.LT("xmin", 102.0), Query.GT("ymax", 33.0), Query.LT("ymin", 38.0)); 
06.            var cur = colSheng.FindAs(query); 
07.            //定义第二空间运算时的条件多边形(Ogr格式的定义)  
08.            Geometry queryGeoLR = new Geometry(wkbGeometryType.wkbLinearRing); 
09.            queryGeoLR.AddPoint(91.0, 33.0,0); 
10.            queryGeoLR.AddPoint(102.0, 33.0,0); 
11.            queryGeoLR.AddPoint(102.0, 38.0,0); 
12.            queryGeoLR.AddPoint(91.0, 38.0,0); 
13.            queryGeoLR.AddPoint(91.0, 33.0,0); 
14.            Geometry queryGeo = new Geometry(wkbGeometryType.wkbPolygon); 
15.            queryGeo.AddGeometry(queryGeoLR); 
16.            //循环查询到的结果  
17.            var lst = cur.ToArray(); 
18.            for (int i = lst.Length-1; i >=0; i--) 
19.            { 
20.                //获取当前记录对应的BsonDocument  
21.                BsonDocument doc = lst[i]; 
22.                var id = doc["_id"];            //当前记录的ID  
23.                BsonDocument geo = doc["geo"].ToBsonDocument(); 
24.                string geostr = geo[1].ToString();        //当前记录对应空间信息的Json字符串  
25.                 
26.                //通过Json串获取坐标值,并生成对应的Geometry对象  
27.                List coords = GetCoordLstFromString(geostr); 
28.                Geometry resGeoLR = new Geometry(wkbGeometryType.wkbLinearRing); 
29.                for (int j = 0; j 30.                { 
31.                    resGeoLR.AddPoint_2D(coords[j], coords[j + 1]); 
32.                } 
33.                resGeoLR.AddPoint_2D(coords[0], coords[1]); 
34.                Geometry resGeo = new Geometry(wkbGeometryType.wkbPolygon); 
35.                resGeo.AddGeometry(resGeoLR); 
36.                //判断是该Geometry与条件多边形是否相交  
37.                if (resGeo.Intersects(queryGeo)) 
38.                { 
39.                        //do something  
40.                } 
41.            } 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Which version is generally used for mongodb? Which version is generally used for mongodb? Apr 07, 2024 pm 05:48 PM

It is recommended to use the latest version of MongoDB (currently 5.0) as it provides the latest features and improvements. When selecting a version, you need to consider functional requirements, compatibility, stability, and community support. For example, the latest version has features such as transactions and aggregation pipeline optimization. Make sure the version is compatible with the application. For production environments, choose the long-term support version. The latest version has more active community support.

The vitality of super intelligence awakens! But with the arrival of self-updating AI, mothers no longer have to worry about data bottlenecks The vitality of super intelligence awakens! But with the arrival of self-updating AI, mothers no longer have to worry about data bottlenecks Apr 29, 2024 pm 06:55 PM

I cry to death. The world is madly building big models. The data on the Internet is not enough. It is not enough at all. The training model looks like "The Hunger Games", and AI researchers around the world are worrying about how to feed these data voracious eaters. This problem is particularly prominent in multi-modal tasks. At a time when nothing could be done, a start-up team from the Department of Renmin University of China used its own new model to become the first in China to make "model-generated data feed itself" a reality. Moreover, it is a two-pronged approach on the understanding side and the generation side. Both sides can generate high-quality, multi-modal new data and provide data feedback to the model itself. What is a model? Awaker 1.0, a large multi-modal model that just appeared on the Zhongguancun Forum. Who is the team? Sophon engine. Founded by Gao Yizhao, a doctoral student at Renmin University’s Hillhouse School of Artificial Intelligence.

Slow Cellular Data Internet Speeds on iPhone: Fixes Slow Cellular Data Internet Speeds on iPhone: Fixes May 03, 2024 pm 09:01 PM

Facing lag, slow mobile data connection on iPhone? Typically, the strength of cellular internet on your phone depends on several factors such as region, cellular network type, roaming type, etc. There are some things you can do to get a faster, more reliable cellular Internet connection. Fix 1 – Force Restart iPhone Sometimes, force restarting your device just resets a lot of things, including the cellular connection. Step 1 – Just press the volume up key once and release. Next, press the Volume Down key and release it again. Step 2 – The next part of the process is to hold the button on the right side. Let the iPhone finish restarting. Enable cellular data and check network speed. Check again Fix 2 – Change data mode While 5G offers better network speeds, it works better when the signal is weaker

The difference between nodejs and vuejs The difference between nodejs and vuejs Apr 21, 2024 am 04:17 AM

Node.js is a server-side JavaScript runtime, while Vue.js is a client-side JavaScript framework for creating interactive user interfaces. Node.js is used for server-side development, such as back-end service API development and data processing, while Vue.js is used for client-side development, such as single-page applications and responsive user interfaces.

The U.S. Air Force showcases its first AI fighter jet with high profile! The minister personally conducted the test drive without interfering during the whole process, and 100,000 lines of code were tested for 21 times. The U.S. Air Force showcases its first AI fighter jet with high profile! The minister personally conducted the test drive without interfering during the whole process, and 100,000 lines of code were tested for 21 times. May 07, 2024 pm 05:00 PM

Recently, the military circle has been overwhelmed by the news: US military fighter jets can now complete fully automatic air combat using AI. Yes, just recently, the US military’s AI fighter jet was made public for the first time and the mystery was unveiled. The full name of this fighter is the Variable Stability Simulator Test Aircraft (VISTA). It was personally flown by the Secretary of the US Air Force to simulate a one-on-one air battle. On May 2, U.S. Air Force Secretary Frank Kendall took off in an X-62AVISTA at Edwards Air Force Base. Note that during the one-hour flight, all flight actions were completed autonomously by AI! Kendall said - "For the past few decades, we have been thinking about the unlimited potential of autonomous air-to-air combat, but it has always seemed out of reach." However now,

Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! May 06, 2024 pm 04:13 PM

The latest video of Tesla's robot Optimus is released, and it can already work in the factory. At normal speed, it sorts batteries (Tesla's 4680 batteries) like this: The official also released what it looks like at 20x speed - on a small "workstation", picking and picking and picking: This time it is released One of the highlights of the video is that Optimus completes this work in the factory, completely autonomously, without human intervention throughout the process. And from the perspective of Optimus, it can also pick up and place the crooked battery, focusing on automatic error correction: Regarding Optimus's hand, NVIDIA scientist Jim Fan gave a high evaluation: Optimus's hand is the world's five-fingered robot. One of the most dexterous. Its hands are not only tactile

BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? Apr 26, 2024 am 09:40 AM

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

2024 QS ranking released! Computer science MIT dominates the list, Tsinghua University is 11th, Peking University is 15th 2024 QS ranking released! Computer science MIT dominates the list, Tsinghua University is 11th, Peking University is 15th Apr 18, 2024 pm 09:04 PM

The 2024QS World University Rankings by Subject is here! Overall, there is little change from 2023. According to the official website information, the 2024QS World University Rankings by Subject covers 55 subdivisions and 5 major academic fields. A total of 1,559 universities participated in the ranking, 64 of which are new faces this year (that is, they will not appear in the 2023 ranking). Among these 64 colleges and universities, 14 are truly appearing for the first time. Among them is the University of Chinese Academy of Sciences. According to the refined subjects, Music is a new subject introduced this year. In addition, the data science and artificial intelligence rankings have been expanded, with 51 new universities added to the rankings. The top five in the overall list are: Massachusetts Institute of Technology, University of Cambridge, University of Oxford, and Harvard University

See all articles