CN105512262B - A kind of electronic map rendering method and system - Google Patents

A kind of electronic map rendering method and system Download PDF

Info

Publication number
CN105512262B
CN105512262B CN201510880458.5A CN201510880458A CN105512262B CN 105512262 B CN105512262 B CN 105512262B CN 201510880458 A CN201510880458 A CN 201510880458A CN 105512262 B CN105512262 B CN 105512262B
Authority
CN
China
Prior art keywords
information point
sub
electronic map
coordinate
information
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.)
Active
Application number
CN201510880458.5A
Other languages
Chinese (zh)
Other versions
CN105512262A (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.)
Fujian Star Net Joint Information System Co Ltd
Original Assignee
Fujian Star Net Joint Information System 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 Fujian Star Net Joint Information System Co Ltd filed Critical Fujian Star Net Joint Information System Co Ltd
Priority to CN201510880458.5A priority Critical patent/CN105512262B/en
Publication of CN105512262A publication Critical patent/CN105512262A/en
Application granted granted Critical
Publication of CN105512262B publication Critical patent/CN105512262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of electronic map rendering method and system, this method comprises: obtaining information point group from the database of electronic map, the information point group includes at least sub-information point number and coordinate string attribute;Each sub-information point in the information point group is successively spaced display on the electronic map;Each sub-information point is dragged to actual position, and obtains the update coordinate of each sub-information point after dragging;The update coordinate of each sub-information point is spliced into coordinate string and is saved.Advantage of the present invention is as follows: without establishing binding relationship with group for each information point, and user can manipulate one group with the different information point group of same alike result and position simultaneously, bring great convenience for actual business processing and with the operation of group information point and display.

Description

A kind of electronic map rendering method and system
Technical field
The present invention relates to electronic map display field, in particular to a kind of electronic map rendering method and system.
Background technique
Nowadays, in the application based on electronic map, in addition to information point (POI, the Point of carried in electronic map The abbreviation of Interest) outside, user is frequently necessary to add custom information point in the application, wherein each information point is usual All comprising information such as title, classification, latitude, longitude, neighbouring retail shops, restaurant, hotel.When specifically used, it need to only pass through longitude latitude Degree and name information, can intuitively show a certain information point, and can be according to the attribute of the information point on the electronic map Operation (such as display, deletion, location revision, icon style, title) is interacted to the information point.It is directed to due to information point It is the location information of a fixed point, when user needs to show or operate one group with the different information point of same alike result and position When, presently mainly by establishing multiple information points in the information point database, and group attribute is assigned for each information point (such as group ID or group title are added in information point attribute list, other purpose is organized to reach with this belonging to identification information point, To realize the operation to same group information point), other purpose is organized to reach with this belonging to identification information point, to realize to same group The operation of information point;But this mode needs to establish binding relationship with group for each information point, and is each specified letter The specified group title of breath point and group ID, when needing to operate a group information point, such as show, delete, change pattern, need All information points of the group are searched out, and are operated one by one, the multiple information points for belonging to same group can not be carried out while be grasped Control, this brings great inconvenience to actual business processing and with the operation of group information point and display.
Summary of the invention
One of the technical problem to be solved in the present invention is to provide a kind of electronic map rendering method, by this method come Realizing has the different information point group progress of same alike result and position to one group while manipulating.
The present invention is realized in one of technical problem: a kind of electronic map rendering method, the method includes as follows Step:
Information point group is obtained from the database of electronic map, the information point group includes at least sub-information point number and seat Mark string attribute;
Each sub-information point in the information point group is successively spaced display on the electronic map;
Each sub-information point is dragged to actual position, and obtains the update coordinate of each sub-information point after dragging;
The update coordinate of each sub-information point is spliced into coordinate string and is saved.
Further, described " each sub-information point in the information point group is successively spaced to the display on the electronic map " tool Body are as follows: whether the coordinate string for first judging the information point group is sky,
If so, determining that the information point group is no initializtion, each sub-information point of the information point group is dragged to electronic map, And to be dragged to the first of electronic map sub- information point as initial point position, by other sub-information points towards the initial point position Any one direction is with mutually successively interval is not shown on the electronic map the distance of gland;
If it is not, then determining that the information point group is to have initialized, each sub-information point is obtained according to the coordinate string of information point group Coordinate, and shown each sub-information point on the electronic map according to the coordinate of each sub-information point.
Further, described " by other sub-information points towards the initial point position any one direction with mutually not gland Successively interval is shown on the electronic map distance " in, the calculation method of the mutual not distance of gland between two sub- information points are as follows:
A, the first class resolution ratio R of electronic map is calculated1,Wherein, S indicate electronic map transverse direction really away from From N indicates the horizontal pixel points of electronic map pictures;
B, the current scale bar rank K for obtaining electronic map calculates the of current electronic map as resolution levels K class resolution ratio Rk,K is positive integer, and k >=2;
C, according to the mutually not pixel distance P of gland of the acquiring size of the sub-information point sub-information point;
D, the sub-information point mutually not distance L=R of gland is calculatedk*P。
Further, described " each sub-information point is dragged to actual position " specifically: first bind the dragging of each sub-information point Event judges whether each sub-information point is located on electronic map further according to the display position of each sub-information point on the electronic map Actual position, if it is not, corresponding sub-information point is then dragged to actual position;If so, keeping corresponding sub-information point Position is constant.
Further, described " information point group to be obtained from the database of electronic map, the information point group includes at least son Before information point number and coordinate string attribute " step, further includes: establish information point group, and the information point group of foundation is loaded into electricity In the database of sub- map.
Further, each sub-information point is shown on the electronic map in the form of icon.
Further, the coordinate of each sub-information point is spliced into coordinate string by separator, and the separator is comma Or branch, wherein separated between the longitude and latitude of the coordinate of single sub-information point by comma, two neighboring sub-information point Coordinate between pass through semicolon separated.
The second technical problem to be solved by the present invention is to provide a kind of electronic map and system is presented, by the system come Realizing has the different information point group progress of same alike result and position to one group while manipulating.
The present invention is realized in the twos' of technical problem: a kind of electronic map presentation system, the system include:
Information point obtains module, and for obtaining information point group from the database of electronic map, the information point group is at least Include sub-information point number and coordinate string attribute;
Information point display module, for each sub-information point in the information point group to be successively spaced to display in electronic map On;
Information point is modules dragged, for each sub-information point to be dragged to actual position, and obtains each sub-information point after dragging Update coordinate;
Coordinate string splicing module, for the update coordinate of each sub-information point to be spliced into coordinate string and is saved.
Further, the information point display module specifically:
Whether the coordinate string for first judging the information point group is sky,
If so, determining that the information point group is no initializtion, each sub-information point of the information point group is dragged to electronic map, And to be dragged to the first of electronic map sub- information point as initial point position, by other sub-information points towards the initial point position Any one direction is with mutually successively interval is not shown on the electronic map the distance of gland;
If it is not, then determining that the information point group is to have initialized, each sub-information point is obtained according to the coordinate string of information point group Coordinate, and shown each sub-information point on the electronic map according to the coordinate of each sub-information point.
Further, described " by other sub-information points towards the initial point position any one direction with mutually not gland Successively interval is shown on the electronic map distance " in, the calculation method of the mutual not distance of gland between two sub- information points are as follows:
A, the first class resolution ratio R of electronic map is calculated1,Wherein, S indicate electronic map transverse direction really away from From N indicates the horizontal pixel points of electronic map pictures;
B, the current scale bar rank K for obtaining electronic map calculates the of current electronic map as resolution levels K class resolution ratio Rk,K is positive integer, and k >=2;
C, according to the mutually not pixel distance P of gland of the acquiring size of the sub-information point sub-information point;
D, the sub-information point mutually not distance L=R of gland is calculatedk*P。
Further, described " each sub-information point is dragged to actual position " specifically: first bind the dragging of each sub-information point Event judges whether each sub-information point is located on electronic map further according to the display position of each sub-information point on the electronic map Actual position, if it is not, corresponding sub-information point is then dragged to actual position;If so, keeping corresponding sub-information point Position is constant.
The present invention has the advantage that 1, without establishing binding relationship with group for each information point, and user can be with One group of manipulation simultaneously with the different information point group of same alike result and position, i.e., need to only call an interface, can be achieved with to one All sub-information points of a information point group delete simultaneously while dragging while replacing icon etc. operating, this can reduce tired Miscellaneous group binds work, and brings great side for actual business processing and with the operation of group information point and display Just;2, it applies the invention in electronic map, the real-time update of electronic map information may be implemented, to ensure electronic map Information update is synchronous with urban development variation.
Detailed description of the invention
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the execution flow chart of the preferred embodiment one of electronic map rendering method of the present invention.
Fig. 2 is the execution flow chart of the preferred embodiment two of electronic map rendering method of the present invention.
Fig. 3 is the structural block diagram that system is presented in electronic map of the present invention.
Specific embodiment
A kind of preferred embodiment one of electronic map rendering method:
It please refers to shown in Fig. 1, described method includes following steps:
Step S1, information point group is established, and the information point group of foundation is loaded into the database of electronic map, is being established When information point group, the name attribute of setting information point group is needed, to facilitate the identification between different information point groups.Step S1 is only It is just executed when needing to establish information point group.
Step S2, information point group is obtained from the database of electronic map, the information point group includes at least sub-information point 2 attributes of number and coordinate string;Wherein, sub-information point number attribute setting when establishing information point group;Coordinate string attribute is Setting when once obtaining the information point group, in the specific implementation, if the information point group obtained has had coordinate string attribute, It no longer needs to be configured.
Step S3, display is successively spaced on the electronic map by each sub-information point in the information point group;Step S3 Specifically:
Whether the coordinate string for first judging the information point group is sky,
If so, determining that the information point group is no initializtion, each sub-information point of the information point group is dragged to electronic map, And to be dragged to the first of electronic map sub- information point as initial point position, by other sub-information points towards the initial point position Any one direction is with mutually successively interval is not shown on the electronic map the distance of gland;Here with mutually the distance of gland is not shown The purpose of each sub-information point is: avoiding each sub-information point from overlaping, sub-information point is caused to omit, influence subsequent antithetical phrase letter Cease the operation of point.
Wherein, described " by other sub-information points towards the initial point position any one direction with the mutually not distance of gland Successively interval is shown on the electronic map " in, the calculation method of the mutual not distance of gland between two sub- information points are as follows:
A, the first class resolution ratio R of electronic map is calculated1(i.e. the actual distance that a pixel represents),Wherein, S indicates that the lateral actual distance of electronic map, N indicate the horizontal pixel points of electronic map pictures;For example, the cross of electronic map It is 1000km to actual distance, the horizontal pixel points of electronic map pictures are 256, then the first class resolution ratio of the electronic map
B, the current scale bar rank K for obtaining electronic map calculates the of current electronic map as resolution levels K class resolution ratio Rk,K is positive integer, and k >=2;
C, next to ensure according to the mutually not pixel distance P of gland of the acquiring size of the sub-information point sub-information point Sub-information point will not gland to preceding sub-information point;
D, the sub-information point mutually not distance L=R of gland is calculatedk*P。
If it is not, then determining that the information point group is to have initialized, each sub-information point is obtained according to the coordinate string of information point group Coordinate, and shown each sub-information point on the electronic map according to the coordinate of each sub-information point.
Operation is judged by above-mentioned initialization, it is impossible to which the information point of the no initializtion shown on map passes through manual Mode drags on map, so that it is obtained coordinate string attribute, achievees the purpose that initialization, in order to which next time directly uses.
Step S4, each sub-information point is dragged to actual position, and obtains the update coordinate of each sub-information point after dragging;By In the fast development with city, the information update of electronic map also quickly, by by each sub-information point real-time update to true The real-time update of electronic map information may be implemented in position, and information update and the urban development variation to ensure electronic map are same Step.
Described " each sub-information point is dragged to actual position " specifically: first bind the drag events of each sub-information point, then root According to the display position of each sub-information point on the electronic map, judge whether each sub-information point is located at the true position on electronic map It sets, if it is not, corresponding sub-information point is then dragged to actual position, (atural object representated by the actual position i.e. information point is in map On physical location);If so, keeping the position of corresponding sub-information point constant.For example, a certain sub-information point is currently located position The coordinate set is (25.2145,85.5485), but the seat of physical location of the atural object on map representated by the sub-information point Be designated as (25.3254,85.1547), then in the specific implementation, just by the sub-information point be dragged to coordinate be (25.3254, 85.1547) position, and the coordinate of the sub-information point is updated to (25.3254,85.1547).
Step S5, the update coordinate of each sub-information point is spliced into coordinate string and saved.
In the specific implementation, the coordinate of each sub-information point passes through specific separator and is spliced into coordinate string, exists in this way In electronic map, each information point group only needs to save a record, that is, can record the information of each sub-information point, can be convenient pair Each sub-information point and information point group are managed.The specific separator is comma or branch, wherein the seat of single sub-information point Separated between target longitude and latitude by comma, by semicolon separated between the coordinate of two neighboring sub-information point, in this way, When it is implemented, coordinate string can be divided into the coordinate of each sub-information point according to actual needs.For example, a certain information point group Including 5 sub- information points, the coordinate of 5 sub- information points be respectively as follows: (119.3010,26.0501), (119.3011, 26.0501), (119.3012,26.0501), (119.3010,26.0502), (119.3010,26.0502), then by this 5 sons The coordinate of information point is spliced into coordinate string i.e. are as follows: 119.3010,26.0501;119.3011,26.0501;119.3012 26.0501;119.3010,26.0502;119.3010,26.0502.
A kind of preferred embodiment two of electronic map rendering method:
Shown in referring to figure 2., described method includes following steps:
Step P1, information point group is established, and the information point group of foundation is loaded into the database of electronic map, is being established When information point group, the name attribute of setting information point group is needed, to facilitate the identification between different information point groups.It is being embodied When, a sub- information point can be indicated using a light, in this way, a light group is exactly an information point group.The step P1 is only just executed when needing to establish information point group.
Step P2, information point group is obtained from the database of electronic map, the information point group includes at least sub-information point 2 attributes of number and coordinate string;Wherein, sub-information point number attribute setting when establishing information point group;Coordinate string attribute is Setting when once obtaining the information point group, in the specific implementation, if the information point group obtained has had coordinate string attribute, It no longer needs to be configured.
Step P3, display is successively spaced on the electronic map by each sub-information point in the information point group;It is specific at this In embodiment, each sub-information point is shown on the electronic map in the form of icon, is shown with form of icons excellent Point is: icon can intuitively show the information of sub-information point, can be convenient user and check the position of each sub-information point, distribution feelings Condition, state etc.;For example, each sub-information point can be shown on the electronic map in the form of light icon.Step P3 tool Body are as follows:
Whether the coordinate string for first judging the information point group is sky,
If so, determining that the information point group is no initializtion, each sub-information point icon of the information point group is dragged to electronics Map, and to be dragged to the first of electronic map sub- information point icon as initial point position, by other sub-information point icons court Any one direction of the initial point position is with mutually successively interval is not shown on the electronic map the distance of gland;Here with mutually not The purpose that the distance of gland shows each sub-information point is: it avoids each sub-information point from overlaping, sub-information point is caused to omit, Influence the subsequent operation to sub- information point.
Wherein, described " by other sub-information point icons towards the initial point position any one direction with mutually not gland Successively interval is shown on the electronic map distance " in, the calculation method of the mutual not distance of gland between two sub- information point icons Are as follows:
A, the first class resolution ratio R of electronic map is calculated1(i.e. the actual distance that a pixel represents),Wherein, S indicates that the lateral actual distance of electronic map, N indicate the horizontal pixel points of electronic map pictures;For example, the cross of electronic map It is 2000km to actual distance, the horizontal pixel points of electronic map pictures are 256, then the first class resolution ratio of the electronic map
B, the current scale bar rank K for obtaining electronic map calculates the of current electronic map as resolution levels K class resolution ratio Rk,K is positive integer, and k >=2;
C, according to the mutual not pixel distance S of gland of the sub-information point icon acquiring size sub-information point diagram target, to ensure Next sub-information point icon will not gland to preceding sub-information point icon;
D, the sub-information point diagram target mutually not distance L=R of gland is calculatedk*S。
If it is not, then determining that the information point group is to have initialized, each sub-information point diagram is obtained according to the coordinate string of information point group Target coordinate, and shown each sub-information point on the electronic map in the form of icon according to each sub-information point diagram target coordinate.
Operation is judged by above-mentioned initialization, it is impossible to which the information point of the no initializtion shown on map passes through manual Mode drags on map, so that it is obtained coordinate string attribute, achievees the purpose that initialization, in order to which next time directly uses.
Step P4, each sub-information point icon is dragged to actual position, and obtains each sub-information point diagram target after dragging more New coordinate;Due to the fast development with city, the information update of electronic map also quickly, by by each sub-information point in real time more Actual position is newly arrived, the real-time update of electronic map information may be implemented, to ensure that information update and the city of electronic map are sent out Exhibition variation synchronizes.
Described " each sub-information point icon is dragged to actual position " specifically: first bind each sub-information point diagram target dragging thing Part judges whether each sub-information point icon is located at electronics further according to the display position of each sub-information point diagram mark on the electronic map Actual position on map, if it is not, corresponding sub-information point icon is then dragged to the actual position (actual position i.e. information point Physical location of the atural object representated by icon on map);If so, keeping corresponding sub-information point diagram target position constant. For example, the coordinate of a certain sub-information point icon present position is (43.2145,67.5485), but the sub-information point icon The coordinate of physical location of the representative atural object on map is (43.3254,67.1547), then in the specific implementation, just will The sub-information point icon is dragged to the position that coordinate is (43.3254,67.1547), and the sub-information point diagram target coordinate is updated For (43.3254,67.1547).
Step S5, each sub-information point diagram target update coordinate is spliced into coordinate string and saved.
In the specific implementation, each sub-information point diagram target coordinate passes through specific separator and is spliced into coordinate string, this For sample in electronic map, each information point group only needs to save a record, that is, can record the information of each sub-information point, Ke Yifang Just each sub-information point and information point group are managed.The specific separator is comma or branch, wherein single sub-information point Separated between the longitude and latitude of the coordinate of icon by comma, passes through branch between two neighboring sub-information point diagram target coordinate Separate, in this way, in the specific implementation, so that it may coordinate string are divided into each sub-information point diagram target coordinate according to actual needs. For example, a certain information point group include 5 sub- information point icons, the coordinate of 5 sub- information point icons be respectively as follows: (56.3010, 112.0501), (56.3011,112.0501), (56.3012,112.0501), (56.3010,112.0502), (56.3010, 112.0502), then the coordinate of this 5 sub- information points is spliced into coordinate string i.e. are as follows: 56.3010,112.0501;56.3011, 112.0501;56.3012 112.0501;56.3010 112.0502;56.3010 112.0502.
The preferred embodiment three of system is presented in a kind of electronic map:
Shown in referring to figure 3., the system comprises: information point establishes module, information point obtains module, information point shows mould Block, information point be modules dragged and coordinate string splicing module;
The information point establishes module, is loaded into electronic map for establishing information point group, and by the information point group of foundation Database in, when establishing information point group, the name attribute of setting information point group is needed, to facilitate between different information point groups Identification.The information point is established module and is only just executed when needing to establish information point group.
The information point obtains module, for obtaining information point group, the information point group from the database of electronic map Including at least 2 attributes of sub-information point number and coordinate string;Wherein, sub-information point number attribute is set when establishing information point group It sets;Coordinate string attribute setting when obtaining the information point group for the first time, in the specific implementation, if the information point group obtained is With coordinate string attribute, then no longer need to be configured.
The information point display module, for each sub-information point in the information point group to be successively spaced to display in electronics On map;The information point display module specifically:
Whether the coordinate string for first judging the information point group is sky,
If so, determining that the information point group is no initializtion, each sub-information point of the information point group is dragged to electronic map, And to be dragged to the first of electronic map sub- information point as initial point position, by other sub-information points towards the initial point position Any one direction is with mutually successively interval is not shown on the electronic map the distance of gland;Here with mutually the distance of gland is not shown The purpose of each sub-information point is: avoiding each sub-information point from overlaping, sub-information point is caused to omit, influence subsequent antithetical phrase letter Cease the operation of point.
Wherein, described " by other sub-information points towards the initial point position any one direction with the mutually not distance of gland Successively interval is shown on the electronic map " in, the calculation method of the mutual not distance of gland between two sub- information points are as follows:
A, the first class resolution ratio R of electronic map is calculated1(i.e. the actual distance that a pixel represents),Wherein, S indicates that the lateral actual distance of electronic map, N indicate the horizontal pixel points of electronic map pictures;For example, the cross of electronic map It is 1000km to actual distance, the horizontal pixel points of electronic map pictures are 256, then the first class resolution ratio of the electronic map
B, the current scale bar rank K for obtaining electronic map calculates the of current electronic map as resolution levels K class resolution ratio Rk,K is positive integer, and k >=2;
C, next to ensure according to the mutually not pixel distance P of gland of the acquiring size of the sub-information point sub-information point Sub-information point will not gland to preceding sub-information point;
D, the sub-information point mutually not distance L=R of gland is calculatedk*P。
If it is not, then determining that the information point group is to have initialized, each sub-information point is obtained according to the coordinate string of information point group Coordinate, and shown each sub-information point on the electronic map according to the coordinate of each sub-information point.
Operation is judged by above-mentioned initialization, it is impossible to which the information point of the no initializtion shown on map passes through manual Mode drags on map, so that it is obtained coordinate string attribute, achievees the purpose that initialization, in order to which next time directly uses.
The information point is modules dragged, for each sub-information point to be dragged to actual position, and obtains each sub- letter after dragging Cease the update coordinate of point;Due to the fast development with city, the information update of electronic map also quickly, by by each sub-information To actual position the real-time update of electronic map information may be implemented, to ensure the information update of electronic map in point real-time update It is synchronous with urban development variation.
Described " each sub-information point is dragged to actual position " specifically: first bind the drag events of each sub-information point, then root According to the display position of each sub-information point on the electronic map, judge whether each sub-information point is located at the true position on electronic map It sets, if it is not, corresponding sub-information point is then dragged to actual position, (atural object representated by the actual position i.e. information point is in map On physical location);If so, keeping the position of corresponding sub-information point constant.For example, a certain sub-information point is currently located position The coordinate set is (25.2145,85.5485), but the seat of physical location of the atural object on map representated by the sub-information point Be designated as (25.3254,85.1547), then in the specific implementation, just by the sub-information point be dragged to coordinate be (25.3254, 85.1547) position, and the coordinate of the sub-information point is updated to (25.3254,85.1547).
The coordinate string splicing module, for the update coordinate of each sub-information point to be spliced into coordinate string and is saved.
In the specific implementation, the coordinate of each sub-information point passes through specific separator and is spliced into coordinate string, exists in this way In electronic map, each information point group only needs to save a record, that is, can record the information of each sub-information point, can be convenient pair Each sub-information point and information point group are managed.The specific separator is comma or branch, wherein the seat of single sub-information point Separated between target longitude and latitude by comma, by semicolon separated between the coordinate of two neighboring sub-information point, in this way, When it is implemented, coordinate string can be divided into the coordinate of each sub-information point according to actual needs.For example, a certain information point group Including 5 sub- information points, the coordinate of 5 sub- information points be respectively as follows: (119.3010,26.0501), (119.3011, 26.0501), (119.3012,26.0501), (119.3010,26.0502), (119.3010,26.0502), then by this 5 sons The coordinate of information point is spliced into coordinate string i.e. are as follows: 119.3010,26.0501;119.3011,26.0501;119.3012 26.0501;119.3010,26.0502;119.3010,26.0502.
The preferred embodiment four of system is presented in a kind of electronic map:
Shown in referring to figure 3., the system comprises: information point establishes module, information point obtains module, information point shows mould Block, information point be modules dragged and coordinate string splicing module;
The information point establishes module, is loaded into electronic map for establishing information point group, and by the information point group of foundation Database in, when establishing information point group, the name attribute of setting information point group is needed, to facilitate between different information point groups Identification.In the specific implementation, a sub- information point can be indicated using a light, in this way, a light group is exactly one A information point group.The information point is established module and is only just executed when needing to establish information point group.
The information point obtains module, for obtaining information point group, the information point group from the database of electronic map Including at least 2 attributes of sub-information point number and coordinate string;Wherein, sub-information point number attribute is set when establishing information point group It sets;Coordinate string attribute setting when obtaining the information point group for the first time, in the specific implementation, if the information point group obtained is With coordinate string attribute, then no longer need to be configured.
The information point display module, for each sub-information point in the information point group to be successively spaced to display in electronics On map;In this embodiment, each sub-information point is shown in the form of icon on the electronic map, with icon shape The advantages of formula is shown is: icon can intuitively show the information of sub-information point, can be convenient user and check each sub-information Position, distribution situation, the state etc. of point;For example, each sub-information point can be shown in the form of light icon electronically On figure.The information point display module specifically:
Whether the coordinate string for first judging the information point group is sky,
If so, determining that the information point group is no initializtion, each sub-information point icon of the information point group is dragged to electronics Map, and to be dragged to the first of electronic map sub- information point icon as initial point position, by other sub-information point icons court Any one direction of the initial point position is with mutually successively interval is not shown on the electronic map the distance of gland;Here with mutually not The purpose that the distance of gland shows each sub-information point is: it avoids each sub-information point from overlaping, sub-information point is caused to omit, Influence the subsequent operation to sub- information point.
Wherein, described " by other sub-information point icons towards the initial point position any one direction with mutually not gland Successively interval is shown on the electronic map distance " in, the calculation method of the mutual not distance of gland between two sub- information point icons Are as follows:
A, the first class resolution ratio R of electronic map is calculated1(i.e. the actual distance that a pixel represents),Wherein, S indicates that the lateral actual distance of electronic map, N indicate the horizontal pixel points of electronic map pictures;For example, the cross of electronic map It is 2000km to actual distance, the horizontal pixel points of electronic map pictures are 256, then the first class resolution ratio of the electronic map
B, the current scale bar rank K for obtaining electronic map calculates the of current electronic map as resolution levels K class resolution ratio Rk,K is positive integer, and k >=2;
C, according to the mutual not pixel distance S of gland of the sub-information point icon acquiring size sub-information point diagram target, to ensure Next sub-information point icon will not gland to preceding sub-information point icon;
D, the sub-information point diagram target mutually not distance L=R of gland is calculatedk*S。
If it is not, then determining that the information point group is to have initialized, each sub-information point diagram is obtained according to the coordinate string of information point group Target coordinate, and shown each sub-information point on the electronic map in the form of icon according to each sub-information point diagram target coordinate.
Operation is judged by above-mentioned initialization, it is impossible to which the information point of the no initializtion shown on map passes through manual Mode drags on map, so that it is obtained coordinate string attribute, achievees the purpose that initialization, in order to which next time directly uses.
The information point is modules dragged, for each sub-information point icon to be dragged to actual position, and obtains each after dragging Sub-information point diagram target updates coordinate;Due to the fast development with city, the information update of electronic map also quickly, pass through by To actual position the real-time update of electronic map information may be implemented, to ensure electronic map in each sub-information point real-time update Information update is synchronous with urban development variation.
Described " each sub-information point icon is dragged to actual position " specifically: first bind each sub-information point diagram target dragging thing Part judges whether each sub-information point icon is located at electronics further according to the display position of each sub-information point diagram mark on the electronic map Actual position on map, if it is not, corresponding sub-information point icon is then dragged to the actual position (actual position i.e. information point Physical location of the atural object representated by icon on map);If so, keeping corresponding sub-information point diagram target position constant. For example, the coordinate of a certain sub-information point icon present position is (43.2145,67.5485), but the sub-information point icon The coordinate of physical location of the representative atural object on map is (43.3254,67.1547), then in the specific implementation, just will The sub-information point icon is dragged to the position that coordinate is (43.3254,67.1547), and the sub-information point diagram target coordinate is updated For (43.3254,67.1547).
The coordinate string splicing module, for each sub-information point diagram target update coordinate to be spliced into coordinate string and is saved.
In the specific implementation, each sub-information point diagram target coordinate passes through specific separator and is spliced into coordinate string, this For sample in electronic map, each information point group only needs to save a record, that is, can record the information of each sub-information point, Ke Yifang Just each sub-information point and information point group are managed.The specific separator is comma or branch, wherein single sub-information point Separated between the longitude and latitude of the coordinate of icon by comma, passes through branch between two neighboring sub-information point diagram target coordinate Separate, in this way, in the specific implementation, so that it may coordinate string are divided into each sub-information point diagram target coordinate according to actual needs. For example, a certain information point group include 5 sub- information point icons, the coordinate of 5 sub- information point icons be respectively as follows: (56.3010, 112.0501), (56.3011,112.0501), (56.3012,112.0501), (56.3010,112.0502), (56.3010, 112.0502), then the coordinate of this 5 sub- information points is spliced into coordinate string i.e. are as follows: 56.3010,112.0501;56.3011, 112.0501;56.3012 112.0501;56.3010 112.0502;56.3010 112.0502.
In conclusion being closed the invention has the following beneficial effects: 1, without establishing binding with group for each information point System, and user can manipulate one group with the different information point group of same alike result and position simultaneously, i.e., need to only call an interface, It can be achieved with that all sub-information points of an information point group are carried out while deleting while dragging while replacing icon etc. with operation, This can reduce miscellaneous group binding work, and for actual business processing and with the operation of group information point and the equal band of display To greatly facilitate;2, it applies the invention in electronic map, the real-time update of electronic map information may be implemented, to ensure The information update of electronic map is synchronous with urban development variation.
Although specific embodiments of the present invention have been described above, those familiar with the art should be managed Solution, we are merely exemplary described specific embodiment, rather than for the restriction to the scope of the present invention, it is familiar with this The technical staff in field should be covered of the invention according to modification and variation equivalent made by spirit of the invention In scope of the claimed protection.

