CN109859287A - A method of automatically generating vector sector - Google Patents

A method of automatically generating vector sector Download PDF

Info

Publication number
CN109859287A
CN109859287A CN201910035995.8A CN201910035995A CN109859287A CN 109859287 A CN109859287 A CN 109859287A CN 201910035995 A CN201910035995 A CN 201910035995A CN 109859287 A CN109859287 A CN 109859287A
Authority
CN
China
Prior art keywords
fan
sector
centre point
coordinate value
angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910035995.8A
Other languages
Chinese (zh)
Other versions
CN109859287B (en
Inventor
唐铃
彭秋志
罗志清
陈相泽
彭玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunming University of Science and Technology
Original Assignee
Kunming University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunming University of Science and Technology filed Critical Kunming University of Science and Technology
Priority to CN201910035995.8A priority Critical patent/CN109859287B/en
Publication of CN109859287A publication Critical patent/CN109859287A/en
Application granted granted Critical
Publication of CN109859287B publication Critical patent/CN109859287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention discloses a kind of method for automatically generating vector sector, utilize centre point coordinate, fan-shaped radius length, first fan start angle and number of sectors, each extreme coordinates are calculated, then successively centre point is connect to obtain fan-shaped radius with each endpoint, it is last that sector is generated according to selected fan edge type;The isogonism that the present invention rapid automatized can generate any first fan start angle, any sector quantity and any radius length is fan-shaped, and the deficiency of any start angle, any sector quantity and any radius length isogonism sector can not be generated quick, repeatable, in high precision by compensating for GIS platform.

Description

A method of automatically generating vector sector
Technical field
The present invention relates to GIS spatial analysis field more particularly to a kind of two-dimensional sector-shaped vector space analytical unit division sides Method more particularly relates to a kind of method for automatically generating vector sector, is embodied in based on any first fan start angle, arbitrarily The generation of the equal angles sector figure of number of sectors and three kinds of fan edge types.
Background technique
Sector analysis method again can abbreviation sector method, be one kind using appropriate place as the center of circle, using suitable length as radius, by mesh Mark object is divided into several fan-shaped regions, and then chooses suitable parameter and carry out subregion statistics, and result is expressed in a suitable form, So as to descriptive study object morphology and its GIS spacial analytical method of change direction feature.Sector analysis method is as a kind of GIS Spatial Overlap Analysis method has been widely used in the planning of all kinds of National land spaces and management domain, for example, city planning design with Researcher usually needs for the completed region of the city range in multiple periods to be overlapped, and is divided into several fan-shaped orientation Area, by relevant parameters such as area, the growth intensities of each sector of statistics, to quantitatively determine the dominant direction of Urban Expansion; The departments such as city traffic control, first aid, environmental sanitation usually need overall balance using downtown or its general headquarters location as the not Tongfang in the center of circle Upward facility and personnel depaly;The police deployment patrol police strength, in terms of also usually need by criminal phenomena Hot spot azimuth information, using sector method with can be convenient assist solve such issues that.
Sector typically refers to a kind of two-dimensional sector-shaped vector space analytical unit, and division mode is the core of Sector analysis method Place.Sector, which divides, relates generally to that centre point is determining, radius length is determining, first fan start angle is determining, number of sectors determines four A aspect.The technical solution for realizing that sector divides in GIS software at present mainly has following two kinds:
Technical solution one: method is drawn in human-computer interaction.Usual way be under editing mode with man-machine interaction mode draw radioactive ray, Equal round or sector, while needing to combine to measure, estimate, replicate, rotate, cut, connect, be displaced etc. and operate.The technical solution Have enough flexibilities, but there are processes cumbersome, inefficiency, the problems such as reusability is poor, standardization degree is low.
Technical solution two: method is drawn in the automation based on secondary development tool.It is developed there are a kind of using Python ArcGIS spatial manipulation wscript.exe, it is characterized in that: the vector dot file of input coordinate information containing centre point, input expression are empty Between entity morphology feature vector face file, input number of sectors, output is divided into the vector face file of designated sector quantity. The technical solution has the advantages that high degree of automation, simple to operation, but exists following insufficient: cannot artificially determine half path length Degree;First fan start angle cannot be specified;Specific implementation process and its wscript.exe are undisclosed.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of methods for automatically generating vector sector, comprising the following steps:
(1) select centre point ();
(2) according to head fan start angle and number of sectors calculate by centre point () and endpoint (,) straight line with The angle of X-axis, the sum of all fan-shaped central angles are 360 °, in conjunction with the angle, fan-shaped radius and centre point coordinate value, are calculated each Extreme coordinates, specific formula for calculation are as follows:
In formula,For by centre point () and endpoint (,) straight line and X-axis angle;Headed by fanned initial line and X The angle of axis;N is number of sectors, and n is the natural number greater than 1;The X-coordinate value and Y-coordinate value of respectively i-th endpoint;The respectively X-coordinate value and Y-coordinate value of centre point;For fan-shaped radius length;
(3) it is sequentially connected centre point and endpoint, forms fan-shaped radius;
(4) sector of specified fan edge type is generated.
The sector that step (4) fans edge type is arc side fan, straight flange fan or boundless fan;When for arc side fan, with () For the center of circle, circle is generated by radius of R, which is superimposed with fan-shaped radius can be obtained arc side fan;When for straight flange fan, use Straight line is sequentially connected all adjacent endpoints and obtains regular polygon, just can obtain straight flange fan;When for boundless fan, just no longer need to carry out Operation.
The invention has the characteristics that:
(1) isogonism of any first fan start angle, any sector quantity and any radius length can be generated with fast and automatically changing It is fan-shaped.
(2) arc side fan, straight flange fan and the boundless sector for fanning three classes fan edge type altogether are produced.
(3) degree of repeatability is high, and shape positional accuracy is high, and generating process specification.
Detailed description of the invention
Fig. 1 is 1 flow chart of the embodiment of the present invention;
Fig. 2 is that the embodiment of the present invention 1 generates fan-shaped process schematic;
Fig. 3 is 2 Hong Kong Island construction land distribution schematic diagram of embodiment;
Fig. 4 is the DEM schematic diagram of 2 Hong Kong Island of embodiment;
Fig. 5 is that 2 start angle of embodiment is that the arc side isogonism fan that 15 ° of number of sectors are 7 shows with the stacked of Hong Kong Island construction land It is intended to.
Specific embodiment
The present invention is described in further details in the following with reference to the drawings and specific embodiments.
Embodiment 1
A method of vector sector being automatically generated, as shown in Figure 1, 2, comprising the following steps:
(1) select centre point () it is used as coordinate origin;
(2) according to head fan start angle and number of sectors calculate by centre point () and endpoint (,) straight line with The angle of X-axis, the sum of all fan-shaped central angles are 360 °, in conjunction with the angle, fan-shaped radius and centre point coordinate value, are calculated each Extreme coordinates, specific formula for calculation are as follows:
In formula,For by centre point () and endpoint (,) straight line and X-axis angle;Headed by fanned initial line and X The angle of axis;N is number of sectors, and n is the natural number greater than 1;The X-coordinate value and Y-coordinate value of respectively i-th endpoint;The respectively X-coordinate value and Y-coordinate value of centre point;For fan-shaped radius length;
(3) it is sequentially connected centre point and endpoint, forms fan-shaped radius;
(4) sector of specified fan edge type is generated, the sector of fan edge type is arc side fan, straight flange fan or boundless fan;When for arc side When fan, with () it is the center of circle, circle is generated by radius of R, which is superimposed with fan-shaped radius can be obtained arc side fan; When for straight flange fan, all adjacent endpoints are sequentially connected with straight line and obtain regular polygon, just can obtain straight flange fan;When for boundless fan When, it just no longer needs to be operated.
Embodiment 2
Using the method for automatically generating vector sector of embodiment 1, using ArcGIS as GIS analysis platform, with Python As additional programming language, using the construction land of the Hong Kong Island as data, as shown in Figure 3, the specific steps are as follows:
It (1) the use of XY coordinate value under WGS_1984_UTM_Zone_50N projected coordinate system is (209653.64,2465025.10) Point as centre point, i.e.,As coordinate origin;
(2) be fan-shaped radius length (R) with 10620.08 meters, with 15 ° for start angle (), number of sectors is 7, all The sum of fan-shaped central angle be 360 °, according to head fan start angle and number of sectors calculate by centre point () and endpoint (,) straight line and the angle of X-axis calculate each extreme coordinates later in conjunction with the angle, fan-shaped radius and centre point coordinate value, Specific formula for calculation is as follows:
In formula,For by centre point () and endpoint (,) straight line and X-axis angle;Headed by fanned initial line and X The angle of axis;N is number of sectors;The X-coordinate value and Y-coordinate value of respectively i-th endpoint;Respectively centre point X-coordinate value and Y-coordinate value;R is fan-shaped radius length;
XY coordinate value of each endpoint in WGS_1984_UTM_Zone_50N coordinate system, the coordinate value difference of 7 points is calculated For;[219911.85,2467773.78], [213900.53,2474759.06], [204691.21,2474414.48], [199218.71,2466999.50], [201603.92,2458097.76], [210050.74,2454412.45], [218198.53, 2458718.68];7 extreme coordinates values are sequentially written in text document;Utilize the XY in text document Coordinate value creation includes the temporary layers of endpoint;Temporary layers are switched to the endpoint file being storable in storage equipment;
(3) it is sequentially connected centre point and endpoint, forms fan radial line:
Centre point coordinate value and 7 extreme coordinates values are sequentially written in text document;Utilize the XY coordinate value in text document Creation includes the temporary layers of centre point and end point pair;Temporary layers are switched to the point text comprising centre point and end point pair Part generates fan diameter line file according to the dot file of generation;
(4) sector of specified fan edge type is generated:
To generate sector as arc side fan sector in the present embodiment, as shown in figure 4, all one circumference of fan-shaped formation, with arc side Sector diagram is fanned as partitioned file, subregion statistics is carried out to Hong Kong Island construction land, obtains the construction land gross area in each subregion, such as Shown in table 1;Construction land area is minimum in the 2nd sector according to table 1, and construction land area is most in the 3rd sector;Root According to the area distributions of construction land in each sector it is found that the construction land on the Hong Kong Island prefers to be distributed in its northwestward, because This soil that can be suitable for construction land distribution on initial guess Hong Kong Island is mainly distributed on the northwestward;In conjunction with the landform of the Hong Kong Island (shown in Fig. 5) can further learn that the positive the north in the Hong Kong Island is also suitable for construction land distribution, but because of shared soil in the 2nd sector Ground area is less, so construction land area is least in several sectors in data;The Hong Kong Island can be speculated according to analysis More residents can be distributed in 2nd, 3 sector, if that situation is consistent mix in medical treatment, police strength, education equal part That distributes is more.
Table 1
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, and it is any It is familiar with the people of the technology within the technical scope disclosed by the invention, any changes or substitutions that can be easily thought of, whether replaces GIS Platform still replaces programming language, and all the step of illustrating by the method for the invention realizations should all be covered in protection of the invention Within range.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (3)

1. a kind of method for automatically generating vector sector, which comprises the following steps:
(1) select centre point ();
(2) according to head fan start angle and number of sectors calculate by centre point () and endpoint (,) straight line and X The angle of axis calculates each extreme coordinates, specific formula for calculation is as follows in conjunction with the angle, fan-shaped radius and centre point coordinate value:
In formula,For by centre point () and endpoint (,) straight line and X-axis angle;Headed by fanned initial line and X The angle of axis;N is number of sectors, and n is the natural number greater than 1;The X-coordinate value and Y-coordinate value of respectively i-th endpoint;The respectively X-coordinate value and Y-coordinate value of centre point;For fan-shaped radius length;
(3) it is sequentially connected centre point and endpoint, forms fan-shaped radius;
(4) sector of specified fan edge type is generated.
2. automatically generating the method for vector sector according to claim 1, which is characterized in that the fan of step (4) fan edge type Shape is arc side fan, straight flange fan or boundless fan.
3. automatically generating the method for vector sector according to claim 2, which is characterized in that when for arc side fan, with () it is the center of circle, circle is generated by radius of R, which is superimposed with fan-shaped radius and obtains arc side fan;It is fanned when for straight flange When, all adjacent endpoints are sequentially connected with straight line and obtain regular polygon, obtain straight flange fan;When for boundless fan, no longer need to carry out Operation.
CN201910035995.8A 2019-01-15 2019-01-15 Method for automatically generating vector sector Active CN109859287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910035995.8A CN109859287B (en) 2019-01-15 2019-01-15 Method for automatically generating vector sector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910035995.8A CN109859287B (en) 2019-01-15 2019-01-15 Method for automatically generating vector sector

Publications (2)

Publication Number Publication Date
CN109859287A true CN109859287A (en) 2019-06-07
CN109859287B CN109859287B (en) 2023-04-11

Family

ID=66894856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910035995.8A Active CN109859287B (en) 2019-01-15 2019-01-15 Method for automatically generating vector sector

Country Status (1)

Country Link
CN (1) CN109859287B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583360A (en) * 2020-06-04 2020-08-25 长沙景嘉微电子股份有限公司 Method and device for generating sector graph, computer storage medium and electronic equipment
CN111583361A (en) * 2020-06-04 2020-08-25 长沙景嘉微电子股份有限公司 Method and device for generating circular ring graph, computer storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05174153A (en) * 1991-12-25 1993-07-13 Mitsubishi Electric Corp Drawing data processor
JP2000285247A (en) * 1999-03-31 2000-10-13 Digital Electronics Corp Method and system for plotting sectorial figure
US20050182764A1 (en) * 2004-02-13 2005-08-18 Evans Lynne M. System and method for arranging concept clusters in thematic neighborhood relationships in a two-dimensional visual display space
JP2006048195A (en) * 2004-08-02 2006-02-16 Central Res Inst Of Electric Power Ind Visualization method for time-series data, visualization program and visualization system
CN102279874A (en) * 2010-06-14 2011-12-14 微软公司 Fast edge routing for interactive diagramming
CN102938155A (en) * 2012-11-21 2013-02-20 北京东进记录科技有限公司 Method and device for drawing sector airspace
CN205373239U (en) * 2015-12-14 2016-07-06 四川长虹电器股份有限公司 A back shroud that is used for refrigerator compressor installation room
CN107121061A (en) * 2017-03-15 2017-09-01 大连理工大学 A kind of drilling point law vector method for solving constrained based on elliptic cone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05174153A (en) * 1991-12-25 1993-07-13 Mitsubishi Electric Corp Drawing data processor
JP2000285247A (en) * 1999-03-31 2000-10-13 Digital Electronics Corp Method and system for plotting sectorial figure
US20050182764A1 (en) * 2004-02-13 2005-08-18 Evans Lynne M. System and method for arranging concept clusters in thematic neighborhood relationships in a two-dimensional visual display space
JP2006048195A (en) * 2004-08-02 2006-02-16 Central Res Inst Of Electric Power Ind Visualization method for time-series data, visualization program and visualization system
CN102279874A (en) * 2010-06-14 2011-12-14 微软公司 Fast edge routing for interactive diagramming
CN102938155A (en) * 2012-11-21 2013-02-20 北京东进记录科技有限公司 Method and device for drawing sector airspace
CN205373239U (en) * 2015-12-14 2016-07-06 四川长虹电器股份有限公司 A back shroud that is used for refrigerator compressor installation room
CN107121061A (en) * 2017-03-15 2017-09-01 大连理工大学 A kind of drilling point law vector method for solving constrained based on elliptic cone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583360A (en) * 2020-06-04 2020-08-25 长沙景嘉微电子股份有限公司 Method and device for generating sector graph, computer storage medium and electronic equipment
CN111583361A (en) * 2020-06-04 2020-08-25 长沙景嘉微电子股份有限公司 Method and device for generating circular ring graph, computer storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109859287B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN110349252A (en) A method of small curvature part actual processing curve is constructed based on point cloud boundary
CN105469404B (en) A kind of rotary body approximating method and device based on three dimensional point cloud
US7711360B2 (en) Radio frequency planning with consideration of inter-building effects
CN108229740B (en) Method and device for determining business circle boundary, server and storage medium
CN105103195A (en) Image processing
CN105635964A (en) Wireless sensor network node localization method based on K-medoids clustering
CN106126794B (en) A kind of ray autonomous tracing in intelligent vehicle of triangle mesh curved surface bottom cutting surface dynamic adjustment
CN109859287A (en) A method of automatically generating vector sector
US20120089333A1 (en) Digital map projection
CN107271957A (en) Indoor 3-D positioning method based on TDOA and TOA
CN106971087A (en) A kind of Flatness error evaluation method based on secondary learning aid algorithm of climbing the mountain
CN105427177A (en) Automatic farmland four-boundary calculation method based on GIS (Geographic Information System)
CN107622530A (en) A kind of triangulation network cutting method of efficiently robust
JP4185698B2 (en) Mesh generation method
CN105203994B (en) A kind of electronic tag localization method, device, server and system
CN109918858B (en) CST simulation antenna data visualization method
CN109582745A (en) The method of differential ray method decision-point and closed figure positional relationship
CN105894553B (en) A kind of Street Space form layout method based on grid selection
CN116822160A (en) Cartesian grid generation method, device, equipment and medium
Nguyen et al. Realistic road path reconstruction from GIS data
CN105785919A (en) Point cloud five-axis no-global-interference cutter axis vector feasible domain calculation method
JP2020533685A (en) QUADOR: Rotating quadric beam for grid
US6446031B1 (en) Cone mapping physical optics for design of indoor communication system
CN112020091B (en) Weak coverage processing method and device based on digitized geographic information
CN111220943A (en) Positioning method, positioning system, computer-readable storage medium and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant