Changes
Jump to:
navigation
,
search
Coordinate display rules
548 bytes added
,
18:08, 26 May 2017
no edit summary
{{Rewrite | This pages needs to be updated with Distance/Bearing checks.}}
This query shows the different combination of ''coordrefsys'', ''coordformat'' and ''userinputformat'' used in the database.
# Verify that all combinations are correct, if not they need to be corrected.
LENGTH(userenteredcoord) - LENGTH(REPLACE( userenteredcoord, ':', '')) <> 2
and coordformat = 'Degrees:Decimal Minutes'
</pre>
This query identifies coordinates where distance and bearing has been migrated from Legacy as extra information
<pre>
SELECT
geopoint_guid,
longitude,
latitude,
bearing,
distance,
frompoint_guid,
coordrefsys,
userinputformat,
coordformat,
poly.enumvalue
FROM
geopoint
INNER JOIN geospatialinfo ON geospatialinfo.geospatialinfo_guid = geopoint.geospatialinfo_guid
INNER JOIN imsmaenum AS poly ON geospatialinfo.shapeenum_guid = poly.imsmaenum_guid
WHERE
(distance IS NOT NULL AND
bearing IS NOT NULL) AND
(frompoint_guid IS NULL OR length(frompoint_guid) = 0 )
ORDER BY
geopoint.geospatialinfo_guid ASC,
pointno ASC
</pre>
{{NavBox Upgrade}}
[[Category:NoPublic]]
[[Category:SQL Queries]]
← Older edit
Alnaucler
NoPublic,
bureaucrat
,
administrator
6,632
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Special page
Variants
Views
More
Search
Navigation
Main page
Recent changes
Random page
Glossary
Wiki Policy
Portals
Using IMSMA NG
IMSMA NG Administration
IMSMA Remote Entry
Business Intelligence
GIS
Technical Notes
Training
Tools
Special pages