Claims (8)

1. a kind of electronic map rendering method, characterized by the following steps:
Information point group is obtained from the database of electronic map, the information point group includes at least sub-information point number and coordinate string Attribute;
Each sub-information point in the information point group is successively spaced display on the electronic map;Between two sub- information points mutually not The calculation method of the distance of gland are as follows:
A, the first class resolution ratio R of electronic map is calculated1,Wherein, S indicates the lateral actual distance of electronic map, N Indicate the horizontal pixel points of electronic map pictures;
B, the current scale bar rank K for obtaining electronic map calculates the kth grade of current electronic map as resolution levels Resolution ratio Rk,K is positive integer, and k >=2;
C, according to the mutually not pixel distance P of gland of the acquiring size of the sub-information point sub-information point;
D, the sub-information point mutually not distance L=R of gland is calculatedk*P;
Each sub-information point is dragged to actual position, and obtains the update coordinate of each sub-information point after dragging;
The update coordinate of each sub-information point is spliced into coordinate string and is saved;
The coordinate of each sub-information point is spliced into coordinate string by separator, and the separator is comma or branch, wherein Separated between the longitude and latitude of the coordinate of single sub-information point by comma, is passed through between the coordinate of two neighboring sub-information point Semicolon separated;
When calling the wherein interface of the corresponding coordinate string of an information point group, all sub-information points to the information point group are realized It carries out while deleting while dragging while replacing icon operation.
2. a kind of electronic map rendering method according to claim 1, it is characterised in that: described " by the information point group In each sub-information point be successively spaced display on the electronic map " specifically: first judge the information point group coordinate string whether be Sky,
If so, determine that the information point group is no initializtion, each sub-information point of the information point group is dragged to electronic map, and with First sub- information point of electronic map is dragged to as initial point position, by other sub-information points towards any of the initial point position One direction is with mutually successively interval is not shown on the electronic map the distance of gland;
If it is not, then determining that the information point group is to have initialized, the coordinate of each sub-information point is obtained according to the coordinate string of information point group, And each sub-information point is shown on the electronic map according to the coordinate of each sub-information point.
3. a kind of electronic map rendering method according to claim 1, it is characterised in that: described " to drag each sub-information point To actual position " specifically: the drag events for first binding each sub-information point, further according to each sub-information point showing on the electronic map Show position, judge whether each sub-information point is located at the actual position on electronic map, if it is not, then dragging corresponding sub-information point To actual position;If so, keeping the position of corresponding sub-information point constant.
4. a kind of electronic map rendering method according to claim 1, it is characterised in that: described " from the number of electronic map According to information point group is obtained in library, the information point group includes at least sub-information point number and coordinate string attribute " before step, also wrap It includes: establishing information point group, and the information point group of foundation is loaded into the database of electronic map.
5. a kind of electronic map rendering method described in one of -4 according to claim 1, it is characterised in that: each sub-information point It is shown on the electronic map in the form of icon.
6. system is presented in a kind of electronic map, it is characterised in that: include:
Information point obtains module, and for obtaining information point group from the database of electronic map, the information point group is included at least Sub-information point number and coordinate string attribute;
Information point display module, for each sub-information point in the information point group to be successively spaced to display on the electronic map; The calculation method of the mutual not distance of gland between two sub- information points are as follows:
A, the first class resolution ratio R of electronic map is calculated1,Wherein, S indicates the lateral actual distance of electronic map, N Indicate the horizontal pixel points of electronic map pictures;
B, the current scale bar rank K for obtaining electronic map calculates the kth grade of current electronic map as resolution levels Resolution ratio Rk,K is positive integer, and k >=2;
C, according to the mutually not pixel distance P of gland of the acquiring size of the sub-information point sub-information point;
D, the sub-information point mutually not distance L=R of gland is calculatedk*P;
Information point is modules dragged, for each sub-information point to be dragged to actual position, and obtains each sub-information point after dragging more New coordinate;
Coordinate string splicing module, for the update coordinate of each sub-information point to be spliced into coordinate string and is saved;
The coordinate of each sub-information point is spliced into coordinate string by separator, and the separator is comma or branch, wherein Separated between the longitude and latitude of the coordinate of single sub-information point by comma, is passed through between the coordinate of two neighboring sub-information point Semicolon separated;
When calling the wherein interface of the corresponding coordinate string of an information point group, all sub-information points to the information point group are realized It carries out while deleting while dragging while replacing icon operation.
7. system is presented in a kind of electronic map according to claim 6, it is characterised in that: the information point display module tool Body are as follows:
Whether the coordinate string for first judging the information point group is sky,
If so, determine that the information point group is no initializtion, each sub-information point of the information point group is dragged to electronic map, and with First sub- information point of electronic map is dragged to as initial point position, by other sub-information points towards any of the initial point position One direction is with mutually successively interval is not shown on the electronic map the distance of gland;
If it is not, then determining that the information point group is to have initialized, the coordinate of each sub-information point is obtained according to the coordinate string of information point group, And each sub-information point is shown on the electronic map according to the coordinate of each sub-information point.
8. system is presented in a kind of electronic map according to claim 6, it is characterised in that: described " to drag each sub-information point To actual position " specifically: the drag events for first binding each sub-information point, further according to each sub-information point showing on the electronic map Show position, judge whether each sub-information point is located at the actual position on electronic map, if it is not, then dragging corresponding sub-information point To actual position;If so, keeping the position of corresponding sub-information point constant.
CN201510880458.5A 2015-12-03 2015-12-03 A kind of electronic map rendering method and system Active CN105512262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510880458.5A CN105512262B (en) 2015-12-03 2015-12-03 A kind of electronic map rendering method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510880458.5A CN105512262B (en) 2015-12-03 2015-12-03 A kind of electronic map rendering method and system

Publications (2)

Publication Number Publication Date
CN105512262A CN105512262A (en) 2016-04-20
CN105512262B true CN105512262B (en) 2019-09-06

Family

ID=55720244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510880458.5A Active CN105512262B (en) 2015-12-03 2015-12-03 A kind of electronic map rendering method and system

Country Status (1)

Country Link
CN (1) CN105512262B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436878A (en) * 2016-05-25 2017-12-05 滴滴(中国)科技有限公司 The decision method and device of identical information point, the De-weight method and equipment of information point
CN109074396B (en) 2016-05-10 2022-06-14 北京嘀嘀无限科技发展有限公司 System and method for recommending personalized content
CN109215486B (en) * 2018-07-18 2021-11-26 平安科技(深圳)有限公司 Electronic map marking and displaying method and device, terminal equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373244B2 (en) * 2004-04-20 2008-05-13 Keith Kreft Information mapping approaches
CN101969451B (en) * 2010-05-04 2013-07-24 福州开睿动力通信科技有限公司 POI data acquisition system and method based on smart phone
CN102506878A (en) * 2011-10-17 2012-06-20 深圳市路畅科技有限公司 Method for establishing point of interest (POI) in application of location based service (LBS)
CN103902661B (en) * 2014-03-06 2017-02-22 东莞市南星电子有限公司 Information display method for correcting search result object selected by user on electronic map interface
CN104252529A (en) * 2014-09-04 2014-12-31 百度在线网络技术(北京)有限公司 Method and device for loading map annotations

Also Published As

Publication number Publication date
CN105512262A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN102819671B (en) A kind of method of carrying out data analysis in conjunction with map
US10929004B2 (en) Diagrams for structured data
US20110161875A1 (en) Method and apparatus for decluttering a mapping display
CN105512262B (en) A kind of electronic map rendering method and system
US8326530B2 (en) System and apparatus for processing information, image display apparatus, control method and computer program
CN105653281A (en) Method and apparatus for capturing screen in mobile device
CN109376761A (en) The method for digging and device of a kind of address mark and its longitude and latitude
CN110765227A (en) Road traffic network model construction method and device
US10073896B2 (en) System and method for providing nearby search service using POI clustering scheme
US11268822B2 (en) Method and system for navigation using video call
CN105975142A (en) Method and device for icon moving
CN104320848B (en) The system and method for indoor positioning is realized based on cloud computing
JP5214933B2 (en) Map display system
US10209876B2 (en) Method and apparatus for providing a segmented scrollbar
CN107576332B (en) Transfer navigation method and device
CN112652189B (en) Traffic distribution method, device and equipment based on policy flow and readable storage medium
KR101843862B1 (en) Method and system for providing bicycle road information
KR101509926B1 (en) Packaged searching system and method of the same
CN109582269A (en) Physics mosaic screen display methods, device and terminal device
KR101737544B1 (en) System and method for providing map transaction service
CN114822062A (en) Traffic station prompting method and device and storage medium
CN113850993A (en) Signal channelizing rendering method and system for traffic road intersection
WO2019117048A1 (en) In-vehicle device, information providing system, and information presentation method
CN113568535B (en) Map plate selecting method, map plate selecting device, medium and electronic equipment
CN103150087A (en) Method and device for realizing positioning of audio window

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 350108, No. 2, building 9, 7 hi tech Avenue, Fuzhou Town, Minhou County, Fujian, China

Applicant after: Fujian star net joint information system Co., Ltd.

Address before: 350000, No. 2, building 9, 7 hi tech Avenue, Fuzhou Town, Minhou County, Fujian, China

Applicant before: Fujian Star-Net Security Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant