Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web updates for Porter issue: Remove Utah Metro Townships from SGID #352 #2869

Merged
merged 9 commits into from
Oct 22, 2024
561 changes: 281 additions & 280 deletions public/_redirects

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions scripts/utilities.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
response = await ky(url, {
throwHttpErrors: false,
redirect: 'manual',
timeout: 15000,
headers: {
'User-Agent':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36',
},
});
} catch (error) {
return {
Expand Down Expand Up @@ -144,9 +149,5 @@
}

export function slugify(name) {
return changeCase.kebabCase(
name
.toLowerCase()
.replace('\'', '')
);
return changeCase.kebabCase(name.toLowerCase().replace("'", ''));
Fixed Show fixed Hide fixed
}
4 changes: 1 addition & 3 deletions src/content/blog/2021-04-26-introducing-ugrcodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cover_image_alt: UGRCodes in Salt Lake County

import Contacts from '@components/page/Contacts.astro';

Are you tired of fighting with esoteric municipal FIPS codes? Have you even tried using them? It's not easy and it's certainly not intuitive. Five digit integer codes with minimal consistency and continuity across space, and require a lookup table to understand, don't lend themselves as a simple identifier for a municipality. As a solution, UGRC is implementing a new attribute field called the UGRCode (get it?) in our [Municipal Boundaries](https://opendata.gis.utah.gov/datasets/utah-municipal-boundaries) and [Metro Townships](https://opendata.gis.utah.gov/datasets/utah-metro-townships) data. The full list of UGRCodes can be found [in this spreadsheet](https://docs.google.com/spreadsheets/d/19cwbXoewTynDDv_fJ3hGekD4VbLef5VxrnSJfRx8My8/edit#gid=2028111876).
Are you tired of fighting with esoteric municipal FIPS codes? Have you even tried using them? It's not easy and it's certainly not intuitive. Five digit integer codes with minimal consistency and continuity across space, and require a lookup table to understand, don't lend themselves as a simple identifier for a municipality. As a solution, UGRC is implementing a new attribute field called the UGRCode (get it?) in our [Municipal Boundaries](https://opendata.gis.utah.gov/datasets/utah-municipal-boundaries) and data. The full list of UGRCodes can be found [in this spreadsheet](https://docs.google.com/spreadsheets/d/19cwbXoewTynDDv_fJ3hGekD4VbLef5VxrnSJfRx8My8/edit#gid=2028111876).

![UGRCodes in Salt Lake County](../../images/pillar-blog/2021-04-26-introducing-ugrcodes/20210422_ugrcodes.png 'UGRCodes in Salt Lake County')

Expand All @@ -35,8 +35,6 @@ In coming up with the 3-letter codes we tried to follow a few guiding principles
- E.g., Salt Lake City (SLC), West Valley City (WVC), Bear River City (BRC)
- Distinguish municipalities with similar names or beginnings as much as possible
- E.g., Kanab (KNB), Kanarraville (KNV), Kanosh (KNS)
- Metro Townships have "MT" in their code - or just "T" if new ones conflict with current codes
- E.g., Emigration Canyon (EMT), Kearns (KMT), Magna (MMT)

#### Future Enhancements

Expand Down
7 changes: 0 additions & 7 deletions src/data/downloadMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ export const dataPages: DownloadMetadata = {
openSgid: 'boundaries.zip_code_areas',
layerId: 0,
},
'Utah Metro Townships': {
itemId: '103c6dc6764747079919c20927f40a9f',
name: 'Utah Metro Townships',
featureServiceId: 'UtahMetroTownships',
openSgid: 'boundaries.metro_townships',
layerId: 0,
},
'US States': {
itemId: '221d727bbc044ce99dc05fbce913b4a1',
name: 'US States',
Expand Down
3 changes: 1 addition & 2 deletions src/pages/_partials/BoundaryDescription.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<p>
The native spatial reference for this dataset is UTM Zone 12N, NAD83 (0.01 meter coordinate precision). There are no
constraints or warranties with regard to the use of this dataset. Users are encouraged to attribute content to: State
of Utah, SGID. The metro townships boundary dataset is maintained by UGRC in partnership with state and local
government.
of Utah, SGID.
</p>
<p>The boundaries are revised as documents are filed with the Lt. Governor's Office.</p>
89 changes: 0 additions & 89 deletions src/pages/products/sgid/boundaries/metro-townships.astro

This file was deleted.

12 changes: 5 additions & 7 deletions src/pages/products/sgid/boundaries/municipal.astro
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const page: IPageMetadata = {
<Fragment slot="summary">
<p>
Municipal Boundaries is a multi-purpose statewide dataset of municipal boundaries for cartography and approximate
boundary identification.
boundary identification. This data is updated on a weekly basis.
</p>
</Fragment>

Expand All @@ -96,17 +96,17 @@ const page: IPageMetadata = {
>Lieutenant Governor Municipal Certifications website.</CardWithPopularLink
>
<CardWithPopularLink
title="Utah Municipalities and Metro Townships Boundaries"
title="Utah Municipal Boundaries"
href="https://www.arcgis.com/home/webmap/viewer.html?webmap=e2e0430f97114c3aa958262fa5e3e6ed"
>Online map viewer of Utah Municipalities and Metro Townships Boundaries.</CardWithPopularLink
>Online map viewer of Utah Municipal Boundaries.</CardWithPopularLink
>
<CardWithPopularLink
title="State of Utah Notary"
href="https://demosite.utah.gov/gov-entity/boundary-certifications-by-year/"
>State of Utah Notary boundary certifications by year.</CardWithPopularLink
>
<CardWithPopularLink
title="Utah municipality modifications map"
title="Utah Municipality Modifications Map"
href="https://www.arcgis.com/home/webmap/viewer.html?webmap=c5ab7e0fcd514f1a9db6b8dad55bba63"
>Online map viewer of municipality change polygons by year.</CardWithPopularLink
>
Expand All @@ -118,9 +118,7 @@ const page: IPageMetadata = {
<CardWithSmallLink title="Counties" href="/products/sgid/boundaries/county/"
>Utah county boundaries</CardWithSmallLink
>
<CardWithSmallLink title="Metro townships" href="/products/sgid/boundaries/metro-townships/"
>Metro township boundaries</CardWithSmallLink
>
<CardWithSmallLink title="Utah Parcels" href="/products/sgid/cadastre/parcels/"> Utah Parcels</CardWithSmallLink>
<CardWithSmallLink title="Zip codes" href="/products/sgid/boundaries/zip-codes/"
>Zip codes in Utah</CardWithSmallLink
>
Expand Down