Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4b56f9b4
Commit
4b56f9b4
authored
Aug 22, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spatial code cleanup
parent
836099f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
sql/spatial.cc
sql/spatial.cc
+5
-6
sql/spatial.h
sql/spatial.h
+1
-1
No files found.
sql/spatial.cc
View file @
4b56f9b4
...
@@ -285,7 +285,7 @@ int GLineString::get_mbr(MBR *mbr) const
...
@@ -285,7 +285,7 @@ int GLineString::get_mbr(MBR *mbr) const
return
1
;
return
1
;
for
(;
n_points
>
0
;
--
n_points
)
for
(;
n_points
>
0
;
--
n_points
)
{
{
mbr
->
add_xy
(
(
double
*
)
data
,
(
double
*
)(
data
+
8
)
);
mbr
->
add_xy
(
data
,
data
+
8
);
data
+=
8
+
8
;
data
+=
8
+
8
;
}
}
...
@@ -551,7 +551,7 @@ int GPolygon::get_mbr(MBR *mbr) const
...
@@ -551,7 +551,7 @@ int GPolygon::get_mbr(MBR *mbr) const
return
1
;
return
1
;
for
(;
n_points
>
0
;
--
n_points
)
for
(;
n_points
>
0
;
--
n_points
)
{
{
mbr
->
add_xy
(
(
double
*
)
data
,
(
double
*
)(
data
+
8
)
);
mbr
->
add_xy
(
data
,
data
+
8
);
data
+=
8
+
8
;
data
+=
8
+
8
;
}
}
}
}
...
@@ -838,8 +838,7 @@ int GMultiPoint::get_mbr(MBR *mbr) const
...
@@ -838,8 +838,7 @@ int GMultiPoint::get_mbr(MBR *mbr) const
return
1
;
return
1
;
for
(;
n_points
>
0
;
--
n_points
)
for
(;
n_points
>
0
;
--
n_points
)
{
{
mbr
->
add_xy
((
double
*
)(
data
+
WKB_HEADER_SIZE
),
mbr
->
add_xy
(
data
+
WKB_HEADER_SIZE
,
data
+
8
+
WKB_HEADER_SIZE
);
(
double
*
)(
data
+
8
+
WKB_HEADER_SIZE
));
data
+=
(
8
+
8
+
WKB_HEADER_SIZE
);
data
+=
(
8
+
8
+
WKB_HEADER_SIZE
);
}
}
return
0
;
return
0
;
...
@@ -963,7 +962,7 @@ int GMultiLineString::get_mbr(MBR *mbr) const
...
@@ -963,7 +962,7 @@ int GMultiLineString::get_mbr(MBR *mbr) const
for
(;
n_points
>
0
;
--
n_points
)
for
(;
n_points
>
0
;
--
n_points
)
{
{
mbr
->
add_xy
(
(
double
*
)
data
,
(
double
*
)(
data
+
8
)
);
mbr
->
add_xy
(
data
,
data
+
8
);
data
+=
8
+
8
;
data
+=
8
+
8
;
}
}
}
}
...
@@ -1156,7 +1155,7 @@ int GMultiPolygon::get_mbr(MBR *mbr) const
...
@@ -1156,7 +1155,7 @@ int GMultiPolygon::get_mbr(MBR *mbr) const
for
(;
n_points
>
0
;
--
n_points
)
for
(;
n_points
>
0
;
--
n_points
)
{
{
mbr
->
add_xy
(
(
double
*
)
data
,
(
double
*
)(
data
+
8
)
);
mbr
->
add_xy
(
data
,
data
+
8
);
data
+=
8
+
8
;
data
+=
8
+
8
;
}
}
}
}
...
...
sql/spatial.h
View file @
4b56f9b4
...
@@ -71,7 +71,7 @@ struct MBR
...
@@ -71,7 +71,7 @@ struct MBR
}
}
}
}
void
add_xy
(
double
*
px
,
double
*
py
)
void
add_xy
(
const
char
*
px
,
const
char
*
py
)
{
/* Not using "else" for proper one point MBR calculation */
{
/* Not using "else" for proper one point MBR calculation */
double
x
,
y
;
double
x
,
y
;
float8get
(
x
,
px
);
float8get
(
x
,
px
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment