33

I will be writing scripts for ArcGIS Desktop in Python with ArcPy.

Is there a community or open source project where code and models can be shared?

  • 3
    resources.arcgis.com/en/communities/python (was ArcScripts pre2011) – Mapperz Oct 15 '12 at 18:47
  • 2
    You could also create a GitHub or Google Code repository, both of which are free for public open source projects. – blah238 Oct 15 '12 at 19:29
  • 5
    Welcome to the ArcGIS community, and many thanks for thinking about sharing your work before you've even started! – Stephen Lead Oct 15 '12 at 22:57
  • 1
    Yes, they were an awesome resource. I think ArcScripts still exists - or at least I can still go there when Google turns up a result, but I don't know if new code is being added. There is something called EDN (Esri Developer Network) that may be worth checking out. – Michael Stimson Jun 19 '14 at 22:54
  • 1
    most likely arcgis.com/home/… might be better to ask on GeoNET. – Mapperz Oct 11 '17 at 17:13
24

I would probably just put it in GitHub until you really know what you want to share. Even ESRI started jumping on this bandwagon after GeoIQ acquisition.

  • 8
    +1 I suspect code in github would be found more easily by Google searches than code in ArcGIS Online. – Kirk Kuykendall Oct 15 '12 at 19:46
  • 2
    +1 Also do avoid distributing your code the way its done in Arc Scripts or Code Galleries. Read the distutils docs [docs.python.org/distutils/index.html] or just follow the examples of other open source Python packages and make it easy for users to "easy_install URL" or "pip install URL", where URL is the URL of the tarballs or zip archives that GitHub generates for your source. – sgillies Oct 15 '12 at 20:16
  • 1
    +1 for github, also allows others to easily fork or contribute directly(with your permission) to your scripts. – SaultDon Oct 15 '12 at 20:47
  • 3
    +1 for github, bitbucket, whatever over ArcGIS Online. With online DVCS, anyone can just go and view it, fork it, download it, whatever without having to have an account, log in, download it - just so they can even see the code. – Chad Cooper Oct 15 '12 at 22:39
  • 1
    Wow, I had not heard about ESRI moving to GitHub. That's great news! – LarsH Oct 16 '12 at 13:30
11

The ESRI community for this used to be called ArcScripts, then ESRI closed that to new submissions in favor of their Code Galleries, and now with the release of ArcGIS 10.1 (presumably the version you have if you just acquired it) they are transitioning from the Code Galleries to ArcGIS Online. There's a set of instructions here for moving your things from the old Code Galleries to the new system, if you just ignore the first step (downloading your existing stuff), the rest of the instructions will tell you how to upload code, tools, maps, etc. and share them with other ESRI users. You'll need a (free) ArcGIS online account.

7

Esri host free to download user created code, models and applications on their ArcGIS Code Sharing web site, where you can:

Search, browse, and use code, scripts, models, add-ins, widgets, and more.

It is the successor to ArcScripts and ArcGIS Code Galleries.

6

ArcPy Cafe is a good place to go for some scripts and lots of tips:

Get all your ArcGIS Python Recipes here!

2

As already mentioned Github is a great choice. It certainly has the largest community.

I'd also have a gander at BitBucket. I find the Mercurial (hg) revision control tools easier to understand and use than git, which Bitbucket supports too. (It helps that Mercurial is naturally aligned with python, the community it grew out of and language it is written in. Helps me anyway ;-)

Whatever your choice, the code branching/merging/sharing alone of distributed version control and hosting is worth its weight in gold plated electrons (to reach very far for a badly strained metaphor...), let alone the built in issue tracking and wiki pages and vendor independence.

1

One of the "official" code sharing site from ESRI is http://codesharing.arcgis.com/ . This is more for tools that for scripts, because scripts are usually specific to a single workflow and environment, and therefore useless to share.

For Python scripts (IMHO more easy to share than models), you could also look ar Arcpy Café where you will find a lot of useful tips and examples.

As mentioned by @Mapperz, you can also find some stuff on GeoNET

Last but not least, you can search this (GIS SE) site with or tags and this will give you a large number of code subsets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.