CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 01:47:32 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"1e077a50009fa288c26523903efc664c"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=JtJaD8PER1yn1sC4VCNURaCJEBesWwbO5I5S2VQWioDzUrz4y0qdvcf6FuLB9Icdy5Kb46xmov8gIVtF%2Bt1uThICDfCqJ1q2TUiejcemtq%2BIM6beAYWghxlCOJsvjZgxNTPSOVACNJSI96EHBiNW82w1DLgw58VorgDHpmq3r7jOErG8gZ5%2F5AFMXk94UaOuJWm1cRhBacQcL%2Fj0cw%2Bq7QMTbBhWqZRhIsiFxJqe3GSvkl%2FboHNHs5IgEh9YZWzn0T%2FZMMNxFAwNo4Gs%2FXUo3A%3D%3D--nZi2cVHFsYfXH0JI--RmtQiH4TWtcDBJ8cFyDOfQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1424039452.1760233651; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 01:47:31 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 01:47:31 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A4D0:3FDFA5:B34A9F:EFD73D:68EB08B3
GitHub - iamcal/clustr: Mirror of code.flickr.com: clustr
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 0
Mirror of code.flickr.com: clustr
License
iamcal/clustr
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
clustr - construct polygons from tagged points -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- written by Schuyler Erle <schuyler@nocat.net> (c) 2007-2009 Yahoo! Inc. Overview -------- Clustr takes a text file containing longitude/latitude points, tagged with a bit of text, and attempts to generate minimal polygons that "cover" those points, using an "alpha" parameter to determine the notion of "coverage". The polygons are written to an ESRI Shapefile, suitable for use in GIS software. Building clustr --------------- You will need to have the GDAL library (https://www.gdal.org/) installed, with OGR support enabled, for writing the Shapefiles. You will also need the CGAL library (https://www.cgal.org/) installed. Depending on your system configuration, you may need to edit the Makefile to point to the location of the GDAL and CGAL libraries and C/C++ headers. To build clustr, simply run 'make'. The 'clustr' executable is self-contained (aside from shared libraries) and does not rely on any supporting files. The code has been tested with GCC 3.4 and 4.2. Using clustr ------------ $ clustr [-a <n>] [-p] [-v] <input> <output> -h, -? this help message -v be verbose (default: off) -a <n> set alpha value (default: use optimal value) -p output points to shapefile, instead of polygons If <input> is missing or given as "-", stdin is used. * The input file should be formatted as: <tag> <lon> <lat>\n * The input file *must* be sorted. Piping it through sort(1) will suffice. * Tags must not contain spaces. If <output> is missing, output is written to "clustr.shp". The output is always an ESRI Shapefile. The -p option simply converts the input file to a Shapefile containing the input points. This can be useful for comparing the polygon output of clustr to its input dataset in a GIS browser. The -a option sets the value of "alpha", which in turn determines the convexity of the output polygons. Larger values make more convex polygons, smaller values make less convex polygons. Smaller values will also filter out outlying points, which may be what you want. Omitting -a or setting it to zero will cause clustr to use the CGAL library's idea of "optimal alpha", which, if there are significant outliers in the input file, may not actually be what you want. In general, we recommend starting with a value of 0.001. Bugs ---- Clustr does not use an exceptionally sophisticated algorithm for extracting polygons from the generated alpha shape, with the result that on occasion improper or self-intersecting polygons get generated. This can confuse GIS programs that expect better behaved data sets, and ought to be fixed someday. Also, the total count of points input is written to every shape record, which will be wrong if there are multiple components for a given input tag. This could be fixed by testing inclusion of each point after the polygons are constructed, which would lengthen runtime. Cost/benefit? Not sure. License ------- Copyright (c) 2007-2009 Yahoo! Inc. All rights reserved. This code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL), version 2 only. This code is distributed WITHOUT ANY WARRANTY, whether express or implied. See the GNU GPL for more details (https://www.gnu.org/licenses/gpl.html) AS A SPECIAL EXCEPTION, YOU HAVE PERMISSION TO LINK THIS PROGRAM WITH THE CGAL LIBRARY AND DISTRIBUTE EXECUTABLES, AS LONG AS YOU FOLLOW THE REQUIREMENTS OF THE GNU GPL VERSION 2 IN REGARD TO ALL OF THE SOFTWARE IN THE EXECUTABLE ASIDE FROM CGAL. - Fin -
About
Mirror of code.flickr.com: clustr
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.