Git Product home page Git Product logo

Comments (4)

ni1o1 avatar ni1o1 commented on August 25, 2024

根据研究的城市地理范围确定

bounds=[左下经度,左下纬度,右上经度,右上纬度]

如果你有研究区域的shp或geojson文件,也可以用下面代码直接计算

#读取研究范围
area = gpd.read_file('Data/研究区域.shp')
#获取研究区域的bounds
bounds = area.unary_union.bounds

from transbigdata.

yinglu123456 avatar yinglu123456 commented on August 25, 2024

你好,我想跟进一下这个问题,如果bounds设置为在南半球的话,比如bounds = [153.0084,-27.4875,153.0516, -27.5219] ,使用 tbd.plot_map( ) 会报错:ValueError: Width and height must be >= 0

from transbigdata.

ni1o1 avatar ni1o1 commented on August 25, 2024

你好,我想跟进一下这个问题,如果bounds设置为在南半球的话,比如bounds = [153.0084,-27.4875,153.0516, -27.5219] ,使用 tbd.plot_map( ) 会报错:ValueError: Width and height must be >= 0

bounds = [153.0084,-27.4875,153.0516, -27.5219] 应改为[153.0084, -27.5219,153.0516,-27.4875]

import transbigdata as tbd
import matplotlib.pyplot as plt
# bounds = [lon1,lat1,lon2,lat2],其中lon1<lon2,lat1<lat2
bounds = [153.0084, -27.5219,153.0516,-27.4875]
tbd.plot_map(plt,bounds)
plt.show()

from transbigdata.

yinglu123456 avatar yinglu123456 commented on August 25, 2024

谢谢!

from transbigdata.

Related Issues (20)

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.