Git Product home page Git Product logo

arcobjectscodegen's Introduction

ArcObjectsCodeGen

Generates C# code for ArcGIS geodatabase structure creation and data access objects in for in-memory unit tests.

You can put real data under unit test to verify your code.

You don't need a full integration test (well, leave it for the night build) and can run tests in memory (InMemoryWorkspaceFactoryClass).

CLI command samples

ArcObjectsCodeGen AO.FeatureClass ConnectionFile.sde FeatureClassName --output-folder generated-code

Generates code to create a feature class.

ArcObjectsCodeGen AO.Feature ConnectionFile.sde FeatureClassName --query "OBJECTID IN (1024, 1033)" --output-folder generated-code

Generates feature samples.

Notes

Just started, many TODO-s (most wanted: -namespace param).

Aquire ArcGIS license when running the test, release afterwards. You can use this class.

Run each test in STA thread. A single test will run fine in MTA but you may into issues when running multiple tests in parallel. For XUnit there is Xunit.StaFact by Andrew Arnott to solve this.

When running tests in STA thread avoid any ArcObjects COM object caching in static members as it may be created in another appartments. You'll get some COM interop exception.

License

Apache License Version 2.0, see LICENSE.

arcobjectscodegen's People

Contributors

r-pankevicius avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

akr8527

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.