WO2020124749A1 - Mapping method and apparatus, and computer device - Google Patents
Mapping method and apparatus, and computer device Download PDFInfo
- Publication number
- WO2020124749A1 WO2020124749A1 PCT/CN2019/073530 CN2019073530W WO2020124749A1 WO 2020124749 A1 WO2020124749 A1 WO 2020124749A1 CN 2019073530 W CN2019073530 W CN 2019073530W WO 2020124749 A1 WO2020124749 A1 WO 2020124749A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- point
- coordinate system
- area
- latitude
- longitude
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B7/00—Measuring arrangements characterised by the use of electric or magnetic techniques
- G01B7/32—Measuring arrangements characterised by the use of electric or magnetic techniques for measuring areas
Definitions
- the invention relates to the field of digital measurement technology, in particular to a surveying and mapping method, device and computer equipment.
- the built-in GPS of the smartphone is used to measure the area, and the positioning error is more than 5 meters, which cannot be used for high-precision area measurement, so the accuracy is low and the user experience is poor.
- the main purpose of the present invention is to provide a surveying and mapping method, device and computer equipment to achieve the purpose of improving the accuracy of surveying and mapping data.
- the invention proposes a surveying and mapping method, including:
- the invention also proposes a surveying and mapping device based on GPS multi-frequency positioning technology, including:
- the first acquisition module is used to acquire the latitude and longitude of multiple sample points on the terminal's motion track in real time through multi-frequency GPS at a preset frequency;
- Conversion module used to convert the latitude and longitude of multiple samples to plane coordinates
- Forming module used to form a closed designated area according to the plane coordinates of multiple sample points
- the first calculation module is used to calculate the mapping data corresponding to the specified area through a preset formula.
- the present invention also provides a computer device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor.
- the processor implements the computer program to implement the above-described surveying and mapping method .
- the present invention uses the multi-frequency GPS built in the terminal to obtain the sample points on the terminal's movement track to achieve sub-meter positioning, and at the same time obtain the sample points at a preset frequency, so that the GPS obtains enough sample points to reduce the error;
- the latitude and longitude are converted into plane coordinates, so that the spatial solid geometry problem is transformed into a plane geometry problem, so that the collected multiple sample points are fitted into the specified plane area, and then the surveying and mapping data of the specified area is calculated algebraically to achieve high Accurately measure the area and circumference of the area.
- FIG. 1 is a schematic diagram of steps of an embodiment of a surveying and mapping method of the present invention
- FIG. 2 is a schematic structural diagram of an embodiment of a surveying and mapping device of the present invention.
- FIG. 3 is a schematic structural diagram of a non-linear movement trajectory of a terminal in an embodiment of the present invention.
- an embodiment of the mapping method of the present invention includes:
- S1 at a preset frequency, obtain the latitude and longitude of multiple sample points on the movement track of the terminal in real time through multi-frequency GPS;
- the above terminals include any terminal devices such as mobile phones, tablet computers, PDAs (Personal Digital Assistants), in-vehicle computers, etc.; the above terminals are installed with built-in multi-frequency GPS; Frequency GPS includes dual-frequency GPS and tri-frequency GPS, the frequency band of GPS is L1, L2 and/or L5; the above-mentioned dual-frequency GPS is L1+L2 dual-frequency GPS, L1+L5 dual-frequency GPS or L2+L5 dual-frequency GPS, three Frequency GPS is L1+L2+L5 tri-band GPS; the frequency band of L1 is 1575.42MHz ⁇ 1.023MHz, the frequency band of L2 is 1227.60MHz ⁇ 1.023MHz, and the frequency band of L5 is 1176.45MHz ⁇ 1.023MHz; the dual-frequency GPS is preferably L1 +L5 dual-frequency GPS, because L1's signal bit rate is low, it is easy to capture the signal, L5
- the motion trajectory is a trajectory where the user's handheld terminal walks around the boundary of the measurement area; the user's handheld terminal moves on the boundary of the measurement area, and during the user's movement, the multi-frequency GPS is updated at a preset frequency Position signal, for example, the terminal collects the current latitude and longitude of the terminal through multi-frequency GPS after a preset time period, and uses the collected latitude and longitude as the sample points; so after the user walks around, the terminal collects multiple sample points ;
- the above-mentioned preset time period is preferably the shortest time period, for example, 20ms; in order to ensure the measurement accuracy of the measurement area, collect as many sample points as possible.
- the latitude and longitude are the coordinate position in the geographic coordinate system, which belongs to the data in the three-dimensional space, which is not convenient for the calculation of the area in the two-dimensional plane, so it is necessary to convert the latitude and longitude to the plane under the plane coordinate system of the plane where the measurement area is located Coordinates, and then transform spatial geometry problems into planar geometry problems, and then use algebraic methods to deal with planar geometry problems; convert latitude and longitude into planar coordinates can first convert the geographic coordinate system into a spatial rectangular coordinate system, and then convert the spatial rectangular coordinate system It is a plane rectangular coordinate system; among them, the specific conversion method can be adopted by the Bursa 7-parameter method, that is, for the similarities and differences between the reference ellipsoid and the ground datum, different parameters are used to convert through the Euler angle transformation matrix.
- the plane coordinates are the plane coordinates of the sample points in the same plane coordinate system, and the specified area is a single connected area fitted by the sample points; because the number of sample points is enough, the above The designated area after sample point integration can be regarded as a measurement area approximately.
- the surveying data includes at least the area and perimeter of the specified area; based on the plane coordinates to establish a single connected area model, then the preset formula at least includes the perimeter formula and area formula that satisfy the single connected area, will
- the above single connected area is regarded as the measurement area, and the above-mentioned plane is substituted into the perimeter formula and the area formula to calculate the perimeter and area of the measurement area.
- the present invention uses the multi-frequency GPS built in the terminal to obtain the sample points on the terminal's movement track to achieve sub-meter positioning, and at the same time obtain the sample points at a preset frequency, so that the GPS obtains enough sample points to reduce the error;
- the latitude and longitude are converted into plane coordinates, so that the spatial solid geometry problem is transformed into a plane geometry problem, so that the collected multiple sample points are fitted into the specified plane area, and then the surveying and mapping data of the specified area is calculated algebraically to achieve high Accurately measure the area and circumference of the area.
- the multiple sample points include a first same point and multiple second sample points, and the latitude and longitude include a first latitude and longitude and multiple second latitude and longitude;
- the step S1 of the GPS acquiring the latitude and longitude of multiple samples on the movement track of the terminal in real time includes:
- S11 Receive an instruction to start measurement, and obtain the first longitude and latitude of the first same point on the motion track through the multi-frequency GPS, where the first same point is the starting point of the motion track;
- step S11 the user holds the terminal and inputs an instruction to start the measurement on the terminal.
- the input method may be key input, touch screen operation input, voice input and/or wireless remote control input; the terminal receives the instruction to start the measurement, Multi-frequency GPS immediately updates the location of the current terminal, records the latitude and longitude of the location, and takes this as the first point, and the latitude and longitude of the location is the first latitude and longitude; the first point above will serve as the origin and geography of the plane coordinate system The origin of the coordinate system.
- the multi-frequency GPS collects the sample point and records the latitude and longitude of the sample point after a specified period of time.
- the user has been holding the terminal on the boundary of the measurement area Move, therefore, when the user returns to the position of the first point, the terminal collects multiple second samples; in order to ensure that the number of second samples is sufficient, the user can slow down the moving speed during the movement process, thereby Allow the user to walk through the boundary of the specified area for a long enough time, so that the number of multi-frequency GPS updates is sufficient, and the number of samples collected is sufficient; or accelerate the update frequency of multi-frequency GPS.
- the step S2 of converting the latitude and longitude of a plurality of sample points into plane coordinates includes:
- the geographic coordinate system is a geodetic coordinate system, which is also a spatial rectangular coordinate system, the latitude and longitude of the plurality of second sample points are coordinates on the geographic coordinate system, and the latitude and longitude of the second sample points are on the geographic coordinate system Is represented by (J, W, H), where J is longitude, W is latitude, and H is altitude; the coordinate axis of the above geographic coordinate system can also be in other directions.
- the preset coordinate system conversion rule may perform Euler angle transformation according to the first posture information collected by the built-in acceleration sensor, gyroscope and/or geomagnetic sensor on the terminal; the first posture information is the terminal The posture relationship between the current coordinate system and the plane coordinate system, and there is also a posture relationship between the terminal coordinate system and the geographical coordinate system, and then the second posture information of the geographical coordinate system is obtained by the Euler angle transformation matrix.
- the second posture information is the plane coordinate system and The attitude relationship of the geographic coordinate system, and convert the geographic coordinate system into a plane coordinate system with the first point as the origin according to the second attitude information;
- the terminal coordinate system is the carrier coordinate system, and the origin of the terminal coordinate system and the terminal center Coincident, the z axis points above the terminal, the x axis points to the front of the terminal, and the y axis points to the right of the terminal.
- the second attitude information includes a pitch angle ⁇ (pitch), a yaw angle ⁇ (yaw), and a roll angle ⁇ (roll);
- the pitch angle is an angle of rotation around the Y axis, that is, the angle between the X axis of the terminal coordinate system and the horizontal plane ,
- the pitch angle is positive, otherwise it is negative
- the above yaw angle ⁇ (yaw) is the angle of rotation around the Z axis, that is, the terminal coordinate system
- the angle between the projection of the X axis on the horizontal plane and the X axis of the plane coordinate system (on the horizontal plane, the pointing target is positive), from the X axis of the plane coordinate system to the X coordinate projection of the terminal coordinate system
- the yaw angle is positive, that is, the terminal's right yaw is positive, otherwise it is negative.
- the roll angle ⁇ (roll) is the angle of rotation of the terminal around the X axis of the terminal coordinate system, that is, the angle between the Z axis of the terminal coordinate system and the vertical plane passing through the X axis of the terminal coordinate system, the terminal rolls to the right is positive, Otherwise it is negative.
- the second latitudes and longitudes of the plurality of second sample points are the coordinate points on the geographic coordinate system with the center of the earth as the origin.
- the Euler matrix transformation is used to convert the geographic coordinate system with the center of the earth as the origin.
- the coordinate points on the coordinate system are also converted into plane coordinates corresponding to the plane coordinate system.
- the step S1 of acquiring the latitude and longitude of the multiple sample points in real time through the multi-frequency GPS in real time to obtain multiple sample points on the terminal trajectory at a preset frequency further includes:
- a correction point is calculated by an inertial navigation algorithm, and the correction point is a theoretical point of terminal inertial motion;
- the terminal coordinate system is a carrier coordinate system, the origin coincides with the terminal center, the z axis points above the terminal, the x axis points to the front of the terminal, and the y axis points to the right of the terminal.
- the linear motion data and angular motion data of the terminal relative to the inertial space with the terminal coordinate system as the reference frame are measured by inertial components such as accelerometers and gyroscopes; the above inertial components are installed in the terminal and do not rely on external data or It radiates energy to the outside and is not easily disturbed.
- the correction point is the theoretical position of the terminal inertial motion estimated by the linear motion data and the angular motion data of the inertial navigation algorithm;
- the linear motion data and the angular motion data include the triaxial acceleration and triaxial angular rate of the terminal ;
- the triaxial angular rate can be transformed into an attitude integration function, that is, an attitude integration function; using the attitude data to convert the measured triaxial acceleration to the current terminal coordinate system, and integrating it into a vector velocity function, that is, vector velocity integration Function; a function that integrates the vector velocity in the terminal coordinate system into a position, that is, a position integration function.
- the correction point is the theoretical position calculated by the inertial navigation algorithm;
- the inertial navigation algorithm at least includes an attitude integration function, a vector velocity integration function and a position integration function;
- the triaxial angular rate of the terminal is determined by the attitude integration function Converted into a function of attitude product, the three-axis acceleration of the terminal is converted into a function of vector velocity integration in the current terminal coordinate system through the above vector velocity integration function, and then the vector velocity integral of the current terminal coordinate system is converted into position integral by the position integration function Function to obtain the correction point.
- the theoretical position calculated by the inertial navigation algorithm is compared with the position of the specified sample points collected by the multi-frequency GPS, so as to eliminate the sample points with large deviation from the theoretical position.
- step S104 if the value of the position deviation between the two exceeds the preset deviation value, it means that the specified sample points collected by the multi-frequency GPS will cause a larger error in the measurement area, so the specified sample point is cleared; Set the deviation value as the parameter value set by yourself after the actual measurement.
- the step S103 of determining whether the position deviation between the correction point and the designated sample point is greater than a preset deviation value includes:
- S1032 Determine whether the first deviation between the first slope and the second slope is greater than the first deviation value.
- the above specified sample point is a sample point that is compared with the correction point for position deviation, the same point is the adjacent sample point before the specified sample point is collected, and the above same point has been subjected to position deviation with the correction point Sample points for comparison and retention; the correction point for position comparison with the specified sample point and the correction point for position comparison with the same point are not the same correction point; the yaw angle of the above correction point for position comparison with the specified sample point is the terminal
- the angle between the front of the movement and the X axis of the terminal coordinate system can be calculated according to the attitude integration function in the inertial navigation algorithm.
- step S1032 suppose the first slope of the straight line connecting the specified sample point and the same point is Kn, and the second slope of the correction point is tan ⁇ . If the formula
- the step S103 of determining whether the position deviation between the correction point and the designated sample point is greater than a preset deviation value further includes:
- S1033 Calculate the average speed of the terminal displacement process between the specified sample point and the previous point, and obtain the instantaneous speed of the correction point; wherein the previous point is the same as the previous point adjacent to the specified sample point;
- S1034 Determine whether the second deviation between the instantaneous speed and the average speed is greater than the second deviation value.
- step S103 may include steps S1031-S1034, or may only include steps S1031-S1032 or steps S1033-S1034; preferably, steps S1031-S1034 are included.
- step S1034 suppose the average speed is v 1 and the instantaneous speed is v 2. If the formula
- the preset formula includes an area formula and a perimeter formula
- the step S4 of calculating the mapping data corresponding to the specified area through the preset formula according to the plane coordinates of the plurality of sample points include:
- S42 Calculate the area of the polygon area according to the area formula and the plane coordinates of the vertex;
- S43 Calculate the perimeter of the polygon area according to the perimeter formula and the plane coordinates of the vertex.
- step S41 since the movement trajectory is not necessarily a straight line, in order to make the movement trajectory as straight as possible within the error range, it is necessary to remove points that are not on the straight line; as shown in FIG. 3, set the number of multiple sample points to M, When forming a closed designated area, the non-linear motion trajectory is arc AC. Take three sample points A, B, and C on arc AC, and calculate the slopes K AB and K BC of AB and BC .
- the sampling point C is selected as the vertex, and the sample point B is removed, otherwise, the sampling point B is selected as the vertex, and the sample point C is temporarily retained, and so on, so as to obtain N vertices, the N vertices Connected in turn to form a closed polygonal area;
- the above polygonal area is approximately a specified area, and the polygonal area is a single connected area model enclosed by a piecewise smooth curve, let the polygonal area be G, the curve R on G, function p(x, y), q(x, y) have a first-order continuous partial derivative in G, then the curve integral ⁇ R p dx+qdy is sufficient and necessary in G to be independent of the path Established in G Neiheng, applying Green's formula, there is
- the perimeter L of the polygon containing N vertices is calculated, then the length of each side of the polygon containing N vertices is calculated, and then the length of each side is summed, so according to the above
- the perimeter formula of the polygon with N-1 sides can be obtained: Substituting the plane coordinates of each of the above vertices into the above perimeter formula for summation, then the perimeter with the specified area.
- an embodiment of a surveying and mapping device based on GPS multi-frequency positioning technology of the present invention includes:
- the first acquisition module 1 is used to acquire the latitude and longitude of multiple sample points on the motion track in real time through multi-frequency GPS at a preset frequency;
- the conversion module 2 is used to convert the latitude and longitude of the multiple sample points into plane coordinates
- a forming module 3 configured to form a closed designated area according to the plane coordinates of the plurality of sample points;
- the first calculation module 4 is configured to calculate the mapping data corresponding to the specified area through a preset formula.
- the above device may be a terminal (but not limited to a terminal), and the terminal includes any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an on-board computer, etc.; the above terminal is installed with a built-in multi-frequency GPS; the above-mentioned multi-frequency GPS Including dual-frequency GPS and tri-frequency GPS, the frequency band of GPS is L1, L2 and/or L5; the above-mentioned dual-frequency GPS is L1+L2 dual-frequency GPS, L1+L5 dual-frequency GPS or L2+L5 dual-frequency GPS, tri-frequency GPS It is L1+L2+L5 tri-band GPS; the frequency band of L1 is 1575.42MHz ⁇ 1.023MHz, the frequency band of L2 is 1227.60MHz ⁇ 1.023MHz, and the frequency band of L5 is 1176.45MHz ⁇ 1.023MHz; the above-mentioned dual-frequency GPS is preferably L1+L5 Dual-frequency GPS, because L1's signal
- the above-mentioned motion trajectory is a trajectory in which the user's hand-held mapping device walks around the boundary of the measurement area; the user's hand-held mapping device moves on the boundary of the measurement area.
- the frequency updates the position signal of the multi-frequency GPS.
- the first acquisition module 1 collects the current latitude and longitude of the mapping device through the multi-frequency GPS every time a preset period of time passes, and uses the collected latitude and longitude as the sample point; After that, the first acquisition module 1 collects multiple samples; wherein the preset time period is preferably the shortest time period, for example, 20ms; in order to ensure the measurement accuracy of the measurement area, the first acquisition module 1 collects as many as possible Number of samples.
- the above latitude and longitude are the coordinate position in the geographic coordinate system, which belongs to the data in three-dimensional space, which is not convenient for the calculation of the area in the two-dimensional plane, so it is necessary to convert the latitude and longitude into the plane coordinate system of the plane where the measurement area is located.
- the conversion module 2 converts the latitude and longitude into plane coordinates can first convert the geographic coordinate system into a space rectangular coordinate system, and then the space The rectangular coordinate system is converted into a planar rectangular coordinate system; among them, the specific conversion method can be through the Bursa 7-parameter method, according to the similarities and differences between the reference ellipsoid and the ground datum, using different parameters to convert through the Euler angle transformation matrix.
- the above-mentioned plane coordinates are the plane coordinates of the sample points in the same plane coordinate system, and the above-mentioned designated area is the single connected area that the forming module 3 fits through the above-mentioned sample points; because the number of sample points is enough Therefore, the designated area integrated by the above sample points can be approximately regarded as the measurement area.
- the surveying data includes at least the area and perimeter of the specified area; the single-connected area model is established according to the plane coordinates, then the preset formula at least includes the perimeter formula and area that satisfy the single-connected area In the formula, the above single connected area is regarded as the measurement area, and the first calculation module 4 substitutes the above-mentioned plane into the perimeter formula and the area formula, thereby calculating the perimeter and area of the measurement area.
- the multi-frequency GPS built into the surveying and mapping device realizes sub-meter positioning.
- the first acquisition module 1 collects the maximum number of sample points in the specified area, and the forming module 3 fits the collected multiple sample points into the specified area.
- the first calculation module 4 calculates the area and perimeter of the designated area.
- the multiple sample points include a first same point and multiple second sample points
- the latitude and longitude include a first latitude and longitude and multiple second latitude and longitude
- the first acquisition module 1 includes:
- a first acquiring unit configured to receive an instruction to start measurement, and acquire the first longitude and latitude of the first same point on the movement track through the multi-frequency GPS, and the first same point is the starting point of the movement track;
- the second obtaining unit is configured to obtain second latitudes and longitudes corresponding to the plurality of second sample points on the movement track through the multi-frequency GPS at a preset frequency.
- the user holds the surveying and mapping device and inputs an instruction to start the measurement on the surveying and mapping device.
- the input method may be key input, touch screen operation input, voice input and/or wireless remote control input; the surveying and mapping device receives The command to start measurement, multi-frequency GPS immediately updates the current position of the surveying and mapping device, records the latitude and longitude of the position, and takes this as the first point, and the latitude and longitude of the position is the first latitude and longitude; the first point above will be used as the plane The origin of the coordinate system and the origin of the geographic coordinate system.
- the second acquisition unit acquires the sample point and records the latitude and longitude of the sample point through multi-frequency GPS every time a specified period of time passes.
- the user has been holding the terminal to move on the boundary of the measurement area, so when the user returns to the position of the first point, the second acquisition unit collects multiple second samples; in order to ensure that the number of second samples is sufficient More, the user can slow down the movement speed during the movement, so that the user can walk through the boundary of the specified area for a long enough time, so that the frequency of the multi-frequency GPS update is sufficient enough, and the sample points collected by the second acquisition unit Enough; or speed up the update frequency of multi-frequency GPS.
- the conversion module 2 includes:
- a first conversion unit configured to convert the geographic coordinate system into a planar coordinate system with the first point as the origin according to a preset coordinate system conversion rule
- the second conversion unit is configured to convert the second latitude and longitude of the plurality of second sample points into plane coordinates of the plane coordinate system, respectively.
- the geographic coordinate system is a geodetic coordinate system, which is also a space rectangular coordinate system, the latitude and longitude of the plurality of second sample points are coordinates on the geographic coordinate system, and the latitude and longitude of the second sample point are in the geographic coordinate system
- J, W, H the coordinate axis of the above geographic coordinate system can also be in other directions.
- the preset coordinate system conversion rule may perform Euler angle transformation according to the first posture information collected by the acceleration sensor, gyroscope, and/or geomagnetic sensor built in the surveying and mapping device;
- the first posture The information is the attitude relationship between the coordinate system where the terminal is located and the plane coordinate system, and there is also an attitude relationship between the terminal coordinate system and the geographic coordinate system, and then the second attitude information of the geographic coordinate system is obtained by the Euler angle transformation matrix, and the second attitude information is plane
- the geographic coordinate system is converted into a plane coordinate system with the first point as the origin;
- the terminal coordinate system is the carrier coordinate system, and the origin of the terminal coordinate system It coincides with the center of the surveying and mapping device, the z axis points to the top of the surveying and mapping device, the x axis points to the front of the surveying and mapping device, and the y axis points to the right of the surveying and mapping device.
- the second attitude information includes a pitch angle ⁇ (pitch), a yaw angle ⁇ (yaw), and a roll angle ⁇ (roll);
- the pitch angle is an angle of rotation around the Y axis, that is, the angle between the X axis of the terminal coordinate system and the horizontal plane ,
- the pitch angle is positive, otherwise it is negative
- the above yaw angle ⁇ (yaw) is the angle of rotation around the Z axis, that is, the terminal coordinate system
- the angle between the projection of the X axis on the horizontal plane and the X axis of the plane coordinate system (on the horizontal plane, the pointing target is positive), from the X axis of the plane coordinate system to the X coordinate projection of the terminal coordinate system
- the yaw angle is positive, that is, the right yaw of the surveying and mapping device is positive, otherwise it is negative.
- the roll angle ⁇ (roll) is the angle of rotation of the surveying and mapping device around the X axis of the terminal coordinate system, that is, the angle between the Z axis of the terminal coordinate system and the vertical plane passing through the X axis of the terminal coordinate system, and the mapping device rolls to the right Is positive, otherwise it is negative.
- the second latitudes and longitudes of the plurality of second sample points are the coordinate points on the geographic coordinate system with the center of the earth as the origin, and the geographic coordinate system with the center of the earth as the origin is converted into The geographic coordinate system with the first point as the origin, and then converts the second latitude and longitude to the coordinate point on the geographic coordinate system with the first point as the origin, and then converts the geographic coordinate system to the plane coordinate system, the second latitude and longitude The coordinate points on the geographic coordinate system are also converted into plane coordinates corresponding to the plane coordinate system.
- the device further includes:
- the second acquisition module is used to acquire the linear motion data and angular motion data of the terminal in the terminal coordinate system
- the second calculation module is used to calculate a correction point calculated by the inertial navigation algorithm according to the linear motion data and the angular motion data, where the correction point is a theoretical point of terminal inertial motion;
- the judgment module is used for judging whether the position deviation between the correction point and the specified sample point is greater than a preset deviation value, and the specified sample point is a sample point in the second sample point;
- the clearing module if yes, clears the specified sample point.
- the terminal coordinate system is a carrier coordinate system, the origin coincides with the center of the surveying and mapping device, the z axis points above the surveying device, the x axis points in front of the surveying device, and the y axis points to the right of the surveying device.
- the linear motion data and angular motion data of the mapping device relative to the inertial space with the terminal coordinate system as the reference frame are measured by inertial elements such as accelerometers and gyroscopes; the above inertial elements are installed in the mapping device and do not depend on external data during work. It also does not radiate energy to the outside and is not susceptible to interference.
- the correction point is the theoretical position of the terminal inertial motion calculated by the linear motion data and angular motion data of the inertial navigation algorithm;
- the linear motion data and angular motion data include the three-axis acceleration and three axes of the terminal Angular rate;
- the three-axis angular rate can be transformed into an integral function of attitude, that is, the attitude integral function; using the attitude data to convert the measured three-axis acceleration to the current terminal coordinate system, and then integrate it into a function of vector velocity, that is, vector Speed integration function; a function that integrates the vector speed in the terminal coordinate system into a position, that is, a position integration function.
- the correction point is the theoretical position calculated by the inertial navigation algorithm;
- the above inertial navigation algorithm includes at least an attitude integration function, a vector velocity integration function and a position integration function;
- the three axis angular rate of the terminal is determined by the attitude integration function Converted into a function of attitude product, the three-axis acceleration of the terminal is converted into a function of vector velocity integration in the current terminal coordinate system through the above vector velocity integration function, and then the vector velocity integral of the current terminal coordinate system is integrated into the position integral by the position integration function Function to obtain the correction point.
- the judgment module compares the theoretical position calculated by the inertial navigation algorithm with the position of the specified sample points collected by the multi-frequency GPS, and clears the module to remove the sample points with large error from the theoretical position.
- the removal module clears the specified sample points;
- the above-mentioned preset deviation value is a parameter value set by itself after actual measurement.
- the judgment module includes:
- a first calculation unit configured to calculate a first slope of a straight line connecting the specified sample point and the same point as above, and calculate a second slope of the yaw angle of the correction point, wherein the above same point is the same as Said the same point adjacent to the designated sample point;
- the first determining unit is configured to determine whether the first deviation between the first slope and the second slope is greater than the first deviation value.
- the above-mentioned specified sample point is a sample point for comparing the position deviation with the correction point, the same point is the adjacent sample point before the specified sample point is collected, the above-mentioned same point has already been performed with the correction point
- the sample points for which the position deviation is compared and retained; the correction point for the position comparison with the specified sample point and the correction point for the position comparison with the same point are not the same correction point; the yaw angle of the above correction point for the position comparison with the specified sample point
- the angle between the front of the mapping device and the X axis of the terminal coordinate system can be calculated according to the attitude integration function in the inertial navigation algorithm.
- the above judgment module further includes:
- a second calculation unit configured to calculate the average speed of the terminal displacement process between the specified sample point and the same point as above, and to obtain the instantaneous speed of the correction point, wherein the previous point is the phase corresponding to the specified sample point Same point before the neighbor;
- a second judgment unit is used to judge whether the second deviation between the instantaneous speed and the average speed is greater than a second deviation value.
- the above determination module may include a first calculation unit, a first determination unit, a second calculation unit and a second determination unit, or may include only the first calculation unit and the first determination unit or only the second calculation unit and the second determination unit ; Preferably, it includes a first calculation unit, a first determination unit, a second calculation unit, and a second determination unit.
- the average speed be v 1 and the instantaneous speed be v 2. If the formula
- the preset formula includes an area formula and a perimeter formula
- the first calculation module 4 includes:
- a fitting unit configured to fit the specified area into a polygonal area with multiple vertices according to a predetermined error formula according to the plane coordinates of the multiple sample points; wherein the vertices of the polygon are the multiple Sample points in a sample point;
- An area calculation unit used to calculate the area of the polygonal area according to the area formula and the plane coordinates of the vertex
- the perimeter calculation unit is configured to calculate the perimeter of the polygonal area according to the perimeter formula and the plane coordinates of the vertex.
- the movement trajectory is not necessarily a straight line
- the non-linear motion trajectory is arc AC
- the vertices are connected in sequence to form a closed polygonal area; the above polygonal area is approximately a specified area, and the polygonal area is a single connected area model surrounded by a piecewise smooth curve, let the polygonal area be G
- the perimeter calculation unit calculate the perimeter L of the polygon containing N vertices, then calculate the length of each side of the polygon containing N vertices, and then sum the length of each side, so according to the above
- the perimeter formula of the polygon with N-1 sides can be obtained: Substituting the plane coordinates of each of the above vertices into the above perimeter formula for summation, then the perimeter with the specified area.
- the present invention also provides a computer device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor.
- the processor implements the computer program to implement the above-described mapping method .
- the computer device may be a terminal (but not limited to a terminal), and the terminal includes any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an in-vehicle computer, and the like.
- a terminal but not limited to a terminal
- the terminal includes any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an in-vehicle computer, and the like.
- Such a computer program may be stored in a device (eg, computer) readable medium or any type of medium suitable for storing electronic instructions and respectively coupled to a bus, the computer readable medium including but not limited to any Types of disks (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory , Erasable programmable read-only memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card. That is, a readable medium includes any medium that stores or transmits information in a readable form by a device (eg, a computer).
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
Provided are a mapping method and apparatus, and a computer device. The method comprises: at a preset frequency, acquiring longitudes and latitudes of multiple sample points on a terminal motion trajectory in real time by means of a multi-frequency GPS (S1); converting the longitudes and latitudes of the multiple sample points into plane coordinates (S2); forming a closed designated area according to the plane coordinates of the multiple sample points (S3); and calculating, by means of a preset formula, mapping data corresponding to the designated area (S4). The aim of improving the accuracy of mapping data is realized.
Description
本发明涉及到数字测量技术领域,特别是涉及到测绘方法、装置及计算机设备。The invention relates to the field of digital measurement technology, in particular to a surveying and mapping method, device and computer equipment.
目前,测量土地面积大多数采用专业的测量仪测量和人工测量;采用测量仪测量面积需要专业人员才能正确使用,同时,测量仪价格昂贵,不适用人们的日常使用;而人工测量需要手动通过量尺来测量和手动计算面积,人工测量费时费力,且精确度低。At present, most of the land area is measured by professional measuring instruments and manual measurement; using the measuring instrument to measure the area requires professionals to use it correctly. At the same time, the measuring instrument is expensive and not suitable for people's daily use; while manual measurement requires manual throughput Ruler to measure and manually calculate the area, manual measurement takes time and effort, and the accuracy is low.
因此,现有技术中采用智能手机的内置GPS进行测量面积,定位误差在5米以上,无法用来做精度高的区域测量,所以精确度低,用户体验不佳。Therefore, in the prior art, the built-in GPS of the smartphone is used to measure the area, and the positioning error is more than 5 meters, which cannot be used for high-precision area measurement, so the accuracy is low and the user experience is poor.
本发明的主要目的为提供一种测绘方法、装置及计算机设备,实现提高测绘数据的精确度的目的。The main purpose of the present invention is to provide a surveying and mapping method, device and computer equipment to achieve the purpose of improving the accuracy of surveying and mapping data.
本发明提出一种测绘方法,包括:The invention proposes a surveying and mapping method, including:
在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点经纬度;Under the preset frequency, obtain the latitude and longitude of multiple sample points on the movement track of the terminal in real time through multi-frequency GPS;
将多个样点的经纬度转换为平面坐标;Convert the latitude and longitude of multiple samples to plane coordinates;
根据多个样点的平面坐标形成闭合的指定区域;Form a closed designated area according to the plane coordinates of multiple sample points;
通过预设公式计算出指定区域对应的测绘数据。Calculate the mapping data corresponding to the specified area through the preset formula.
本发明还提出一种基于GPS多频定位技术的测绘装置,包括:The invention also proposes a surveying and mapping device based on GPS multi-frequency positioning technology, including:
第一获取模块,用于在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点的经纬度;The first acquisition module is used to acquire the latitude and longitude of multiple sample points on the terminal's motion track in real time through multi-frequency GPS at a preset frequency;
转换模块,用于将多个样点的经纬度转换为平面坐标;Conversion module, used to convert the latitude and longitude of multiple samples to plane coordinates;
形成模块,用于根据多个样点的平面坐标形成闭合的指定区域;Forming module, used to form a closed designated area according to the plane coordinates of multiple sample points;
第一计算模块,用于通过预设公式计算出指定区域对应的测绘数据。The first calculation module is used to calculate the mapping data corresponding to the specified area through a preset formula.
本发明还提出一种计算机设备,其包括处理器、存储器及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的测绘方法。The present invention also provides a computer device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor. The processor implements the computer program to implement the above-described surveying and mapping method .
本发明利用终端内置的多频GPS获取终端运动轨迹上的样点,实现亚米级的定位,同时以预设频率获取样点,使得GPS获取的样点足够多,以减小误差;通过将经纬度转换为平面坐标,从而将空间立体几何问题转为平面几何问题,以实现将采集到的多个样点拟合成指定平面区域,再采用代数的方式计算出指定区域的测绘数据,实现高精度的测量区域的面积和周长。The present invention uses the multi-frequency GPS built in the terminal to obtain the sample points on the terminal's movement track to achieve sub-meter positioning, and at the same time obtain the sample points at a preset frequency, so that the GPS obtains enough sample points to reduce the error; The latitude and longitude are converted into plane coordinates, so that the spatial solid geometry problem is transformed into a plane geometry problem, so that the collected multiple sample points are fitted into the specified plane area, and then the surveying and mapping data of the specified area is calculated algebraically to achieve high Accurately measure the area and circumference of the area.
图1为本发明测绘方法一实施例的步骤示意图;1 is a schematic diagram of steps of an embodiment of a surveying and mapping method of the present invention;
图2为本发明测绘装置一实施例的结构示意图;2 is a schematic structural diagram of an embodiment of a surveying and mapping device of the present invention;
图3为本发明一实施例中终端非直线运动轨迹的结构示意图。FIG. 3 is a schematic structural diagram of a non-linear movement trajectory of a terminal in an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the drawings.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not intended to limit the present invention.
参照图1,本发明测绘方法一实施例,包括:Referring to FIG. 1, an embodiment of the mapping method of the present invention includes:
S1,在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点的经纬度;S1, at a preset frequency, obtain the latitude and longitude of multiple sample points on the movement track of the terminal in real time through multi-frequency GPS;
S2,将所述多个样点的经纬度转换为平面坐标;S2, converting the latitude and longitude of the multiple sample points into plane coordinates;
S3,根据所述多个样点的平面坐标形成闭合的指定区域;S3, forming a closed designated area according to the plane coordinates of the multiple sample points;
S4,通过预设公式计算出所述指定区域对应的测绘数据。S4. Calculate the mapping data corresponding to the specified area through a preset formula.
本方法可应用于终端,但不限于上述终端,上述终端包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、车载电脑等任意终端设备;上述终端安装内置有多频GPS;上述多频GPS包括双频GPS和三频GPS,GPS的频段为L1、L2和/或L5;上述双频GPS为L1+L2双频GPS、L1+L5双频GPS或L2+L5双频GPS,三频GPS为L1+L2+L5三频GPS;上述L1的频段为1575.42MHz±1.023MHz,L2的频段为1227.60MHz±1.023MHz,L5的频段为1176.45MHz±1.023MHz;上述双频GPS优选为L1+L5双频GPS,因为L1的信号码率低,易于捕获信号,L5的信号码率高,L5的频谱密度更容易集中,所以L1捕获信号,L5提高L1捕获到的信号的精度,从而提高GPS定位的精度,同时,L1+L5双频GPS能够消除电离层误差,实现亚米级定位。This method can be applied to terminals, but is not limited to the above terminals. The above terminals include any terminal devices such as mobile phones, tablet computers, PDAs (Personal Digital Assistants), in-vehicle computers, etc.; the above terminals are installed with built-in multi-frequency GPS; Frequency GPS includes dual-frequency GPS and tri-frequency GPS, the frequency band of GPS is L1, L2 and/or L5; the above-mentioned dual-frequency GPS is L1+L2 dual-frequency GPS, L1+L5 dual-frequency GPS or L2+L5 dual-frequency GPS, three Frequency GPS is L1+L2+L5 tri-band GPS; the frequency band of L1 is 1575.42MHz±1.023MHz, the frequency band of L2 is 1227.60MHz±1.023MHz, and the frequency band of L5 is 1176.45MHz±1.023MHz; the dual-frequency GPS is preferably L1 +L5 dual-frequency GPS, because L1's signal bit rate is low, it is easy to capture the signal, L5's signal bit rate is high, and L5's spectral density is easier to concentrate, so L1 captures the signal, L5 improves the accuracy of the signal captured by L1, thereby improving The accuracy of GPS positioning. At the same time, L1+L5 dual-frequency GPS can eliminate ionospheric errors and achieve sub-meter positioning.
在上述步骤S1中,上述运动轨迹为用户手持终端在测量区域的边界走一圈的轨迹;用户手持终端在测量区域的边界上移动,在用户移动的过程中,按预设频率更新多频GPS的位置信号,例如每经过预设时间段,终端通过多频GPS就采集一次终端当前的经纬度,并将采集的经纬度作为样点;所以在用户走一圈后,终端就采集到多个样点;其中,上述预设时间段优选为最短的时间段,例如20ms;为了确保测量区域的测量准确度,尽可能采集最多数量的样点。In the above step S1, the motion trajectory is a trajectory where the user's handheld terminal walks around the boundary of the measurement area; the user's handheld terminal moves on the boundary of the measurement area, and during the user's movement, the multi-frequency GPS is updated at a preset frequency Position signal, for example, the terminal collects the current latitude and longitude of the terminal through multi-frequency GPS after a preset time period, and uses the collected latitude and longitude as the sample points; so after the user walks around, the terminal collects multiple sample points ; Among them, the above-mentioned preset time period is preferably the shortest time period, for example, 20ms; in order to ensure the measurement accuracy of the measurement area, collect as many sample points as possible.
在上述步骤S2中,上述经纬度为地理坐标系下的坐标位置,属于三维空间的数据,不便于二维平面中面积的计算,因此需要将经纬度转换为测量区域所在平面的平面坐标系下的平面坐标,进而将空间几何问题转换为平面几何问题,再用代数的方法进行处理平面几何问题;将经纬度转换为平面坐标可先将地理坐标系转换为空间直角坐标系,再将空间直角坐标系转换为平面直角坐标系;其中,具体转换方式可通过布尔莎7参数法,即针对参考椭球体和大地基准面的异同,采用不同参数通过欧拉角变换矩阵进行转换。In the above step S2, the latitude and longitude are the coordinate position in the geographic coordinate system, which belongs to the data in the three-dimensional space, which is not convenient for the calculation of the area in the two-dimensional plane, so it is necessary to convert the latitude and longitude to the plane under the plane coordinate system of the plane where the measurement area is located Coordinates, and then transform spatial geometry problems into planar geometry problems, and then use algebraic methods to deal with planar geometry problems; convert latitude and longitude into planar coordinates can first convert the geographic coordinate system into a spatial rectangular coordinate system, and then convert the spatial rectangular coordinate system It is a plane rectangular coordinate system; among them, the specific conversion method can be adopted by the Bursa 7-parameter method, that is, for the similarities and differences between the reference ellipsoid and the ground datum, different parameters are used to convert through the Euler angle transformation matrix.
在上述步骤S3中,上述平面坐标为样点在同一个平面坐标系下的平面坐标,上述指定区域为由上述样点拟合成的单连通区域;因为样点的数量足够多,所以由上述样点积分后的指定区域可近似看作测量区域。In the above step S3, the plane coordinates are the plane coordinates of the sample points in the same plane coordinate system, and the specified area is a single connected area fitted by the sample points; because the number of sample points is enough, the above The designated area after sample point integration can be regarded as a measurement area approximately.
在上述步骤S4中,上述测绘数据至少包括指定区域的面积和周长;根据上述平面坐标建立单连通区域模型,则上述预设公式至少包括满足上述单连通区域的周长公式和面积公式,将上述单连通区域看作测量区域,将上述平面代入周长公式和面积公式,从而计算出测量区域的周长和面积。In the above step S4, the surveying data includes at least the area and perimeter of the specified area; based on the plane coordinates to establish a single connected area model, then the preset formula at least includes the perimeter formula and area formula that satisfy the single connected area, will The above single connected area is regarded as the measurement area, and the above-mentioned plane is substituted into the perimeter formula and the area formula to calculate the perimeter and area of the measurement area.
本发明利用终端内置的多频GPS获取终端运动轨迹上的样点,实现亚米级的定位,同时以预设频率获取样点,使得GPS获取的样点足够多,以减小误差;通过将经纬度转换为平面坐标,从而将空间立体几何问题转为平面几何问题,以实现将采集到的多个样点拟合成指定平面区域,再采用代数的方式计算出指定区域的测绘数据,实现高精度的测量区域的面积和周长。The present invention uses the multi-frequency GPS built in the terminal to obtain the sample points on the terminal's movement track to achieve sub-meter positioning, and at the same time obtain the sample points at a preset frequency, so that the GPS obtains enough sample points to reduce the error; The latitude and longitude are converted into plane coordinates, so that the spatial solid geometry problem is transformed into a plane geometry problem, so that the collected multiple sample points are fitted into the specified plane area, and then the surveying and mapping data of the specified area is calculated algebraically to achieve high Accurately measure the area and circumference of the area.
在本发明一实施例中,上述多个样点包括第一样点和多个第二样点,上述经纬度包括第一经纬度和多个第二经纬度;所述在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点的经纬度的步骤S1,包括:In an embodiment of the present invention, the multiple sample points include a first same point and multiple second sample points, and the latitude and longitude include a first latitude and longitude and multiple second latitude and longitude; The step S1 of the GPS acquiring the latitude and longitude of multiple samples on the movement track of the terminal in real time includes:
S11,接收开始测量的指令,通过所述多频GPS获取所述运动轨迹上的第一样点的第一经纬度,所述第一样点为所述运动轨迹的起点;S11: Receive an instruction to start measurement, and obtain the first longitude and latitude of the first same point on the motion track through the multi-frequency GPS, where the first same point is the starting point of the motion track;
S12,在预设频率下,通过多频GPS获取运动轨迹上的多个第二样点分别 对应的第二经纬度。S12. At a preset frequency, obtain second latitudes and longitudes corresponding to the plurality of second sample points on the motion track through multi-frequency GPS.
在上述步骤S11中,用户手持终端,并在终端输入开始测量的指令,上述输入的方式可为按键输入、触屏操作输入、语音输入和/或无线遥控输入;终端接收到开始测量的指令,多频GPS立即更新一次当前终端的位置,记录该位置的经纬度,并将该为作为第一样点,该位置的经纬度为第一经纬度;上述第一样点将作为平面坐标系的原点和地理坐标系的原点。In the above step S11, the user holds the terminal and inputs an instruction to start the measurement on the terminal. The input method may be key input, touch screen operation input, voice input and/or wireless remote control input; the terminal receives the instruction to start the measurement, Multi-frequency GPS immediately updates the location of the current terminal, records the latitude and longitude of the location, and takes this as the first point, and the latitude and longitude of the location is the first latitude and longitude; the first point above will serve as the origin and geography of the plane coordinate system The origin of the coordinate system.
在上述步骤S12中,采集到第一样点后,每经过指定时间段,多频GPS就采集一次样点和记录样点的经纬度,在这个过程中,用户一直手持终端在测量区域的边界上移动,因此,用户重新回到第一样点的位置时,终端就采集了多个第二样点;为了确保第二样点的数量足够多,用户在移动过程中,可以减缓移动速度,从而使用户走完指定区域的边界一圈的时间足够长,进而使多频GPS更新的次数足够多,采集的样点也就足够多;或者加快多频GPS的更新频率。In the above step S12, after the first same point is collected, the multi-frequency GPS collects the sample point and records the latitude and longitude of the sample point after a specified period of time. In this process, the user has been holding the terminal on the boundary of the measurement area Move, therefore, when the user returns to the position of the first point, the terminal collects multiple second samples; in order to ensure that the number of second samples is sufficient, the user can slow down the moving speed during the movement process, thereby Allow the user to walk through the boundary of the specified area for a long enough time, so that the number of multi-frequency GPS updates is sufficient, and the number of samples collected is sufficient; or accelerate the update frequency of multi-frequency GPS.
在本发明一实施例中,上述将多个样点的经纬度转换为平面坐标的步骤S2,包括:In an embodiment of the present invention, the step S2 of converting the latitude and longitude of a plurality of sample points into plane coordinates includes:
S21,将所述第一样点作为原点、水平东西方向作为X轴、水平南北方向作为Y轴和竖直高度方向作为Z轴建立地理坐标系;S21, establishing a geographic coordinate system using the first point as the origin, the horizontal east-west direction as the X axis, the horizontal north-south direction as the Y axis, and the vertical height direction as the Z axis;
S22,根据预设坐标系转换规则,将所述地理坐标系转换为以第一样点作为原点的平面坐标系;S22, according to a preset coordinate system conversion rule, converting the geographic coordinate system into a planar coordinate system with the first point as the origin;
S23,将所述多个第二样点的第二经纬度分别转换为所述平面坐标系的平面坐标。S23. Convert second latitude and longitude of the plurality of second sample points into plane coordinates of the plane coordinate system, respectively.
在上述步骤S21中,上述地理坐标系为大地坐标系,也是空间直角坐标系,上述多个第二样点的经纬度为上述地理坐标系上的坐标,第二样点的经纬度在地理坐标系上的表示方式为(J,W,H),其中,J为经度,W为纬度,H为高度;上述地理坐标系的坐标轴还可以是其他方向。In the above step S21, the geographic coordinate system is a geodetic coordinate system, which is also a spatial rectangular coordinate system, the latitude and longitude of the plurality of second sample points are coordinates on the geographic coordinate system, and the latitude and longitude of the second sample points are on the geographic coordinate system Is represented by (J, W, H), where J is longitude, W is latitude, and H is altitude; the coordinate axis of the above geographic coordinate system can also be in other directions.
在上述步骤S22中,上述预设坐标系转换规则可根据终端上内置的加速度传感器、陀螺仪和/或地磁传感器采集到终端的第一姿态信息进行欧拉角变换;上述第一姿态信息为终端所在坐标系与平面坐标系的姿态关系,而终端坐标系与地理坐标系也存在姿态关系,进而通过欧拉角变换矩阵得到地理坐标系的第二姿态信息,第二姿态信息为平面坐标系与地理坐标系的姿态关系,并根据上述第二姿态信息将地理坐标系转换为以第一样点为原点的平面坐标系;上述终 端坐标系为载体坐标系,上述终端坐标系的原点与终端中心重合,z轴指向终端上方,x轴指向终端前方,y轴指向终端右边。上述第二姿态信息包括俯仰角θ(pitch),偏航角ψ(yaw),滚转角Φ(roll);上述俯仰角为围绕Y轴旋转的角度,即终端坐标系X轴与水平面的夹角,当X轴的正半轴位于过坐标原点的水平面之上(抬头)时,俯仰角为正,否则为负;上述偏航角ψ(yaw)为围绕Z轴旋转的角度,即终端坐标系的X轴在水平面上投影与平面坐标系的X轴(在水平面上,指向目标为正)之间的夹角,由上述平面坐标系的X轴逆时针转至终端坐标系的X轴的投影线时,偏航角为正,即终端右偏航为正,反之为负。上述滚转角Φ(roll)终端围绕终端坐标系的X轴旋转的角度,即终端坐标系的Z轴与通过终端坐标系的X轴的铅垂面间的夹角,终端向右滚为正,反之为负。In the above step S22, the preset coordinate system conversion rule may perform Euler angle transformation according to the first posture information collected by the built-in acceleration sensor, gyroscope and/or geomagnetic sensor on the terminal; the first posture information is the terminal The posture relationship between the current coordinate system and the plane coordinate system, and there is also a posture relationship between the terminal coordinate system and the geographical coordinate system, and then the second posture information of the geographical coordinate system is obtained by the Euler angle transformation matrix. The second posture information is the plane coordinate system and The attitude relationship of the geographic coordinate system, and convert the geographic coordinate system into a plane coordinate system with the first point as the origin according to the second attitude information; the terminal coordinate system is the carrier coordinate system, and the origin of the terminal coordinate system and the terminal center Coincident, the z axis points above the terminal, the x axis points to the front of the terminal, and the y axis points to the right of the terminal. The second attitude information includes a pitch angle θ (pitch), a yaw angle ψ (yaw), and a roll angle Φ (roll); the pitch angle is an angle of rotation around the Y axis, that is, the angle between the X axis of the terminal coordinate system and the horizontal plane , When the positive half-axis of the X-axis is above the horizontal plane (head up) of the coordinate origin, the pitch angle is positive, otherwise it is negative; the above yaw angle ψ (yaw) is the angle of rotation around the Z axis, that is, the terminal coordinate system The angle between the projection of the X axis on the horizontal plane and the X axis of the plane coordinate system (on the horizontal plane, the pointing target is positive), from the X axis of the plane coordinate system to the X coordinate projection of the terminal coordinate system When the line is on the line, the yaw angle is positive, that is, the terminal's right yaw is positive, otherwise it is negative. The roll angle Φ(roll) is the angle of rotation of the terminal around the X axis of the terminal coordinate system, that is, the angle between the Z axis of the terminal coordinate system and the vertical plane passing through the X axis of the terminal coordinate system, the terminal rolls to the right is positive, Otherwise it is negative.
在上述步骤S23中,多个第二样点的第二经纬度为以地心为原点的地理坐标系上的坐标点,采用欧拉矩阵变换将以地心为原点的地理坐标系转换为以第一样点为原点的地理坐标系,进而将第二经纬度转换为以第一样点为原点的地理坐标系上的坐标点,再将地理坐标系转换为平面坐标系后,第二经纬度在地理坐标系上的坐标点也转换为平面坐标系对应的平面坐标。In the above step S23, the second latitudes and longitudes of the plurality of second sample points are the coordinate points on the geographic coordinate system with the center of the earth as the origin. The Euler matrix transformation is used to convert the geographic coordinate system with the center of the earth as the origin. The geographic coordinate system with the same point as the origin, and then converts the second latitude and longitude to the coordinate point on the geographic coordinate system with the same point as the origin, and then converts the geographic coordinate system to the planar coordinate system, the second latitude and longitude is in the geographic The coordinate points on the coordinate system are also converted into plane coordinates corresponding to the plane coordinate system.
在本发明一实施例中,上述在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点,得到所述多个样点的经纬度的步骤S1之后,还包括:In an embodiment of the present invention, the step S1 of acquiring the latitude and longitude of the multiple sample points in real time through the multi-frequency GPS in real time to obtain multiple sample points on the terminal trajectory at a preset frequency further includes:
S101,获取在终端坐标系下终端的线运动数据和角运动数据;S101. Obtain line motion data and angular motion data of the terminal in the terminal coordinate system;
S102,根据所述线运动数据和角运动数据,通过惯性导航算法计算得到校正点,所述校正点为终端惯性运动的理论点;S102. According to the linear motion data and the angular motion data, a correction point is calculated by an inertial navigation algorithm, and the correction point is a theoretical point of terminal inertial motion;
S103,判断所述校正点与指定样点间的位置偏差是否大于预设偏差值;S103: Determine whether the position deviation between the correction point and the specified sample point is greater than a preset deviation value;
S104,若是,则清除所述指定样点。S104. If yes, clear the specified sample point.
在上述步骤S101中,上述终端坐标系为载体坐标系,原点与终端中心重合,z轴指向终端上方,x轴指向终端前方,y轴指向终端右边。通过加速度计和陀螺仪等惯性元件测得终端相对于以终端坐标系为参考系的惯性空间的线运动数据和角运动数据;上述惯性元件安装在终端内,工作时不依赖外界数据,也不向外界辐射能量,不易受到干扰。In the above step S101, the terminal coordinate system is a carrier coordinate system, the origin coincides with the terminal center, the z axis points above the terminal, the x axis points to the front of the terminal, and the y axis points to the right of the terminal. The linear motion data and angular motion data of the terminal relative to the inertial space with the terminal coordinate system as the reference frame are measured by inertial components such as accelerometers and gyroscopes; the above inertial components are installed in the terminal and do not rely on external data or It radiates energy to the outside and is not easily disturbed.
在上述步骤S102中,上述校正点为上述惯性导航算法通过线运动数据和角运动数据推算出终端惯性运动的理论位置;上述线运动数据和角运动数据包括终端的三轴加速度和三轴角速率;三轴角速率可变换为姿态的积分函数,即 姿态积分函数;使用姿态数据将测得的三轴加速度转换到当前终端坐标系中,在将其积分成矢量速度的函数,即矢量速度积分函数;将终端坐标系中的矢量速度积分成位置的函数,即位置积分函数。In the above step S102, the correction point is the theoretical position of the terminal inertial motion estimated by the linear motion data and the angular motion data of the inertial navigation algorithm; the linear motion data and the angular motion data include the triaxial acceleration and triaxial angular rate of the terminal ; The triaxial angular rate can be transformed into an attitude integration function, that is, an attitude integration function; using the attitude data to convert the measured triaxial acceleration to the current terminal coordinate system, and integrating it into a vector velocity function, that is, vector velocity integration Function; a function that integrates the vector velocity in the terminal coordinate system into a position, that is, a position integration function.
在上述步骤S103中,上述校正点为惯性导航算法推算出来的理论位置;上述惯性导航算法至少包括姿态积分函数、矢量速度积分函数和位置积分函数;通过上述姿态积分函数将终端的三轴角速率转换为姿态积的函数,通过上述矢量速度积分函数将终端的三轴加速度转换为当前终端坐标系中矢量速度积分的函数,再通过位置积分函数将当前终端坐标系的矢量速度积分为位置积分的函数,进而得到校正点。将惯性导航算法推算出来的理论位置与多频GPS采集到的指定样点位置进行比较,以清除与理论位置误差大的样点。In the above step S103, the correction point is the theoretical position calculated by the inertial navigation algorithm; the inertial navigation algorithm at least includes an attitude integration function, a vector velocity integration function and a position integration function; the triaxial angular rate of the terminal is determined by the attitude integration function Converted into a function of attitude product, the three-axis acceleration of the terminal is converted into a function of vector velocity integration in the current terminal coordinate system through the above vector velocity integration function, and then the vector velocity integral of the current terminal coordinate system is converted into position integral by the position integration function Function to obtain the correction point. The theoretical position calculated by the inertial navigation algorithm is compared with the position of the specified sample points collected by the multi-frequency GPS, so as to eliminate the sample points with large deviation from the theoretical position.
在上述步骤S104中,如果两者的位置偏离的值超过预设偏差值,则说明上述多频GPS采集的指定样点会对测量面积造成较大的误差,因此清除该指定样点;上述预设偏差值为实际测量后自行设定的参数值。In the above step S104, if the value of the position deviation between the two exceeds the preset deviation value, it means that the specified sample points collected by the multi-frequency GPS will cause a larger error in the measurement area, so the specified sample point is cleared; Set the deviation value as the parameter value set by yourself after the actual measurement.
在本发明一实施例中,上述判断所述校正点与指定样点间的位置偏差是否大于预设偏差值的步骤S103,包括:In an embodiment of the present invention, the step S103 of determining whether the position deviation between the correction point and the designated sample point is greater than a preset deviation value includes:
S1031,计算指定样点与上一样点所连接直线的第一斜率,以及计算所述校正点的偏航角的第二斜率;其中,所述上一样点为与所述指定样点相邻前一样点;S1031: Calculate the first slope of the straight line connecting the specified sample point and the same point as above, and calculate the second slope of the yaw angle of the correction point; wherein, the above same point is before the specified sample point The same
S1032,判断第一斜率与第二斜率间的第一偏差是否大于第一偏差值。S1032: Determine whether the first deviation between the first slope and the second slope is greater than the first deviation value.
在上述步骤S1031中,上述指定样点为与校正点进行位置偏差比较的样点,上一样点为采集到指定样点前的相邻样点,上述上一样点已经与校正点进行过位置偏差比较且保留的样点;跟指定样点进行位置比较的校正点和跟上一样点进行位置比较的校正点不是同一校正点;上述跟指定样点进行位置比较的校正点的偏航角为终端运动前方与终端坐标系的X轴的夹角,可根据惯性导航算法中的姿态积分函数计算得到。In the above step S1031, the above specified sample point is a sample point that is compared with the correction point for position deviation, the same point is the adjacent sample point before the specified sample point is collected, and the above same point has been subjected to position deviation with the correction point Sample points for comparison and retention; the correction point for position comparison with the specified sample point and the correction point for position comparison with the same point are not the same correction point; the yaw angle of the above correction point for position comparison with the specified sample point is the terminal The angle between the front of the movement and the X axis of the terminal coordinate system can be calculated according to the attitude integration function in the inertial navigation algorithm.
在上述步骤S1032中,设指定样点与上一样点所连接直线的第一斜率为Kn,校正点的第二斜率为tanθ,若公式|tanθ
n-k
n|<Δ
1成立,则说明上述指定样点与校正点的位置偏差小,上述指定样点保留,反之,则上述指定样点与校正点的位置偏差大,上述指定样点清除;其中,θ为上述校正点的偏航角,n为第n+1个指定样点与第n个上一样所连接的第n条直线,Δ
1根据实际测量后设定的参数。
In the above step S1032, suppose the first slope of the straight line connecting the specified sample point and the same point is Kn, and the second slope of the correction point is tanθ. If the formula |tanθ n -k n |<Δ 1 holds, then the above The position deviation between the specified sample point and the calibration point is small, and the above specified sample point remains, otherwise, the position deviation between the specified sample point and the correction point is large, and the above specified sample point is cleared; where θ is the yaw angle of the above correction point, n is the nth straight line connecting the n+1th specified sample point as the nth, Δ 1 is based on the parameters set after the actual measurement.
在本发明一实施例中,上述判断所述校正点与指定样点间的位置偏差是否大于预设偏差值的步骤S103,还包括:In an embodiment of the present invention, the step S103 of determining whether the position deviation between the correction point and the designated sample point is greater than a preset deviation value, further includes:
S1033,计算终端在指定样点与上一样点间位移过程的平均速度,以及获取所述校正点的瞬时速度;其中,所述上一样点与为所述指定样点相邻的前一样点;S1033: Calculate the average speed of the terminal displacement process between the specified sample point and the previous point, and obtain the instantaneous speed of the correction point; wherein the previous point is the same as the previous point adjacent to the specified sample point;
S1034,判断所述瞬时速度与所述平均速度之间的第二偏差是否大于第二偏差值。S1034: Determine whether the second deviation between the instantaneous speed and the average speed is greater than the second deviation value.
上述步骤S103可包括步骤S1031-S1034,也可只包括步骤S1031-S1032或步骤S1033-S1034;优选为,包括步骤S1031-S1034。The above step S103 may include steps S1031-S1034, or may only include steps S1031-S1032 or steps S1033-S1034; preferably, steps S1031-S1034 are included.
在上述步骤S1033中,上述平均速度可根据指定样点与上一样点间的距离和经过该距离所用的时间计算得到,计算公式可为平均速度=距离/时间;上述校正点的瞬时速度可根据惯性导航算法中的矢量速度积分函数计算得到。In the above step S1033, the above average speed can be calculated according to the distance between the designated sample point and the same point and the time taken to pass the distance, the calculation formula can be average speed=distance/time; the instantaneous speed of the above correction point can be based on The vector speed integral function in the inertial navigation algorithm is calculated.
在上述步骤S1034中,设上述平均速度为v
1,上述瞬时速度为v
2,若公式|v
2-v
1|<Δ
2成立,则说明上述指定样点与校正点的位置偏差小,上述指定样点保留,反之,则上述指定样点与校正点的位置偏差大,上述指定样点清除;其中,Δ
2根据实际测量后设定的参数。
In the above step S1034, suppose the average speed is v 1 and the instantaneous speed is v 2. If the formula |v 2 -v 1 |<Δ 2 holds, it means that the position deviation between the specified sample point and the correction point is small. The designated sample points are retained, otherwise, the position deviation between the above-mentioned designated sample points and the calibration point is large, and the above-mentioned designated sample points are cleared; where, Δ 2 is based on the parameters set after actual measurement.
在本发明一实施例中,上述预设公式包括面积公式和周长公式;上述根据所述多个样点的平面坐标,通过预设公式计算出所述指定区域对应的测绘数据的步骤S4,包括:In an embodiment of the present invention, the preset formula includes an area formula and a perimeter formula; the step S4 of calculating the mapping data corresponding to the specified area through the preset formula according to the plane coordinates of the plurality of sample points, include:
S41,根据所述多个样点的平面坐标,按照预设误差公式将所述指定区域拟合成具有多个顶点的多边形的区域;其中,所述多边形的顶点为所述多个样点中的指定样点;S41. Fit the specified area into a polygonal area having multiple vertices according to a preset error formula according to the plane coordinates of the multiple sample points; wherein the vertices of the polygon are among the multiple sample points Designated samples of
S42,根据所述面积公式与所述顶点的平面坐标,计算出所述多边形区域的面积;S42: Calculate the area of the polygon area according to the area formula and the plane coordinates of the vertex;
S43,根据所述周长公式与所述顶点的平面坐标,计算出所述多边形区域的周长。S43: Calculate the perimeter of the polygon area according to the perimeter formula and the plane coordinates of the vertex.
在上述步骤S41中,由于运动轨迹不一定是直线,所以为使运动轨迹在误差范围内尽可能是直线,需要去除不在直线上的点;如图3,设多个样点的数量为M,形成闭合的指定区域时,非直线的运动轨迹为弧AC,取弧AC上的三个样点A、B、C,计算AB和BC的斜率K
AB、K
BC,若|k
AB-k
BC|<Δ
2成立, 则选取样点C作为顶点,且去除样点B,反之,则选取样点B作为顶点,且暂时保留样点C,依次类推,从而得到N个顶点,将N个顶点依次连接形成闭合的多边形区域;上述多边形区域近似为指定区域,且多边形区域为分段光滑的曲线围成的单连通区域模型,设多边形区域为G,G上的曲线R,函数p(x,y)、q(x,y)在G内具有一阶连续偏导数,则曲线积分∫
R p dx+qdy在G内与路径无关的充分必要条件
在G内恒成立,应用格林公式,有
In the above step S41, since the movement trajectory is not necessarily a straight line, in order to make the movement trajectory as straight as possible within the error range, it is necessary to remove points that are not on the straight line; as shown in FIG. 3, set the number of multiple sample points to M, When forming a closed designated area, the non-linear motion trajectory is arc AC. Take three sample points A, B, and C on arc AC, and calculate the slopes K AB and K BC of AB and BC . If |k AB -k BC |<Δ 2 holds, the sampling point C is selected as the vertex, and the sample point B is removed, otherwise, the sampling point B is selected as the vertex, and the sample point C is temporarily retained, and so on, so as to obtain N vertices, the N vertices Connected in turn to form a closed polygonal area; the above polygonal area is approximately a specified area, and the polygonal area is a single connected area model enclosed by a piecewise smooth curve, let the polygonal area be G, the curve R on G, function p(x, y), q(x, y) have a first-order continuous partial derivative in G, then the curve integral ∫ R p dx+qdy is sufficient and necessary in G to be independent of the path Established in G Neiheng, applying Green's formula, there is
在上述步骤S42中,将上述
的公式右端完全离散处理,并令q=x,p=y,得到由曲线L形成的区域面积公式:
其中,
设曲线L为指定区域边界
有n个离散点,顶点为pnk围成的N边形,取任一条p
nkp
n(k+1)其内的离散方程,由此推导出任意多边形的面积公式:
将每个上述顶点的平面坐标代入上述面积公式进行求和,则得到指定区域的面积。
In the above step S42, the above The right end of the formula is completely discrete, and let q = x, p = y, to get the formula of the area of the area formed by the curve L: among them, Let curve L be the boundary of the specified area There are n discrete points, and the vertex is an N polygon surrounded by pnk. Take any discrete equation within p nk p n(k+1) , from which the area formula of any polygon is derived: Substituting the plane coordinates of each of the above vertices into the above area formula for summation, the area of the specified area is obtained.
在上述步骤S43中,计算包含N个顶点的多边形的周长L,则分别计算包含N个顶点的多边形的每条边的长度,再对每条边的长度求和,所以根据上述
可得到N-1条边的多边形的周长公式:
将每个上述顶点的平面坐标代入上述周长公式进行求和,则的带指定区域的周长。
In the above step S43, the perimeter L of the polygon containing N vertices is calculated, then the length of each side of the polygon containing N vertices is calculated, and then the length of each side is summed, so according to the above The perimeter formula of the polygon with N-1 sides can be obtained: Substituting the plane coordinates of each of the above vertices into the above perimeter formula for summation, then the perimeter with the specified area.
参照图2,本发明基于GPS多频定位技术的测绘装置一实施例,包括:Referring to FIG. 2, an embodiment of a surveying and mapping device based on GPS multi-frequency positioning technology of the present invention includes:
第一获取模块1,用于在预设频率下,通过多频GPS实时获取运动轨迹上的多个样点的经纬度;The first acquisition module 1 is used to acquire the latitude and longitude of multiple sample points on the motion track in real time through multi-frequency GPS at a preset frequency;
转换模块2,用于将所述多个样点的经纬度转换为平面坐标;The conversion module 2 is used to convert the latitude and longitude of the multiple sample points into plane coordinates;
形成模块3,用于根据所述多个样点的平面坐标形成闭合的指定区域;A forming module 3, configured to form a closed designated area according to the plane coordinates of the plurality of sample points;
第一计算模块4,用于通过预设公式计算出所述指定区域对应的测绘数据。The first calculation module 4 is configured to calculate the mapping data corresponding to the specified area through a preset formula.
上述装置可为终端(但不限于终端),终端包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、车载电脑等任意终端设备;上述终端安装内置有多频GPS;上述多频GPS包括双频GPS和三频GPS,GPS的 频段为L1、L2和/或L5;上述双频GPS为L1+L2双频GPS、L1+L5双频GPS或L2+L5双频GPS,三频GPS为L1+L2+L5三频GPS;上述L1的频段为1575.42MHz±1.023MHz,L2的频段为1227.60MHz±1.023MHz,L5的频段为1176.45MHz±1.023MHz;上述双频GPS优选为L1+L5双频GPS,因为L1的信号码率低,易于捕获信号,L5的信号码率高,L5的频谱密度更容易集中,所以L1捕获信号,L5提高L1捕获到的信号的精度,从而提高GPS定位的精度,同时,L1+L5双频GPS能够消除电离层误差,实现亚米级定位。The above device may be a terminal (but not limited to a terminal), and the terminal includes any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an on-board computer, etc.; the above terminal is installed with a built-in multi-frequency GPS; the above-mentioned multi-frequency GPS Including dual-frequency GPS and tri-frequency GPS, the frequency band of GPS is L1, L2 and/or L5; the above-mentioned dual-frequency GPS is L1+L2 dual-frequency GPS, L1+L5 dual-frequency GPS or L2+L5 dual-frequency GPS, tri-frequency GPS It is L1+L2+L5 tri-band GPS; the frequency band of L1 is 1575.42MHz±1.023MHz, the frequency band of L2 is 1227.60MHz±1.023MHz, and the frequency band of L5 is 1176.45MHz±1.023MHz; the above-mentioned dual-frequency GPS is preferably L1+L5 Dual-frequency GPS, because L1's signal bit rate is low, easy to capture the signal, L5's signal bit rate is high, and L5's spectral density is easier to concentrate, so L1 captures the signal, L5 improves the accuracy of the signal captured by L1, thereby improving GPS positioning At the same time, L1+L5 dual-frequency GPS can eliminate ionospheric errors and achieve sub-meter positioning.
在上述第一获取模块1中,上述运动轨迹为用户手持测绘装置在测量区域的边界走一圈的轨迹;用户手持测绘装置在测量区域的边界上移动,在用户移动的过程中,按预设频率更新多频GPS的位置信号,例如每经过预设时间段,第一获取模块1通过多频GPS就采集一次测绘装置当前的经纬度,并将采集的经纬度作为样点;所以在用户走一圈后,第一获取模块1就采集到多个样点;其中,上述预设时间段优选为最短的时间段,例如20ms;为了确保测量区域的测量准确度,第一获取模块1尽可能采集最多数量的样点。In the above-mentioned first acquisition module 1, the above-mentioned motion trajectory is a trajectory in which the user's hand-held mapping device walks around the boundary of the measurement area; the user's hand-held mapping device moves on the boundary of the measurement area. The frequency updates the position signal of the multi-frequency GPS. For example, the first acquisition module 1 collects the current latitude and longitude of the mapping device through the multi-frequency GPS every time a preset period of time passes, and uses the collected latitude and longitude as the sample point; After that, the first acquisition module 1 collects multiple samples; wherein the preset time period is preferably the shortest time period, for example, 20ms; in order to ensure the measurement accuracy of the measurement area, the first acquisition module 1 collects as many as possible Number of samples.
在上述转换模块2中,上述经纬度为地理坐标系下的坐标位置,属于三维空间的数据,不便于二维平面中面积的计算,因此需要将经纬度转换为测量区域所在平面的平面坐标系下的平面坐标,进而将空间几何问题转换为平面几何问题,再用代数的方法进行处理平面几何问题;转换模块2将经纬度转换为平面坐标可先将地理坐标系转换为空间直角坐标系,再将空间直角坐标系转换为平面直角坐标系;其中,具体转换方式可通过布尔莎7参数法,针对参考椭球体和大地基准面的异同,采用不同参数通过欧拉角变换矩阵进行转换。In the above conversion module 2, the above latitude and longitude are the coordinate position in the geographic coordinate system, which belongs to the data in three-dimensional space, which is not convenient for the calculation of the area in the two-dimensional plane, so it is necessary to convert the latitude and longitude into the plane coordinate system of the plane where the measurement area is located. Plane coordinates, and then transform spatial geometry problems into planar geometry problems, and then use algebraic methods to deal with the plane geometry problems; the conversion module 2 converts the latitude and longitude into plane coordinates can first convert the geographic coordinate system into a space rectangular coordinate system, and then the space The rectangular coordinate system is converted into a planar rectangular coordinate system; among them, the specific conversion method can be through the Bursa 7-parameter method, according to the similarities and differences between the reference ellipsoid and the ground datum, using different parameters to convert through the Euler angle transformation matrix.
在上述形成模块3中,上述平面坐标为样点在同一个平面坐标系下的平面坐标,上述指定区域为形成模块3通过上述样点拟合成的单连通区域;因为样点的数量足够多,所以由上述样点积分后的指定区域可近似看作测量区域。In the above-mentioned forming module 3, the above-mentioned plane coordinates are the plane coordinates of the sample points in the same plane coordinate system, and the above-mentioned designated area is the single connected area that the forming module 3 fits through the above-mentioned sample points; because the number of sample points is enough Therefore, the designated area integrated by the above sample points can be approximately regarded as the measurement area.
在上述第一计算模块4中,上述测绘数据至少包括指定区域的面积和周长;根据上述平面坐标建立单连通区域模型,则上述预设公式至少包括满足上述单连通区域的周长公式和面积公式,将上述单连通区域看作测量区域,第一计算模块4将上述平面代入周长公式和面积公式,从而计算出测量区域的周长和面积。In the above-mentioned first calculation module 4, the surveying data includes at least the area and perimeter of the specified area; the single-connected area model is established according to the plane coordinates, then the preset formula at least includes the perimeter formula and area that satisfy the single-connected area In the formula, the above single connected area is regarded as the measurement area, and the first calculation module 4 substitutes the above-mentioned plane into the perimeter formula and the area formula, thereby calculating the perimeter and area of the measurement area.
上述测绘装置内置的多频GPS,实现亚米级的定位,第一获取模块1采集在指定区域内最多数量的样点,形成模块3通过将采集到的多个样点拟合成指 定区域,从而第一计算模块4计算出指定区域的面积和周长。The multi-frequency GPS built into the surveying and mapping device realizes sub-meter positioning. The first acquisition module 1 collects the maximum number of sample points in the specified area, and the forming module 3 fits the collected multiple sample points into the specified area. Thus, the first calculation module 4 calculates the area and perimeter of the designated area.
在本发明一实施例中,上述多个样点包括第一样点和多个第二样点,上述经纬度包括第一经纬度和多个第二经纬度;上述第一获取模块1,包括:In an embodiment of the present invention, the multiple sample points include a first same point and multiple second sample points, the latitude and longitude include a first latitude and longitude and multiple second latitude and longitude; the first acquisition module 1 includes:
第一获取单元,用于接收开始测量的指令,通过所述多频GPS获取所述运动轨迹上的第一样点的第一经纬度,所述第一样点为所述运动轨迹的起点;A first acquiring unit, configured to receive an instruction to start measurement, and acquire the first longitude and latitude of the first same point on the movement track through the multi-frequency GPS, and the first same point is the starting point of the movement track;
第二获取单元,用于在预设频率下,通过所述多频GPS获取运动轨迹上的多个第二样点分别对应的第二经纬度。The second obtaining unit is configured to obtain second latitudes and longitudes corresponding to the plurality of second sample points on the movement track through the multi-frequency GPS at a preset frequency.
在上述第一获取单元中,用户手持测绘装置,并在测绘装置输入开始测量的指令,上述输入的方式可为按键输入、触屏操作输入、语音输入和/或无线遥控输入;测绘装置接收到开始测量的指令,多频GPS立即更新一次当前测绘装置的位置,记录该位置的经纬度,并将该为作为第一样点,该位置的经纬度为第一经纬度;上述第一样点将作为平面坐标系的原点和地理坐标系的原点。In the above-mentioned first acquisition unit, the user holds the surveying and mapping device and inputs an instruction to start the measurement on the surveying and mapping device. The input method may be key input, touch screen operation input, voice input and/or wireless remote control input; the surveying and mapping device receives The command to start measurement, multi-frequency GPS immediately updates the current position of the surveying and mapping device, records the latitude and longitude of the position, and takes this as the first point, and the latitude and longitude of the position is the first latitude and longitude; the first point above will be used as the plane The origin of the coordinate system and the origin of the geographic coordinate system.
在上述第二获取单元中,第一获取单元采集到第一样点后,每经过指定时间段,第二获取单元通过多频GPS就采集一次样点和记录样点的经纬度,在这个过程中,用户一直手持终端在测量区域的边界上移动,因此,用户重新回到第一样点的位置时,第二获取单元就采集了多个第二样点;为了确保第二样点的数量足够多,用户在移动过程中,可以减缓移动速度,从而使用户走完指定区域的边界一圈的时间足够长,进而使多频GPS更新的次数足够多,第二获取单元采集的样点也就足够多;或者加快多频GPS的更新频率。In the above-mentioned second acquisition unit, after the first acquisition unit acquires the first same point, the second acquisition unit acquires the sample point and records the latitude and longitude of the sample point through multi-frequency GPS every time a specified period of time passes. , The user has been holding the terminal to move on the boundary of the measurement area, so when the user returns to the position of the first point, the second acquisition unit collects multiple second samples; in order to ensure that the number of second samples is sufficient More, the user can slow down the movement speed during the movement, so that the user can walk through the boundary of the specified area for a long enough time, so that the frequency of the multi-frequency GPS update is sufficient enough, and the sample points collected by the second acquisition unit Enough; or speed up the update frequency of multi-frequency GPS.
在本发明一实施例中,上述转换模块2,包括:In an embodiment of the present invention, the conversion module 2 includes:
建立单元,用于将所述第一样点作为原点、水平东西方向作为X轴、水平南北方向作为Y轴和竖直高度方向作为Z轴建立地理坐标系;Establishing a unit for establishing a geographic coordinate system using the first point as the origin, the horizontal east-west direction as the X axis, the horizontal north-south direction as the Y axis, and the vertical height direction as the Z axis;
第一转换单元,用于根据预设坐标系转换规则,将所述地理坐标系转换作为以第一样点为原点的平面坐标系;A first conversion unit, configured to convert the geographic coordinate system into a planar coordinate system with the first point as the origin according to a preset coordinate system conversion rule;
第二转换单元,用于将所述多个第二样点的第二经纬度分别转换为所述平面坐标系的平面坐标。The second conversion unit is configured to convert the second latitude and longitude of the plurality of second sample points into plane coordinates of the plane coordinate system, respectively.
在上述步建立单元中,上述地理坐标系为大地坐标系,也是空间直角坐标系,上述多个第二样点的经纬度为上述地理坐标系上的坐标,第二样点的经纬度在地理坐标系上的表示方式为(J,W,H),其中,J为经度,W为纬度,H为高度;上述地理坐标系的坐标轴还可以是其他方向。In the above step establishing unit, the geographic coordinate system is a geodetic coordinate system, which is also a space rectangular coordinate system, the latitude and longitude of the plurality of second sample points are coordinates on the geographic coordinate system, and the latitude and longitude of the second sample point are in the geographic coordinate system The above is expressed as (J, W, H), where J is longitude, W is latitude, and H is altitude; the coordinate axis of the above geographic coordinate system can also be in other directions.
在上述第一转换单元中,上述预设坐标系转换规则可根据测绘装置上内置 的加速度传感器、陀螺仪和/或地磁传感器采集到终端的第一姿态信息进行欧拉角变换;上述第一姿态信息为终端所在坐标系与平面坐标系的姿态关系,而终端坐标系与地理坐标系也存在姿态关系,进而通过欧拉角变换矩阵得到地理坐标系的第二姿态信息,第二姿态信息为平面坐标系与地理坐标系的姿态关系,并根据上述第二姿态信息将地理坐标系转换为以第一样点为原点的平面坐标系;上述终端坐标系为载体坐标系,上述终端坐标系的原点与测绘装置中心重合,z轴指向测绘装置上方,x轴指向测绘装置前方,y轴指向测绘装置右边。上述第二姿态信息包括俯仰角θ(pitch),偏航角ψ(yaw),滚转角Φ(roll);上述俯仰角为围绕Y轴旋转的角度,即终端坐标系X轴与水平面的夹角,当X轴的正半轴位于过坐标原点的水平面之上(抬头)时,俯仰角为正,否则为负;上述偏航角ψ(yaw)为围绕Z轴旋转的角度,即终端坐标系的X轴在水平面上投影与平面坐标系的X轴(在水平面上,指向目标为正)之间的夹角,由上述平面坐标系的X轴逆时针转至终端坐标系的X轴的投影线时,偏航角为正,即测绘装置右偏航为正,反之为负。上述滚转角Φ(roll)为测绘装置围绕终端坐标系的X轴旋转的角度,即终端坐标系的Z轴与通过终端坐标系的X轴的铅垂面间的夹角,测绘装置向右滚为正,反之为负。In the first conversion unit, the preset coordinate system conversion rule may perform Euler angle transformation according to the first posture information collected by the acceleration sensor, gyroscope, and/or geomagnetic sensor built in the surveying and mapping device; the first posture The information is the attitude relationship between the coordinate system where the terminal is located and the plane coordinate system, and there is also an attitude relationship between the terminal coordinate system and the geographic coordinate system, and then the second attitude information of the geographic coordinate system is obtained by the Euler angle transformation matrix, and the second attitude information is plane The attitude relationship between the coordinate system and the geographic coordinate system, and according to the second attitude information, the geographic coordinate system is converted into a plane coordinate system with the first point as the origin; the terminal coordinate system is the carrier coordinate system, and the origin of the terminal coordinate system It coincides with the center of the surveying and mapping device, the z axis points to the top of the surveying and mapping device, the x axis points to the front of the surveying and mapping device, and the y axis points to the right of the surveying and mapping device. The second attitude information includes a pitch angle θ (pitch), a yaw angle ψ (yaw), and a roll angle Φ (roll); the pitch angle is an angle of rotation around the Y axis, that is, the angle between the X axis of the terminal coordinate system and the horizontal plane , When the positive half-axis of the X-axis is above the horizontal plane (head up) of the coordinate origin, the pitch angle is positive, otherwise it is negative; the above yaw angle ψ (yaw) is the angle of rotation around the Z axis, that is, the terminal coordinate system The angle between the projection of the X axis on the horizontal plane and the X axis of the plane coordinate system (on the horizontal plane, the pointing target is positive), from the X axis of the plane coordinate system to the X coordinate projection of the terminal coordinate system When the line is on line, the yaw angle is positive, that is, the right yaw of the surveying and mapping device is positive, otherwise it is negative. The roll angle Φ (roll) is the angle of rotation of the surveying and mapping device around the X axis of the terminal coordinate system, that is, the angle between the Z axis of the terminal coordinate system and the vertical plane passing through the X axis of the terminal coordinate system, and the mapping device rolls to the right Is positive, otherwise it is negative.
在上述第二转换单元中,多个第二样点的第二经纬度为以地心为原点的地理坐标系上的坐标点,采用欧拉矩阵变换将以地心为原点的地理坐标系转换为以第一样点为原点的地理坐标系,进而将第二经纬度转换为以第一样点为原点的地理坐标系上的坐标点,再将地理坐标系转换为平面坐标系后,第二经纬度在地理坐标系上的坐标点也转换为平面坐标系对应的平面坐标。In the above-mentioned second conversion unit, the second latitudes and longitudes of the plurality of second sample points are the coordinate points on the geographic coordinate system with the center of the earth as the origin, and the geographic coordinate system with the center of the earth as the origin is converted into The geographic coordinate system with the first point as the origin, and then converts the second latitude and longitude to the coordinate point on the geographic coordinate system with the first point as the origin, and then converts the geographic coordinate system to the plane coordinate system, the second latitude and longitude The coordinate points on the geographic coordinate system are also converted into plane coordinates corresponding to the plane coordinate system.
在本发明一实施例中,所述装置,还包括:In an embodiment of the invention, the device further includes:
第二获取模块,用于获取在终端坐标系下终端的线运动数据和角运动数据;The second acquisition module is used to acquire the linear motion data and angular motion data of the terminal in the terminal coordinate system;
第二计算模块,用于计算根据所述线运动数据和角运动数据,通过惯性导航算法计算得到校正点,所述校正点为终端惯性运动的理论点;The second calculation module is used to calculate a correction point calculated by the inertial navigation algorithm according to the linear motion data and the angular motion data, where the correction point is a theoretical point of terminal inertial motion;
判断模块,用于判断所述校正点与指定样点间的位置偏差是否大于预设偏差值,所述指定样点为第二样点中的样点;The judgment module is used for judging whether the position deviation between the correction point and the specified sample point is greater than a preset deviation value, and the specified sample point is a sample point in the second sample point;
清除模块,若是,则清除所述指定样点。The clearing module, if yes, clears the specified sample point.
在上述第二获取模块中,上述终端坐标系为载体坐标系,原点与测绘装置中心重合,z轴指向测绘装置上方,x轴指向测绘装置前方,y轴指向测绘装 置右边。通过加速度计和陀螺仪等惯性元件测得测绘装置相对于以终端坐标系为参考系的惯性空间的线运动数据和角运动数据;上述惯性元件安装在测绘装置内,工作时不依赖外界数据,也不向外界辐射能量,不易受到干扰。In the above second acquisition module, the terminal coordinate system is a carrier coordinate system, the origin coincides with the center of the surveying and mapping device, the z axis points above the surveying device, the x axis points in front of the surveying device, and the y axis points to the right of the surveying device. The linear motion data and angular motion data of the mapping device relative to the inertial space with the terminal coordinate system as the reference frame are measured by inertial elements such as accelerometers and gyroscopes; the above inertial elements are installed in the mapping device and do not depend on external data during work. It also does not radiate energy to the outside and is not susceptible to interference.
在上述第二计算模块中,上述校正点为上述惯性导航算法通过线运动数据和角运动数据推算出终端惯性运动的理论位置;上述线运动数据和角运动数据包括终端的三轴加速度和三轴角速率;三轴角速率可变换为姿态的积分函数,即姿态积分函数;使用姿态数据将测得的三轴加速度转换到当前终端坐标系中,在将其积分成矢量速度的函数,即矢量速度积分函数;将终端坐标系中的矢量速度积分成位置的函数,即位置积分函数。In the second calculation module, the correction point is the theoretical position of the terminal inertial motion calculated by the linear motion data and angular motion data of the inertial navigation algorithm; the linear motion data and angular motion data include the three-axis acceleration and three axes of the terminal Angular rate; the three-axis angular rate can be transformed into an integral function of attitude, that is, the attitude integral function; using the attitude data to convert the measured three-axis acceleration to the current terminal coordinate system, and then integrate it into a function of vector velocity, that is, vector Speed integration function; a function that integrates the vector speed in the terminal coordinate system into a position, that is, a position integration function.
在上述判断模块中,上述校正点为惯性导航算法推算出来的理论位置;上述惯性导航算法至少包括姿态积分函数、矢量速度积分函数和位置积分函数;通过上述姿态积分函数将终端的三轴角速率转换为姿态积的函数,通过上述矢量速度积分函数将终端的三轴加速度转换为当前终端坐标系中矢量速度积分的函数,再通过位置积分函数将当前终端坐标系的矢量速度积分为位置积分的函数,进而得到校正点。判断模块将惯性导航算法推算出来的理论位置与多频GPS采集到的指定样点位置进行比较,清除模块以清除与理论位置误差大的样点。In the above judgment module, the correction point is the theoretical position calculated by the inertial navigation algorithm; the above inertial navigation algorithm includes at least an attitude integration function, a vector velocity integration function and a position integration function; the three axis angular rate of the terminal is determined by the attitude integration function Converted into a function of attitude product, the three-axis acceleration of the terminal is converted into a function of vector velocity integration in the current terminal coordinate system through the above vector velocity integration function, and then the vector velocity integral of the current terminal coordinate system is integrated into the position integral by the position integration function Function to obtain the correction point. The judgment module compares the theoretical position calculated by the inertial navigation algorithm with the position of the specified sample points collected by the multi-frequency GPS, and clears the module to remove the sample points with large error from the theoretical position.
在上述清除模块中,如果两者的位置偏离的值超过预设偏差值,则说明上述多频GPS采集的指定样点会对测量面积造成较大的误差,因此清除模块清除该指定样点;上述预设偏差值为实际测量后自行设定的参数值。In the above removal module, if the value of the position deviation between the two exceeds the preset deviation value, it means that the specified sample points collected by the multi-frequency GPS will cause a larger error in the measurement area, so the removal module clears the specified sample points; The above-mentioned preset deviation value is a parameter value set by itself after actual measurement.
在本发明一实施例中,所述判断模块,包括:In an embodiment of the invention, the judgment module includes:
第一计算单元,用于计算所述指定样点与上一样点所连接直线的第一斜率,以及计算所述校正点的偏航角的第二斜率,其中,所述上一样点为与所述指定样点相邻的前一样点;A first calculation unit, configured to calculate a first slope of a straight line connecting the specified sample point and the same point as above, and calculate a second slope of the yaw angle of the correction point, wherein the above same point is the same as Said the same point adjacent to the designated sample point;
第一判断单元,用于判断所述第一斜率与所述第二斜率间的第一偏差是否大于第一偏差值。The first determining unit is configured to determine whether the first deviation between the first slope and the second slope is greater than the first deviation value.
在上述第一计算单元中,上述指定样点为与校正点进行位置偏差比较的样点,上一样点为采集到指定样点前的相邻样点,上述上一样点已经与校正点进行过位置偏差比较且保留的样点;跟指定样点进行位置比较的校正点和跟上一样点进行位置比较的校正点不是同一校正点;上述跟指定样点进行位置比较的校正点的偏航角为测绘装置运动前方与终端坐标系的X轴的夹角,可根据惯 性导航算法中的姿态积分函数计算得到。In the above-mentioned first calculation unit, the above-mentioned specified sample point is a sample point for comparing the position deviation with the correction point, the same point is the adjacent sample point before the specified sample point is collected, the above-mentioned same point has already been performed with the correction point The sample points for which the position deviation is compared and retained; the correction point for the position comparison with the specified sample point and the correction point for the position comparison with the same point are not the same correction point; the yaw angle of the above correction point for the position comparison with the specified sample point The angle between the front of the mapping device and the X axis of the terminal coordinate system can be calculated according to the attitude integration function in the inertial navigation algorithm.
在上述第一判断单元中,设指定样点与上一样点所连接直线的第一斜率为Kn,校正点的第二斜率为tanθ,若公式|tanθ
n-k
n|<Δ
1成立,则说明上述指定样点与校正点的位置偏差小,上述指定样点保留,反之,则上述指定样点与校正点的位置偏差大,上述指定样点清除;其中,θ为上述校正点的偏航角,n为第n+1个指定样点与第n个上一样所连接的第n条直线,Δ
1根据实际测量后设定的参数。
In the above first judgment unit, suppose that the first slope of the straight line connecting the specified sample point and the same point is Kn, and the second slope of the correction point is tanθ, if the formula |tanθ n -k n |<Δ 1 holds, then It means that the position deviation between the specified sample point and the calibration point is small, and the specified sample point remains, otherwise, the position deviation between the specified sample point and the correction point is large, and the specified sample point is cleared; where, θ is the yaw of the correction point Angle, n is the nth straight line connected to the n+1th specified sample point as the nth, Δ 1 is based on the parameters set after the actual measurement.
在本发明一实施例中,上述判断模块,还包括:In an embodiment of the present invention, the above judgment module further includes:
第二计算单元,用于计算终端在所述指定样点与上一样点间位移过程的平均速度,以及获取所述校正点的瞬时速度,其中所述上一样点为与所述指定样点相邻的前一样点;A second calculation unit, configured to calculate the average speed of the terminal displacement process between the specified sample point and the same point as above, and to obtain the instantaneous speed of the correction point, wherein the previous point is the phase corresponding to the specified sample point Same point before the neighbor;
第二判断单元,用于判断所述瞬时速度与所述平均速度之间的第二偏差是否大于第二偏差值。A second judgment unit is used to judge whether the second deviation between the instantaneous speed and the average speed is greater than a second deviation value.
上述判断模块可包括第一计算单元、第一判断单元、第二计算单元和第二判断单元,也可只包括第一计算单元和第一判断单元或只包括第二计算单元和第二判断单元;优选为,包括第一计算单元、第一判断单元、第二计算单元和第二判断单元。The above determination module may include a first calculation unit, a first determination unit, a second calculation unit and a second determination unit, or may include only the first calculation unit and the first determination unit or only the second calculation unit and the second determination unit ; Preferably, it includes a first calculation unit, a first determination unit, a second calculation unit, and a second determination unit.
在上述第二计算单元中,上述平均速度可根据指定样点与上一样点间的距离和经过该距离所用的时间计算得到,计算公式可为平均速度=距离/时间;上述校正点的瞬时速度可根据惯性导航算法中的矢量速度积分函数计算得到。In the above-mentioned second calculation unit, the above-mentioned average speed can be calculated according to the distance between the specified sample point and the same point and the time taken to pass the distance, the calculation formula can be: average speed=distance/time; instantaneous speed of the above correction point It can be calculated according to the vector speed integral function in the inertial navigation algorithm.
在上述第二判断单元中,设上述平均速度为v
1,上述瞬时速度为v
2,若公式|v
2-v
1|<Δ
2成立,则说明上述指定样点与校正点的位置偏差小,上述指定样点保留,反之,则上述指定样点与校正点的位置偏差大,上述指定样点清除;其中,Δ
2根据实际测量后设定的参数。
In the second judgment unit, let the average speed be v 1 and the instantaneous speed be v 2. If the formula |v 2 -v 1 |<Δ 2 holds, it means that the position deviation between the specified sample point and the correction point is small , The above-mentioned designated sample point remains, otherwise, the position deviation between the above-mentioned designated sample point and the calibration point is large, and the above-mentioned designated sample point is cleared; among them, Δ 2 is based on the parameters set after actual measurement.
在本发明一实施例中,上述预设公式包括面积公式和周长公式;上述第一计算模块4,包括:In an embodiment of the present invention, the preset formula includes an area formula and a perimeter formula; the first calculation module 4 includes:
拟合单元,用于根据所述多个样点的平面坐标,按照预设误差公式将所述指定区域拟合成具有多个顶点的多边形的区域;其中,所述多边形的顶点为所述多个样点中的样点;A fitting unit, configured to fit the specified area into a polygonal area with multiple vertices according to a predetermined error formula according to the plane coordinates of the multiple sample points; wherein the vertices of the polygon are the multiple Sample points in a sample point;
面积计算单元,用于根据所述面积公式与顶点的平面坐标,计算出所述多边形区域的面积;An area calculation unit, used to calculate the area of the polygonal area according to the area formula and the plane coordinates of the vertex;
周长计算单元,用于根据所述周长公式与顶点的平面坐标,计算出所述多边形区域的周长。The perimeter calculation unit is configured to calculate the perimeter of the polygonal area according to the perimeter formula and the plane coordinates of the vertex.
在上述拟合单元中,由于运动轨迹不一定是直线,所以为使运动轨迹在误差范围内尽可能是直线,需要去除不在直线上的点;如图3,设多个样点的数量为M,形成闭合的指定区域时,非直线的运动轨迹为弧AC,取弧AC上的三个样点A、B、C,计算AB和BC的斜率K
AB、K
BC,若|k
AB-k
BC|<Δ
3成立,则选取样点C作为顶点,且去除样点B,反之,则选取样点B作为顶点,且暂时保留样点C,依次类推,从而得到N个顶点,将N个顶点依次连接形成闭合的多边形区域;上述多边形区域近似为指定区域,且多边形区域为分段光滑的曲线围成的单连通区域模型,设多边形区域为G,G上的曲线R,函数p(x,y)、q(x,y)在G内具有一阶连续偏导数,则曲线积分∫
R p dx+qdy在G内与路径无关的充分必要条件
在G内恒成立,应用格林公式,有
In the above fitting unit, since the movement trajectory is not necessarily a straight line, in order to make the movement trajectory as straight as possible within the error range, it is necessary to remove points that are not on the straight line; as shown in Figure 3, set the number of multiple sample points to M , When forming a closed designated area, the non-linear motion trajectory is arc AC, take three sample points A, B, and C on arc AC, and calculate the slopes K AB and K BC of AB and BC , if |k AB -k BC | <Δ 3 holds, then the sampling point C is selected as the vertex, and the sample point B is removed, otherwise, the sampling point B is selected as the vertex, and the sample point C is temporarily retained, and so on, so as to obtain N vertices, and N The vertices are connected in sequence to form a closed polygonal area; the above polygonal area is approximately a specified area, and the polygonal area is a single connected area model surrounded by a piecewise smooth curve, let the polygonal area be G, the curve R on G, function p(x , Y), q(x, y) have a first-order continuous partial derivative in G, then a sufficient and necessary condition for the curve integral ∫ R p dx+qdy to be independent of the path in G Established in G Neiheng, applying Green's formula, there is
在上述面积计算单元中,将上述
的公式右端完全离散处理,并令q=x,p=y,得到由曲线L形成的区域面积公式:
其中,
设曲线L为指定区域边界
有n个离散点,顶点为pnk围成的N边形,取任一条p
nkp
n(k+1)其内的离散方程,由此推导出任意多边形的面积公式:
将每个上述顶点的平面坐标代入上述面积公式进行求和,则得到指定区域的面积。
In the above area calculation unit, the above The right end of the formula is completely discrete, and let q = x, p = y, to get the formula of the area of the area formed by the curve L: among them, Let curve L be the boundary of the specified area There are n discrete points, and the vertex is an N polygon surrounded by pnk. Take any discrete equation within p nk p n(k+1) , from which the area formula of any polygon is derived: Substituting the plane coordinates of each of the above vertices into the above area formula for summation, the area of the specified area is obtained.
在上述周长计算单元中,计算包含N个顶点的多边形的周长L,则分别计算包含N个顶点的多边形的每条边的长度,再对每条边的长度求和,所以根据上述
可得到N-1条边的多边形的周长公式:
将每个上述顶点的平面坐标代入上述周长公式进行求和,则的带指定区域的周长。
In the above perimeter calculation unit, calculate the perimeter L of the polygon containing N vertices, then calculate the length of each side of the polygon containing N vertices, and then sum the length of each side, so according to the above The perimeter formula of the polygon with N-1 sides can be obtained: Substituting the plane coordinates of each of the above vertices into the above perimeter formula for summation, then the perimeter with the specified area.
本发明还提出一种计算机设备,其包括处理器、存储器及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的测绘方法。The present invention also provides a computer device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor. The processor implements the computer program to implement the above-described mapping method .
上述计算机设备可以为终端(但不限于终端),上述终端包括包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、车载电脑等任意终端设备。The computer device may be a terminal (but not limited to a terminal), and the terminal includes any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an in-vehicle computer, and the like.
本领域技术人员可以理解,本发明所述的计算机设备和上述所涉及用于执行本申请中所述方法中的一项或多项的设备。这些设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备。这些设备具有存储在其内的计算机程序或应用程序,这些计算机程序选择性地激活或重构。这样的计算机程序可以被存储在设备(例如,计算机)可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何类型的介质中,所述计算机可读介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存储器)、EPROM(Erasable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,可读介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。Those skilled in the art may understand that the computer device described in the present invention and the device involved in the above are used to perform one or more of the methods described in this application. These devices may be specially designed and manufactured for the required purpose, or may also include known devices in general-purpose computers. These devices have computer programs or application programs stored therein, which are selectively activated or reconstructed. Such a computer program may be stored in a device (eg, computer) readable medium or any type of medium suitable for storing electronic instructions and respectively coupled to a bus, the computer readable medium including but not limited to any Types of disks (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory , Erasable programmable read-only memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card. That is, a readable medium includes any medium that stores or transmits information in a readable form by a device (eg, a computer).
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围。The above is only a preferred embodiment of the present invention, and thus does not limit the patent scope of the present invention.
Claims (15)
- 一种测绘方法,其特征在于,包括:A surveying and mapping method, characterized in that it includes:在预设频率下,通过多频GPS实时获取终端的运动轨迹上的多个样点的经纬度;Under the preset frequency, obtain the latitude and longitude of multiple samples on the movement track of the terminal in real time through multi-frequency GPS;将所述多个样点的经纬度转换为平面坐标;Converting the latitude and longitude of the plurality of sample points into plane coordinates;根据所述多个样点的所述平面坐标形成闭合的指定区域;Forming a closed designated area according to the plane coordinates of the plurality of sample points;通过预设公式计算出所述指定区域对应的测绘数据。The mapping data corresponding to the specified area is calculated through a preset formula.
- 根据权利要求1所述的测绘方法,其特征在于,所述多个样点包括第一样点和多个第二样点,所述经纬度包括第一经纬度和多个第二经纬度;所述在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点的经纬度的步骤,包括:The surveying and mapping method according to claim 1, wherein the plurality of sample points include a first same point and a plurality of second sample points, and the latitude and longitude include a first latitude and longitude and a plurality of second latitude and longitude; The step of acquiring the latitude and longitude of multiple sample points on the movement track of the terminal in real time through multi-frequency GPS at a preset frequency includes:接收开始测量的指令,通过所述多频GPS获取所述运动轨迹上的第一样点的第一经纬度,所述第一样点为所述运动轨迹的起点;Receiving an instruction to start measurement, and acquiring the first longitude and latitude of the first same point on the movement track through the multi-frequency GPS, the first same point being the starting point of the movement track;在所述预设频率下,通过所述多频GPS获取所述运动轨迹上的多个第二样点分别对应的第二经纬度。At the preset frequency, the second longitude and latitude corresponding to the plurality of second sample points on the motion track are obtained by the multi-frequency GPS.
- 根据权利要求2所述的测绘方法,其特征在于,所述将多个样点的经纬度转换为平面坐标的步骤,包括:The surveying and mapping method according to claim 2, wherein the step of converting the latitude and longitude of a plurality of sample points into plane coordinates includes:将所述第一样点作为原点、水平东西方向作为X轴、水平南北方向作为Y轴和竖直高度方向作为Z轴建立地理坐标系;Establish a geographic coordinate system by using the first point as the origin, the horizontal east-west direction as the X axis, the horizontal north-south direction as the Y axis, and the vertical height direction as the Z axis;根据预设坐标系转换规则,将所述地理坐标系转换为以所述第一样点作为原点的平面坐标系;Convert the geographic coordinate system into a planar coordinate system with the first point as the origin according to a preset coordinate system conversion rule;将所述多个第二样点的第二经纬度分别转换为所述平面坐标系的平面坐标。Converting the second latitude and longitude of the plurality of second sample points into plane coordinates of the plane coordinate system, respectively.
- 根据权利要求1所述的测绘方法,其特征在于,所述在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点的经纬度的步骤之后,还包括:The surveying and mapping method according to claim 1, wherein after the step of acquiring the latitude and longitude of a plurality of sample points on the motion trajectory of the terminal in real time at a preset frequency through multi-frequency GPS, the method further comprises:获取在终端坐标系下终端的线运动数据和角运动数据;Obtain the linear motion data and angular motion data of the terminal in the terminal coordinate system;根据所述线运动数据和角运动数据,通过惯性导航算法计算得到校正点,所述校正点为终端惯性运动的理论点;According to the linear motion data and angular motion data, a correction point is calculated by an inertial navigation algorithm, and the correction point is a theoretical point of terminal inertial motion;判断所述校正点与指定样点间的位置偏差是否大于预设偏差值,所述指定样点为第二样点中的样点;Judging whether the position deviation between the correction point and the specified sample point is greater than a preset deviation value, and the specified sample point is the sample point in the second sample point;若是,则清除所述指定样点。If yes, the specified sample point is cleared.
- 根据权利要求4所述的测绘方法,其特征在于,所述判断所述校正点与指定样点间的位置偏差是否大于预设偏差值的步骤,包括:The surveying and mapping method according to claim 4, wherein the step of determining whether the position deviation between the correction point and the designated sample point is greater than a preset deviation value includes:计算所述指定样点与上一样点所连接直线的第一斜率,以及计算所述校正点的偏航角的第二斜率;其中,所述上一样点为与所述指定样点相邻的前一样点;Calculating the first slope of the straight line connecting the specified sample point and the same point as above, and calculating the second slope of the yaw angle of the correction point; wherein, the previous point is adjacent to the specified sample point Same as before判断所述第一斜率与所述第二斜率间的第一偏差是否大于第一偏差值。It is determined whether the first deviation between the first slope and the second slope is greater than the first deviation value.
- 根据权利要求4所述的测绘方法,其特征在于,所述判断所述校正点与指定样点间的位置偏差是否大于预设偏差值的步骤,还包括:The surveying and mapping method according to claim 4, wherein the step of determining whether the position deviation between the correction point and the designated sample point is greater than a preset deviation value, further comprising:计算终端在所述指定样点与上一样点间位移过程的平均速度,以及获取所述校正点的瞬时速度,其中,所述上一样点为与所述指定样点相邻的前一样点;Calculating the average speed of the displacement process of the terminal between the designated sample point and the same point as above, and acquiring the instantaneous velocity of the correction point, wherein the above same point is the previous same point adjacent to the designated sample point;判断所述瞬时速度与所述平均速度之间的第二偏差是否大于第二偏差值。It is determined whether the second deviation between the instantaneous speed and the average speed is greater than the second deviation value.
- 根据权利要求1所述的测绘方法,其特征在于,所述预设公式包括面积公式和周长公式;所述通过预设公式计算出所述指定区域对应的测绘数据的步骤,包括:The surveying and mapping method according to claim 1, wherein the preset formula includes an area formula and a perimeter formula; and the step of calculating the surveying and mapping data corresponding to the specified area by using the preset formula includes:根据所述多个样点的平面坐标,按照预设误差公式将所述指定区域拟合成具有多个顶点的多边形的区域;其中,所述多边形的顶点为所述多个样点中的样点;According to the plane coordinates of the plurality of sample points, the specified area is fitted into a polygonal area with multiple vertices according to a preset error formula; wherein the vertices of the polygon are the samples of the multiple sample points point;根据所述面积公式与所述顶点的平面坐标,计算出所述多边形区域的面积;Calculate the area of the polygonal area according to the area formula and the plane coordinates of the vertex;根据所述周长公式与所述顶点的平面坐标,计算出所述多边形区域的周长。The perimeter of the polygon area is calculated according to the perimeter formula and the plane coordinates of the vertex.
- 一种测绘装置,其特征在于,包括:A surveying and mapping device, characterized in that it includes:第一获取模块,用于在预设频率下,通过多频GPS实时获取终端运动轨迹上的多个样点的经纬度;The first acquisition module is used to acquire the latitude and longitude of multiple sample points on the terminal's motion track in real time through multi-frequency GPS at a preset frequency;转换模块,用于将所述多个样点的经纬度转换为平面坐标;A conversion module, configured to convert the latitude and longitude of the plurality of sample points into plane coordinates;形成模块,用于根据所述多个样点的所述平面坐标形成闭合的指定区域;A forming module, configured to form a closed designated area according to the plane coordinates of the plurality of sample points;第一计算模块,用于通过预设公式计算出所述指定区域对应的测绘数据。The first calculation module is used to calculate the mapping data corresponding to the specified area through a preset formula.
- 根据权利要求8所述的测绘装置,其特征在于,所述多个样点包括第一样点和多个第二样点,所述经纬度包括第一经纬度和多个第二经纬度;所述第一获取模块,包括:The surveying and mapping device according to claim 8, wherein the plurality of sample points include a first same point and a plurality of second sample points, and the latitude and longitude include a first latitude and longitude and a plurality of second latitude and longitude; the first One acquisition module, including:第一获取单元,用于接收开始测量的指令,通过所述多频GPS获取所述运动轨迹上的第一样点的第一经纬度,所述第一样点为所述运动轨迹的起点;A first acquiring unit, configured to receive an instruction to start measurement, and acquire the first longitude and latitude of the first same point on the movement track through the multi-frequency GPS, and the first same point is the starting point of the movement track;第二获取单元,用于在预设频率下,通过所述多频GPS获取运动轨迹上的多个第二样点分别对应的第二经纬度。The second obtaining unit is configured to obtain second latitudes and longitudes corresponding to the plurality of second sample points on the movement track through the multi-frequency GPS at a preset frequency.
- 根据权利要求9所述的测绘装置,其特征在于,所述转换模块,包括:The surveying and mapping device according to claim 9, wherein the conversion module comprises:建立单元,用于将所述第一样点作为原点、水平东西方向作为X轴、水平南北方向作为Y轴和竖直高度方向作为Z轴建立地理坐标系;Establishing a unit for establishing a geographic coordinate system using the first point as the origin, the horizontal east-west direction as the X axis, the horizontal north-south direction as the Y axis, and the vertical height direction as the Z axis;第一转换单元,用于根据预设坐标系转换规则,将所述地理坐标系转换作为以第一样点为原点的平面坐标系;A first conversion unit, configured to convert the geographic coordinate system into a planar coordinate system with the first point as the origin according to a preset coordinate system conversion rule;第二转换单元,用于将所述多个第二样点的第二经纬度分别转换为所述平面坐标系的平面坐标。The second conversion unit is configured to convert the second latitude and longitude of the plurality of second sample points into plane coordinates of the plane coordinate system, respectively.
- 根据权利要求8所述的测绘装置,其特征在于,所述装置,还包括:The surveying and mapping device according to claim 8, wherein the device further comprises:第二获取模块,用于获取在终端坐标系下终端的线运动数据和角运动数据;The second acquisition module is used to acquire the linear motion data and angular motion data of the terminal in the terminal coordinate system;第二计算模块,用于计算根据所述线运动数据和角运动数据,通过惯性导航算法计算得到校正点,所述校正点为终端惯性运动的理论点;The second calculation module is used to calculate a correction point calculated by the inertial navigation algorithm according to the linear motion data and the angular motion data, where the correction point is a theoretical point of terminal inertial motion;判断模块,用于判断所述校正点与指定样点间的位置偏差是否大于预设偏差值,所述指定样点为第二样点中的样点;The judgment module is used for judging whether the position deviation between the correction point and the specified sample point is greater than a preset deviation value, and the specified sample point is a sample point in the second sample point;清除模块,若是,则清除所述指定样点。The clearing module, if yes, clears the specified sample point.
- 根据权利要求11所述的测绘装置,其特征在于,所述判断模块,包括:The surveying and mapping device according to claim 11, wherein the judgment module comprises:第一计算单元,用于计算所述指定样点与上一样点所连接直线的第一斜率,以及计算所述校正点的偏航角的第二斜率,其中,所述上一样点为与所述指定样点相邻的前一样点;A first calculation unit, configured to calculate a first slope of a straight line connecting the specified sample point and the same point as above, and calculate a second slope of the yaw angle of the correction point, wherein the above same point is the same as Said the same point adjacent to the designated sample point;第一判断单元,用于判断所述第一斜率与所述第二斜率间的第一偏差是否大于第一偏差值。The first determining unit is configured to determine whether the first deviation between the first slope and the second slope is greater than the first deviation value.
- 根据权利要求11所述的测绘装置,其特征在于,所述判断模块,还包括:The surveying and mapping device according to claim 11, wherein the judgment module further comprises:第二计算单元,用于计算终端在所述指定样点与上一样点间位移过程的平均速度,以及获取所述校正点的瞬时速度,其中所述上一样点为与所述指定样点相邻的前一样点;A second calculation unit, configured to calculate the average speed of the terminal displacement process between the specified sample point and the same point as above, and to obtain the instantaneous speed of the correction point, wherein the previous point is the phase corresponding to the specified sample point Same point before the neighbor;第二判断单元,用于判断所述瞬时速度与所述平均速度之间的第二偏差是否大于第二偏差值。A second judgment unit is used to judge whether the second deviation between the instantaneous speed and the average speed is greater than a second deviation value.
- 根据权利要求8所述的测绘装置,其特征在于,所述预设公式包括面积公式和周长公式;所述第一计算模块,包括:The surveying and mapping device according to claim 8, wherein the preset formula includes an area formula and a perimeter formula; and the first calculation module includes:拟合单元,用于根据所述多个样点的平面坐标,按照预设误差公式将所述指定区域拟合成具有多个顶点的多边形的区域;其中,所述多边形的顶点为所述多个样点中的样点;A fitting unit, configured to fit the specified area into a polygonal area with multiple vertices according to a predetermined error formula according to the plane coordinates of the multiple sample points; wherein the vertices of the polygon are the multiple Sample points in a sample point;面积计算单元,用于根据所述面积公式与顶点的平面坐标,计算出所述多边形区域的面积;An area calculation unit, used to calculate the area of the polygonal area according to the area formula and the plane coordinates of the vertex;周长计算单元,用于根据所述周长公式与顶点的平面坐标,计算出所述多边形区域的周长。The perimeter calculation unit is configured to calculate the perimeter of the polygonal area according to the perimeter formula and the plane coordinates of the vertex.
- 一种计算机设备,其特征在于,其包括处理器、存储器及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1~7任一项所述的测绘方法。A computer device, characterized in that it includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and the processor implements the computer program as claimed in claim 1 The surveying and mapping method described in any one of ~7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811554347.5A CN109631750B (en) | 2018-12-18 | 2018-12-18 | Surveying and mapping method, surveying and mapping device, computer equipment and storage medium |
CN201811554347.5 | 2018-12-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020124749A1 true WO2020124749A1 (en) | 2020-06-25 |
Family
ID=66075228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/073530 WO2020124749A1 (en) | 2018-12-18 | 2019-01-28 | Mapping method and apparatus, and computer device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109631750B (en) |
WO (1) | WO2020124749A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112833773B (en) * | 2021-01-13 | 2022-01-14 | 无锡卡尔曼导航技术有限公司 | High-precision real-time mu counting method for operation |
CN116147567B (en) * | 2023-04-20 | 2023-07-21 | 高唐县空间勘察规划有限公司 | Homeland mapping method based on multi-metadata fusion |
CN116858085B (en) * | 2023-06-14 | 2024-04-02 | 广东省水利水电科学研究院 | Dam body surface deformation monitoring system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101672639A (en) * | 2009-10-13 | 2010-03-17 | 江苏大学 | System and method based on GPS for measuring farmland working area |
CN101701813A (en) * | 2009-11-18 | 2010-05-05 | 陈凌 | Land area intelligent measuring device and method |
CN103017693A (en) * | 2012-12-03 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method for measuring area of smart phone |
CN103217898A (en) * | 2012-01-20 | 2013-07-24 | 苏州宝时得电动工具有限公司 | Automatic working equipment and control method thereof |
CN108088408A (en) * | 2016-11-23 | 2018-05-29 | 北京地林远景信息技术有限公司 | The method that a kind of smart mobile phone/tablet measures national territorial area |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221562A (en) * | 2007-01-08 | 2008-07-16 | 华硕电脑股份有限公司 | Data updating method and system of network map service platform |
CN102819027B (en) * | 2012-08-13 | 2014-05-07 | 南京航空航天大学 | Satellite navigation integrity monitoring device based on carrier phase and application method of device |
JP2018507389A (en) * | 2014-12-09 | 2018-03-15 | ビーエーエスエフ ソシエタス・ヨーロピアBasf Se | Optical detector |
CN107577906A (en) * | 2016-07-04 | 2018-01-12 | 北京合众思壮科技股份有限公司 | A kind of track area real-time computing technique and device |
CN106247926B (en) * | 2016-07-13 | 2019-05-14 | 哈尔滨工业大学 | Farm machinery tillage Area computing method based on cell scanning and GPS track interpolation |
CN108204786A (en) * | 2018-01-15 | 2018-06-26 | 武汉盛硕电子有限公司 | A kind of Big Dipper measuring system based on mobile module |
CN108709552A (en) * | 2018-04-13 | 2018-10-26 | 哈尔滨工业大学 | A kind of IMU and GPS tight integration air navigation aids based on MEMS |
CN108646267A (en) * | 2018-05-15 | 2018-10-12 | 广州极飞科技有限公司 | A kind of method and device of identification sampled point |
-
2018
- 2018-12-18 CN CN201811554347.5A patent/CN109631750B/en active Active
-
2019
- 2019-01-28 WO PCT/CN2019/073530 patent/WO2020124749A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101672639A (en) * | 2009-10-13 | 2010-03-17 | 江苏大学 | System and method based on GPS for measuring farmland working area |
CN101701813A (en) * | 2009-11-18 | 2010-05-05 | 陈凌 | Land area intelligent measuring device and method |
CN103217898A (en) * | 2012-01-20 | 2013-07-24 | 苏州宝时得电动工具有限公司 | Automatic working equipment and control method thereof |
CN103017693A (en) * | 2012-12-03 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method for measuring area of smart phone |
CN108088408A (en) * | 2016-11-23 | 2018-05-29 | 北京地林远景信息技术有限公司 | The method that a kind of smart mobile phone/tablet measures national territorial area |
Also Published As
Publication number | Publication date |
---|---|
CN109631750A (en) | 2019-04-16 |
CN109631750B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020124749A1 (en) | Mapping method and apparatus, and computer device | |
CN106052718B (en) | A kind of method of calibration and device based on POS terminal and digital aviation measuring camera | |
CN108225324B (en) | Indoor positioning method based on intelligent terminal and integrating geomagnetic matching and PDR | |
CN105044668A (en) | Wifi fingerprint database construction method based on multi-sensor device | |
US20120026322A1 (en) | Method, tool, and device for determining the coordinates of points on a surface by means of an accelerometer and a camera | |
CN108303043B (en) | Multi-sensor information fusion plant leaf area index detection method and system | |
CN105091907B (en) | DVL orientation alignment error method of estimation in SINS/DVL combinations | |
US20120150440A1 (en) | Positioning apparatus, positioning method, and storage medium for measuring position using both autonomous navigation and gps | |
JP2001503134A (en) | Portable handheld digital geodata manager | |
CN104535064A (en) | Wi-Fi fingerprint-assisted indoor mobile terminal inertial navigation method | |
CN104635251A (en) | Novel INS (inertial navigation system)/ GPS (global position system) combined position and orientation method | |
JP6573156B2 (en) | Data analysis apparatus, data analysis method, and data analysis program | |
WO2016198009A1 (en) | Heading checking method and apparatus | |
CN103575293A (en) | Magnetometer direction angle correction method and magnetometer | |
CN113820735A (en) | Method for determining position information, position measuring device, terminal, and storage medium | |
CN103900565A (en) | Method for obtaining inertial navigation system attitude based on DGPS (differential global positioning system) | |
CN110906830B (en) | Intelligent distance measuring wheel system and distance measuring method thereof | |
CN109916396B (en) | Indoor positioning method based on multidimensional geomagnetic information | |
CN107830858A (en) | A kind of mobile phone course estimation method based on gravity auxiliary | |
CN111121758A (en) | Rapid modeling and credible positioning method for indoor magnetic map | |
Lo et al. | The direct georeferencing application and performance analysis of uav helicopter in gcp-free area | |
CN216925591U (en) | Portable laser measuring equipment based on dynamic real-time positioning | |
CN113532477B (en) | Riding stopwatch equipment and initial posture automatic calibration method of riding stopwatch | |
CN111189446B (en) | Combined navigation method based on radio | |
CN110954080A (en) | Magnetic compass calibration method for eliminating carrier magnetic interference |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19898893 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19898893 Country of ref document: EP Kind code of ref document: A1 |