CN113486133A - Population distribution information generation method, population distribution information generation device, server and storage medium - Google Patents

Population distribution information generation method, population distribution information generation device, server and storage medium Download PDF

Info

Publication number
CN113486133A
CN113486133A CN202110795649.7A CN202110795649A CN113486133A CN 113486133 A CN113486133 A CN 113486133A CN 202110795649 A CN202110795649 A CN 202110795649A CN 113486133 A CN113486133 A CN 113486133A
Authority
CN
China
Prior art keywords
data
population
distribution information
target
parameter
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.)
Pending
Application number
CN202110795649.7A
Other languages
Chinese (zh)
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.)
Smartsteps Data Technology Co ltd
Original Assignee
Smartsteps Data Technology Co ltd
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 Smartsteps Data Technology Co ltd filed Critical Smartsteps Data Technology Co ltd
Priority to CN202110795649.7A priority Critical patent/CN113486133A/en
Publication of CN113486133A publication Critical patent/CN113486133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data

Abstract

The invention relates to the technical field of big data, and provides a population distribution information generation method, a population distribution information generation device, a population distribution information generation server and a storage medium, which are applied to the server, wherein the population distribution information generation method comprises the following steps: acquiring population data, a first parameter and a second parameter of a grid to be processed; determining target population data from the population data according to the first parameter; performing segmentation processing on the target population data according to the second parameters to obtain data segments and segment configuration of the data segments; and generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identification of the grid to be processed. The invention avoids unnecessary data processing and reduces the time and disk space waste in the processing process.

Description

Population distribution information generation method, population distribution information generation device, server and storage medium
Technical Field
The invention relates to the technical field of big data, in particular to a population distribution information generation method, a population distribution information generation device, a population distribution information generation server and a storage medium.
Background
With the popularization of the internet, the analysis of population distribution has important significance on urban traffic planning, emergency early warning and travel planning. In the prior art, the human mouth data is usually processed by using arcgis (the arcgis is a platform that provides a scalable and comprehensive Geographic Information System (GIS) for users), so as to obtain a corresponding population distribution map. While the arcgis cannot be produced as required when processing data, not all the produced slices are used, thereby causing a great waste of time and disk space.
Disclosure of Invention
The invention realizes the data processing according to the requirement to obtain the required population distribution information, avoids unnecessary data processing and reduces the great waste of time and disk space in the processing process.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for generating population distribution information, applied to a server, the method including: acquiring population data, a first parameter and a second parameter of a grid to be processed; determining target population data from the population data according to the first parameter; performing segmentation processing on the target population data according to the second parameters to obtain data segments and segment configuration of the data segments; and generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identification of the grid to be processed.
In a second aspect, the present invention provides a population distribution information generating apparatus applied to a server, the apparatus including: the acquisition module is used for acquiring population data, a first parameter and a second parameter of a grid to be processed; a determining module for determining target population data from the population data according to the first parameter; the segmentation module is used for carrying out segmentation processing on the target population data according to the second parameter to obtain data segments and segment configuration of the data segments; and the generation module is used for generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identifications of the grid to be processed.
In a third aspect, the present invention provides a server, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the population distribution information generating method when executing the computer program.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the demographic information generation method as described above.
Compared with the prior art, the invention provides a population distribution information generation method, a population distribution information generation device, a population distribution information generation server and a storage medium, wherein the population distribution information generation method, the population distribution information generation device, the population distribution information generation server and the storage medium can determine target population data to be processed according to a first parameter, perform segmentation and segmentation configuration on the target population data according to a second parameter, and finally generate population distribution information of the target population data according to the segmentation, the segmentation configuration and grid identification, so that the data can be processed according to needs, unnecessary data processing is avoided, and great waste of time and disk space in the processing process is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a method for generating population distribution information according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of another method for generating population distribution information according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating another method for generating demographic distribution information according to an embodiment of the present invention.
Fig. 4 is an exemplary diagram of a population distribution style file according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating another method for generating demographic distribution information according to an embodiment of the present invention.
Fig. 6 is a block diagram illustrating a population distribution information generating apparatus according to an embodiment of the present invention.
Fig. 7 is a flowchart illustrating a specific implementation manner provided in an embodiment of the present invention.
Fig. 8 is a population distribution diagram of a dimension attribute according to an embodiment of the present invention.
Fig. 9 is a population distribution diagram of another dimension attribute provided by an embodiment of the present invention.
Fig. 10 is a block diagram of a population distribution information generating apparatus according to an embodiment of the present invention.
Icon: 100-population distribution information generating means; 110-an obtaining module; 120-a determination module; 130-a segmentation module; 140-a generation module; 150-rendering module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
The existing processing steps of arcgis mainly comprise the following stages: preparing data; merging the data to generate a shape file; debugging a data segmentation pattern; generating a rendering slice; issuing slicing service; and using the generated service address to configure the page or writing the customized page. The shape file is a non-topological simple format for storing geometric position and attribute information of geographic elements, and the geographic elements in the shape file can be represented by points, lines or planes (areas). One grid in the image to be displayed corresponds to one picture, the picture is called a slice, and all slices in the image to be displayed in the arcgis are generated by the server in advance.
In the present embodiment, as an example, the process of generating the population distribution map by using the arcgis is as follows:
(1) the area to be displayed is divided into a plurality of grids, population attribute data of the corresponding grids are prepared and put into a data table T, and for example, the number of working population under 35 years old in the 12eb156 grid is 623.
(2) Combining the spatial grid data and the population attribute data to generate a shape file S;
(3) selecting a prepared shape file S in an arcgis tool;
(4) configuring a segmentation style D according to the data distribution condition of the population attribute;
(5) producing a slice X according to the segmentation style D and the shape file S;
(6) issuing a switching service to obtain a calling address U;
(7) and calling U on the page, and displaying the population distribution diagram to show the thermodynamic distribution of the population.
In the process of using the arcgis, the applicant finds that the arcgis mainly has the following defects, and the management cost, the labor cost, the time cost and the resource cost of generating the population distribution map by using the arcgis are high.
First, in arcgis, the demographic profile is published in the form of a service, the server provides a call address of the demographic profile, and the client accesses the service to display the demographic profile through the call address, but since the population attributes have many dimensions (for example, 18-30 years old, westward, population or work or residence in guangzhou for more than 15 days in a month), the cross combination of the attributes of the multiple dimensions is immeasurable, and for arcgis, each combination publishes a corresponding service, the published service may be countless, (for example, population or work or residence in 18-30 years old, westward, and guangzhou for more than 15 days in a month, such as the multi-dimensional cross has various scenes in actual business), the number of published services may be countless, which directly results in an increase in management cost of the services, and in general, when a shape file is generated, spatial grid data and population attribute data need to be merged by manpower, more than 100 ten thousand grid data and less than 30 ten thousand grid data of a city are needed, and a next process can be started after manual single processing is completed, so that the increase in labor cost and time cost is brought.
Secondly, slices need to be produced in advance, and arcgis can generate all the slices of all levels within a preset range, so that the slices cannot be produced as required, and not all the slices can be used, thereby causing great waste of time resources and disk space resources.
Thirdly, since the arcgis is an independent tool, the generated service address is irregular, the service address must be known only after the service is released, and the service address can be displayed to the client only after the service is configured in the service system, which is inefficient.
Embodiments of the present invention provide a population distribution information generating method, apparatus, server and storage medium to solve the above problems, which will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for generating population distribution information according to an embodiment of the present invention, the method including the following steps:
step S100, acquiring population data of a grid to be processed, a first parameter and a second parameter.
In this embodiment, the population distribution information is finally displayed on the map, so that the map is divided into a plurality of grids in advance, each grid has corresponding population data, and the population data of each grid can be processed concurrently, so as to improve the processing efficiency.
In this embodiment, the user may specify population data corresponding to a grid that needs to be processed, or may specify a processing manner and a processing range for processing the population data through the first parameter and the second parameter, for example, the population data includes a plurality of attribute fields, such as fields a to e, and the user may specify that only data of field d is to be processed.
In this embodiment, the first parameter is used to characterize the range of the population data to be processed, and the target population data that needs to be processed can be determined by using the first parameter, so as to avoid the processing time increase caused by processing unnecessary population data. The second parameter is used for characterizing a segmentation processing mode of the population data to be processed, the target population data can be segmented by using the second parameter, and the configuration of each segment can be specified, for example, the display color of each segment, the display pattern of each segment, and the like.
Step S110, determining target population data from the population data according to the first parameter.
In this embodiment, the target population data is data to be processed in the population data, and may be data corresponding to one or more attribute fields in the population data.
And step S120, performing segmentation processing on the target population data according to the second parameter to obtain data segments and segment configuration of the data segments.
In this embodiment, the target population data may be segmented differently according to different segmentation principles, each data segment may correspond to a part or all of the target population data, when only one segment is provided, the data segment corresponds to all of the target population data, when the segment is multiple, each data segment corresponds to a part of the target population data, and the number of the target population data corresponding to each segment may be the same or different, for example, the target population data includes 100 records, the target population data is divided into 10 segments according to the segmentation principles, and the number of the records included in each data segment is respectively: 10. 23, 7, 20, 10, 5, 0.
Step S130, generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identifications of the grids to be processed.
In this embodiment, the grids are used for representing the spatial information, in order to associate the grids on the map with the corresponding population distribution information, a grid identifier is set for each grid to uniquely represent the grid, the spatial information of the grid is associated with the corresponding target population data, and the spatial information and the corresponding target population data are displayed according to the sectional configuration, so that the population distribution information of the target population data can be obtained. The population distribution information includes spatial information of the target population data, segmented information of the target population data and segmented configuration, that is, a corresponding population distribution map can be rendered in a grid to be processed on a map according to the population distribution information and the segmented configuration.
According to the method provided by the embodiment of the invention, the population distribution information is generated as required, unnecessary data processing is avoided, and the processing time and the great waste of disk space are reduced.
On the basis of fig. 1, the embodiment of the present invention further provides a specific implementation manner of determining target population data, please refer to fig. 2, fig. 2 is a flowchart of another population distribution information generating method provided in the embodiment of the present invention, and step S110 includes the following sub-steps:
in sub-step S1100, the population data having the attribute field as the target attribute is determined as the target population data.
In this embodiment, the demographic data includes a plurality of attribute fields, and the first parameter includes a target attribute, which is an attribute field specified by the user and requiring processing. For example, the attribute field includes four attributes a to d, and if the target attribute is d, the population data corresponding to the attribute field d in the population data is the target population data.
It should be noted that, when determining the target population data, in order to avoid using wrong data for processing and affecting the accuracy of the final population distribution information, the target population data may also be preprocessed, for example, obviously unreasonable data is deleted. For example, for attribute fields that are unlikely to be negative, if negative numbers are included in the target population data, the data is deleted.
The method provided by the embodiment of the invention can specify the target attribute of the population data to be processed, thereby screening out unnecessary processing data, reducing the processing data volume and improving the processing efficiency.
On the basis of fig. 1, the embodiment of the present invention further provides a specific implementation manner of segmenting target demographic data, please continue to refer to fig. 2, and step S120 includes the following sub-steps:
and a substep S1200, segmenting the target population data according to the number of segments to obtain a plurality of data segments.
In this embodiment, the second parameter includes the number of segments and the color of each segment, and it is understood that the color of each segment is different.
And a substep S1201, wherein the segment color of each segment is in one-to-one correspondence with each data segment, and the color configuration of each data segment is obtained.
In this embodiment, the segment configuration may include a color configuration for characterizing a color of the data display in each data segment, and each data segment corresponds to a segment color, for example, the correspondence between the data segment and the color configuration is shown in table 1.
TABLE 1
Color arrangement (in color values) Data segmentation (corresponding value interval)
#ff0000 1000~
#dd2222 500~1000
#aa4444 300~500
It should be noted that, as another embodiment, the segment configuration may further include a pattern configuration for characterizing a pattern of data display in each data segment, for example, a left-diagonal line pattern, a right-diagonal line pattern, a cross line pattern, and the like.
The method provided by the embodiment of the invention can set the segment number of the segments and the display color of each segment, thereby greatly improving the flexibility of setting by a user according to the requirement and meeting various individual requirements of the user.
On the basis of fig. 1, the embodiment of the present invention further provides a specific implementation manner of generating population distribution information of target population data, please refer to fig. 3, where fig. 3 is a flowchart of another population distribution information generating method provided in the embodiment of the present invention, and step S130 includes the following sub-steps:
and a sub-step S1300 of performing spatial mapping on each record through the grid identification to determine the spatial distribution information of each record.
In this embodiment, the target demographic data includes a plurality of records, and each data segment corresponds to one or more records in the target demographic data.
And a substep S1301 of determining a target data segment to which each record belongs.
And a substep S1302, configuring the spatial distribution information of each record according to the sectional configuration of the target data section to which each record belongs, and obtaining the population distribution information of each record.
In sub-step S1303, all the recorded population distribution information is combined into population distribution information of the target population data.
In this embodiment, the grid area of the grid to be processed and the number of records included in the data segment may be associated, and the larger the number of records in each data segment is, the larger the grid area occupied by the data segment is.
In this embodiment, as a specific implementation manner, the population distribution information may be represented in a file form, please refer to fig. 4, where fig. 4 is an exemplary diagram of a population distribution style file provided in an embodiment of the present invention.
In this embodiment, in order to facilitate identification of population distribution information generated by parameters configured by a user, an embodiment of the present invention further provides a method for identifying population distribution information, please refer to fig. 5, where fig. 5 is a schematic flow diagram of another population distribution information generation method provided by an embodiment of the present invention, and the method includes the following steps:
and step S200, generating the identification of the population distribution information of the target population data according to the first parameter and the second parameter.
In this embodiment, as a specific implementation manner, the first parameter and the second parameter may be spliced, then an MD5 value of the splicing result is calculated, and an MD5 value is used as an identifier of population distribution information of the target population data generated according to the first parameter and the second parameter, where when any one of the first parameter and the second parameter changes, the identifier of the corresponding population distribution information changes.
In this embodiment, for example, the first parameter includes a table name T and a field F, the second parameter includes a segment number Y and a color listing C, T, T, Y, C are spliced together, and then the MD5 value of the splicing result is calculated, so as to obtain the corresponding demographic information identifier.
In this embodiment, in order to avoid repeatedly generating target population distribution information, an embodiment of the present invention further provides a specific implementation manner, where the generated population distribution information and a corresponding identifier are cached, please refer to fig. 6, where fig. 6 is a schematic flow diagram of another population distribution information generating method provided in the embodiment of the present invention, and the method includes the following steps:
step S300, receiving the target identification sent by the client.
In this embodiment, the client may generate the target identifier according to the first parameter and the second parameter set by the user, and the generation manner of the target identifier is the same as that in step S200, which is not described herein again.
Step S310, judging whether the server caches the corresponding target population distribution information according to the target identification.
In this embodiment, the server may temporarily store population distribution information generated in a previous preset time period, where the preset time period may be the last week or the last day, each population distribution information has a unique identifier, and the identifier is generated according to the corresponding first parameter and the second parameter. As a specific implementation, the population distribution information may be stored in the shared memory in a KV structure, thereby achieving the purpose of clustered deployment.
And step S320, if the target population distribution information is cached in the server, rendering according to the target population distribution information to generate a population distribution map, and displaying through the client.
In this embodiment, after the server generates the demographic graph, the demographic graph may be provided to the client in the form of a service, for example, an access address of the service is returned to the client, and the client may display the demographic graph through the access address.
In this embodiment, the Service provided by the server may be a slice Map Web Service WMTS (OpenGIS Web Map Tile Service), which provides a standardized solution for publishing digital Map services using a predefined Tile method. The WMTS standard defines operations that allow a user to access a sliced map, in which case the client can overlay WMTS layer calls via the target identifier, thereby enabling demographics of different maintenance attributes to be exposed to the client in a dynamically drawn manner. In addition, unlike grcgis, the population distribution information generation method provided by the embodiment of the invention needs to issue a set of services each time data to be processed is obtained, and the issued services are also increased rapidly under a scene with more population attribute cross dimensions, so that the management cost is increased.
It should be noted that, as a specific interaction mode, the client may call an interface function provided by the server, use the target identifier as an input parameter of the interface function, call the interface function, and return the server to an access address of the client, and the client may display the population distribution map through the access address.
In this embodiment, if the server does not cache the target population distribution information, in order to enable the client to display the population distribution map, the embodiment of the present invention further provides a specific processing method, please refer to steps S330 to S350.
In step S330, if the server does not cache the target population distribution information, the target identifier is analyzed to obtain a first parameter and a second parameter.
Step S340, generating target population distribution information according to the first parameter and the second parameter.
In this embodiment, the implementation manner of generating the target population distribution information according to the first parameter and the second parameter has been described in the foregoing steps S100 to S130 and the sub-steps of each step, and will not be described herein again.
And step S350, rendering the generated population distribution map according to the target population distribution information and displaying the population distribution map through the client.
In this embodiment, a user can determine target population data and data segmentation processing according to a first parameter and a second parameter, a server judges whether corresponding population distribution information is cached according to the first parameter and the second parameter, if so, the target population data and the data segmentation processing are displayed according to requirements, if not, the corresponding population distribution information is regenerated, on one hand, the whole process uses parameter control, automatic processing without manual intervention is realized, on the other hand, the data can be processed as required, processing time and storage space are greatly saved, data updating is also easy to achieve the purpose of regeneration through a forced cleaning mode, furthermore, an identifier is generated through the first parameter and the second parameter, population distribution information and a multi-dimensional population layer can be well managed through the identifier, and repetition or confusion cannot be caused.
It should be further noted that, in order to meet the requirement that the user still needs to obtain the latest target population distribution information when the server caches the target population distribution information, the embodiment of the present invention further provides a switch for forced generation, and the user may set according to the requirement, for example, when the switch is turned on, even if the server caches the target population distribution information, the currently cached target population distribution information needs to be cleared, and the target population distribution information is forcibly regenerated, in the manner described in the above step S330 to step S350, and when the switch is turned off, if the server caches the target population distribution information, the target population distribution information does not need to be regenerated, but the cached target population distribution information is directly used.
To more clearly illustrate the present invention, the present invention further provides a flowchart illustrating a specific implementation manner, please refer to fig. 7, fig. 7 is a flowchart illustrating a specific implementation manner provided by an embodiment of the present invention, and in fig. 7, the flow of the implementation manner is as follows:
(1) preparing certain population attribute data of a corresponding grid, and putting the certain population attribute data into a table T; for example, the working population under 35 years old in the 12eb156 grid is 623 people.
(2) The calling is initiated by the appointed parameter on the business, and the main parameters comprise: table name T, field F, number of segments Y, color listing C per segment.
(3) After receiving the parameters, judging whether population distribution information of the specified parameters is generated or not, and if not, entering a generation flow; if it has already been generated, then judge whether to force reuse.
(4) If the data is forcibly reused, calling and cleaning a use cache, and entering a generation flow FL; if not, a direct return success may be revealed to the customer on the page.
(5) FL flow:
a first step; the roots T and F determine all demographic property data LIST LD, and if the demographic property is positive, values less than or equal to 0 can be omitted to reduce meaningless data.
The second step is that: dividing the data into Y sections according to the data LD and the number Y of the sections, and if the color in the parameter designates C, using C to pair the section data; and if the color C is not the same as the color C, pairing the colors by using default colors, and finally generating a configuration table ST corresponding to the population attribute value and the rendering color.
The third step: and performing space mapping by using the grid numbers and corresponding space data, combining the configuration table ST generated in the previous step to obtain a final rendering style file, and using the parameter T, F, Y, C as an MD5 value M as a cache identifier to identify whether the rendering style file is used or not.
(6) And returning an identifier M to the client, and enabling the client to perform WMTS layer calling superposition through the identifier M so as to render a corresponding population distribution diagram, thereby realizing the population distribution condition which is displayed to the client in different dimensional attributes in a dynamic drawing mode.
Referring to fig. 8 and 9, fig. 8 is a population distribution diagram of a dimension attribute according to an embodiment of the present invention, wherein the dimension attribute includes gender and age between 19 and 29. FIG. 9 is a demographic profile of another dimension attribute provided by an embodiment of the present invention, wherein the dimension attribute includes gender, male and female, and age groups including 0-18, 19-29, 30-39, 40-49, 50-59, 60-69, and over 70.
In order to perform the corresponding steps of the data access method in the above embodiments and various possible implementations, an implementation of the demographic distribution information generation apparatus 100 is given below. Referring to fig. 10, fig. 10 is a block diagram illustrating a population distribution information generating apparatus 100 according to an embodiment of the present invention. It should be noted that the basic principle and the resulting technical effect of the population distribution information generating device 100 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no reference is made in this embodiment.
The demographic distribution information generating apparatus 100 includes an acquisition module 110, a determination module 120, a segmentation module 130, a generation module 140, and a rendering module 150.
The obtaining module 110 is configured to obtain population data of a grid to be processed, and a first parameter and a second parameter.
A determining module 120 configured to determine target demographic data from the demographic data according to the first parameter.
In one embodiment, the demographic data includes a plurality of attribute fields, the first parameter includes a target attribute, and the determining module 120 is specifically configured to: and determining the population data with the attribute field as the target attribute as the target population data.
And the segmenting module 130 is configured to perform segmentation processing on the target population data according to the second parameter to obtain data segments and segment configurations of the data segments.
As an embodiment, the second parameter includes a number of segments and a segment color of each segment, the segment configuration includes a color configuration, the target demographic data is segmented into a plurality of segments, and the segmentation module 130 is specifically configured to: segmenting the target population data according to the segmentation number to obtain a plurality of data segments; and the segmentation color of each segment corresponds to each data segment one by one to obtain the color configuration of each data segment.
The generating module 140 is configured to generate population distribution information of the target population data according to the data segments, the segment configurations of the data segments, and the grid identifiers of the to-be-processed grids.
As a specific embodiment, the target demographic data includes a plurality of records, and the generating module 140 is specifically configured to: carrying out space mapping on each record through the grid identification, and determining the space distribution information of each record; determining a target data segment to which each record belongs; configuring the spatial distribution information of each record according to the sectional configuration of the target data section to which each record belongs to obtain the population distribution information of each record; and merging all recorded population distribution information into population distribution information of the target population data.
As a specific embodiment, the generating module 140 is further configured to: and generating the identification of the population distribution information of the target population data according to the first parameter and the second parameter.
A rendering module 150 to: receiving a target identifier sent by a client; judging whether the server caches corresponding target population distribution information or not according to the target identification; and if the server caches the target population distribution information, rendering according to the target population distribution information to generate a population distribution graph, and displaying through the client.
As a specific embodiment, the rendering module 150 is further configured to: if the server does not cache the target population distribution information, analyzing the target identification to obtain a first parameter and a second parameter; generating target population distribution information according to the first parameter and the second parameter; and rendering the generated population distribution diagram according to the target population distribution information and displaying the population distribution diagram through the client.
In the embodiment of the invention, the server comprises a processor, a memory, a bus and a communication interface. The processor and the memory are connected through a bus, and the processor communicates with an external device through a communication interface.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The memories are used for storing programs, such as the population distribution information generating device 100 in the embodiment of the present invention, each population distribution information generating device 100 includes at least one software functional module which can be stored in the memory in a form of software or firmware (firmware), and the processor executes the programs after receiving the execution instructions to implement the population distribution information generating method in the embodiment of the present invention.
The Memory may include a Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory). Alternatively, the memory may be a memory device built in the processor or a memory device independent of the processor.
The bus may be an ISA bus, PCI bus, EISA bus, or the like.
Embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the population distribution information generating method as described above.
In summary, embodiments of the present invention provide a population distribution information generating method, an apparatus, a server, and a storage medium, which are applied to a server, where the method includes: acquiring population data, a first parameter and a second parameter of a grid to be processed; determining target population data from the population data according to the first parameter; performing segmentation processing on the target population data according to the second parameters to obtain data segments and segment configuration of the data segments; and generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identification of the grid to be processed. Compared with the prior art, the method and the device can determine the target population data to be processed according to the first parameter, perform segmentation and segmentation configuration on the target population data according to the second parameter, and finally generate the population distribution information of the target population data according to the segmentation, the segmentation configuration and the grid identification, so that the data is processed according to the requirement, unnecessary data processing is avoided, and the time and the great waste on the disk space in the processing process are reduced.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for generating population distribution information, applied to a server, the method comprising:
acquiring population data, a first parameter and a second parameter of a grid to be processed;
determining target population data from the population data according to the first parameter;
performing segmentation processing on the target population data according to the second parameters to obtain data segments and segment configuration of the data segments;
and generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identification of the grid to be processed.
2. The method of generating demographic distribution information of claim 1, wherein the demographic data includes a plurality of attribute fields, the first parameter includes a target attribute, and the step of determining a target demographic data from the demographic data based on the first parameter comprises:
determining the demographic data for which the attribute field is the target attribute as the target demographic data.
3. The method as set forth in claim 1, wherein the second parameter comprises a number of segments and a segment color of each segment, the segment configuration comprises a color configuration, the target demographic data is segmented into a plurality of segments, and the step of segmenting the target demographic data according to the second parameter to obtain a data segment and a segment configuration of the data segment comprises:
segmenting the target population data according to the segmentation quantity to obtain a plurality of data segments;
and the segmentation color of each segment corresponds to each data segment one by one to obtain the color configuration of each data segment.
4. The method as set forth in claim 1, wherein the target demographic data comprises a plurality of records, and wherein the step of generating the demographic distribution information of the target demographic data based on the data segments, the segment configuration of the data segments, and the grid identification of the grid to be processed comprises:
performing spatial mapping on each record through the grid identification to determine spatial distribution information of each record;
determining a target data segment to which each record belongs;
configuring the spatial distribution information of each record according to the sectional configuration of the target data section to which each record belongs to obtain the population distribution information of each record;
and merging all recorded population distribution information into population distribution information of the target population data.
5. The method of generating demographic information of claim 1, further comprising:
and generating an identifier of population distribution information of the target population data according to the first parameter and the second parameter.
6. The demographic information generation method of claim 1, wherein the server is communicatively connected to a client, the method further comprising:
receiving a target identifier sent by the client;
judging whether the server caches corresponding target population distribution information or not according to the target identification;
and if the target population distribution information is cached in the server, rendering according to the target population distribution information to generate a population distribution diagram, and displaying through the client.
7. The method of generating demographic information of claim 6, further comprising:
if the target population distribution information is not cached in the server, analyzing the target identification to obtain the first parameter and the second parameter;
generating the target population distribution information according to the first parameter and the second parameter;
and rendering the generated population distribution map according to the target population distribution information and displaying the population distribution map through the client.
8. A population distribution information generating apparatus applied to a server, the apparatus comprising:
the acquisition module is used for acquiring population data, a first parameter and a second parameter of a grid to be processed;
a determining module for determining target population data from the population data according to the first parameter;
the segmentation module is used for carrying out segmentation processing on the target population data according to the second parameter to obtain data segments and segment configuration of the data segments;
and the generation module is used for generating population distribution information of the target population data according to the data segments, the segment configuration of the data segments and the grid identifications of the grid to be processed.
9. A server comprising a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, implements the demographic information generation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the demographic distribution information generation method according to any one of claims 1-7.
CN202110795649.7A 2021-07-14 2021-07-14 Population distribution information generation method, population distribution information generation device, server and storage medium Pending CN113486133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110795649.7A CN113486133A (en) 2021-07-14 2021-07-14 Population distribution information generation method, population distribution information generation device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110795649.7A CN113486133A (en) 2021-07-14 2021-07-14 Population distribution information generation method, population distribution information generation device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113486133A true CN113486133A (en) 2021-10-08

Family

ID=77938733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110795649.7A Pending CN113486133A (en) 2021-07-14 2021-07-14 Population distribution information generation method, population distribution information generation device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113486133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064831A (en) * 2021-10-27 2022-02-18 北京融信数联科技有限公司 Data rasterization display method and system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083785A (en) * 2007-07-04 2007-12-05 贾林 Method and system for obtaining people information
CN106790422A (en) * 2016-12-02 2017-05-31 北京锐安科技有限公司 A kind of data buffer storage cluster and data retrieval method for WEB application
CN109978249A (en) * 2019-03-19 2019-07-05 广州大学 Population spatial distribution method, system and medium based on two-zone model
CN112069235A (en) * 2020-11-16 2020-12-11 脉策(上海)智能科技有限公司 Method, apparatus and storage medium for presenting target area demographic data
CN112115185A (en) * 2020-09-29 2020-12-22 广州瀚信通信科技股份有限公司 Population big data analysis method, system, equipment and medium for government affair law enforcement
CN112347156A (en) * 2020-11-03 2021-02-09 智慧足迹数据科技有限公司 Population data rendering method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083785A (en) * 2007-07-04 2007-12-05 贾林 Method and system for obtaining people information
CN106790422A (en) * 2016-12-02 2017-05-31 北京锐安科技有限公司 A kind of data buffer storage cluster and data retrieval method for WEB application
CN109978249A (en) * 2019-03-19 2019-07-05 广州大学 Population spatial distribution method, system and medium based on two-zone model
CN112115185A (en) * 2020-09-29 2020-12-22 广州瀚信通信科技股份有限公司 Population big data analysis method, system, equipment and medium for government affair law enforcement
CN112347156A (en) * 2020-11-03 2021-02-09 智慧足迹数据科技有限公司 Population data rendering method and device and electronic equipment
CN112069235A (en) * 2020-11-16 2020-12-11 脉策(上海)智能科技有限公司 Method, apparatus and storage medium for presenting target area demographic data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨德麟: "《第10章 地理信息服务》", 《测绘地理信息原理方法及应用 上》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064831A (en) * 2021-10-27 2022-02-18 北京融信数联科技有限公司 Data rasterization display method and system and storage medium

Similar Documents

Publication Publication Date Title
CN111078695B (en) Method and device for calculating association relation of metadata in enterprise
CN111125284A (en) Integrated space-time big data and geographic information public service cloud platform
CN109063838B (en) Knowledge model servization and flow customization system
CN110784377A (en) Method for uniformly managing cloud monitoring data in multi-cloud environment
CN113486133A (en) Population distribution information generation method, population distribution information generation device, server and storage medium
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN113010948A (en) BIM lightweight model display system
CN115203192B (en) Cleaning method and device based on visual data and related components
CN114647548A (en) Log generation method and device
CN112765127A (en) Construction method and device of traffic data warehouse, storage medium and terminal
CN113986954B (en) User event acquisition method and device, intelligent terminal and readable storage medium
CN114490908A (en) Map data acquisition control method, apparatus, device, medium, and program product
CN113055243B (en) DPI interface data processing method and device
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium
CN114860847B (en) Data link processing method, system and medium applied to big data platform
CN114691837B (en) Insurance business data processing method and processing system based on big data
CN115827670A (en) DSL-based view processing method, system, device and storage medium
CN108008937A (en) Flowcharting method and system
CN117370281A (en) Data maintenance method, device, computer equipment and storage medium
CN108182199B (en) Method and system for generating electric power transaction data graph
CN114547327A (en) Method, device and equipment for generating space-time big data relation map and storage medium
JP2007272565A (en) Database information display, terminal, and program
CN114706931A (en) Data processing method and device
CN113190587A (en) Data processing method and device for realizing service data processing
CN115809099A (en) Cloud platform metadata configuration management system and management method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211008

RJ01 Rejection of invention patent application after publication