17 votes

How can I discover the Python version in QGIS?

Looks like in QGIS v3.0, python v3 will be implemented: Help us to plan for QGIS 3.0 Updating Python 2.7 to Python 3: Currently we bundle in Python 2.7 in our windows installers and require 2.7 ...
artwork21's user avatar
  • 35.1k
17 votes
Accepted

Getting user's QGIS version using PyQGIS

In QGis < 3, qgis.core has a QGis object: >>> from qgis.core import QGis with various formats of the version string: >>> QGis.QGIS_VERSION u'2.18.5' >>> QGis....
Spacedman's user avatar
  • 63.9k
8 votes

How are unsaved/temporary edits stored during versioned editing?

In short, unsaved/temporary edits in ArcGIS geodatabase are stored in a table, specifically Delta tables also know as A (add) & D (delete) tables based on the information I'm aware of and ...
whyzar's user avatar
  • 12.1k
8 votes

Getting user's QGIS version using PyQGIS

You can call simply try this inside your plugin from qgis.core import * print QGis.QGIS_VERSION # will print 2.18.13 I dont know if the function is the same in QGIS 3.0 but for 2.18 this worked. ...
LaughU's user avatar
  • 4,176
7 votes
Accepted

What is Diffrent Between Version & Replica In ArcGIS Geodatabase

Versioning is for editing in a multi-user environment. Replication is for replicating your data in a multi-database environment. They are two very different things. In a multi-user environment the ...
Midavalo's user avatar
  • 29.7k
7 votes
Accepted

Spatial Data Version Control or Versioning Software

You are looking for geogig: http://geogig.org/ This is like "git for spatial data". There's a learning curve (as with all new software).
Spacedman's user avatar
  • 63.9k
6 votes

How can I discover the Python version in QGIS?

Another way to know what version of python you are using can be to run the following command on the python console that has QGIS: from platform import python_version print(python_version())
Leo Cardona's user avatar
  • 1,363
6 votes
Accepted

Creating ArcMap Versions using Arcpy

It fails because the version creation block is inside the loop over existing version. As it is now, the code loads the list of version, reads the name of the 1st one, and if the owner is different ...
JGH's user avatar
  • 41.8k
4 votes
Accepted

Changing ArcSDE version of *.mxd in ArcPy?

Have you considered using the arcpy ChangeVersion_management() tool? From the ESRI Help page: "Each input feature layer or table view will have its workspace modified to connect to the requested ...
Kevin's user avatar
  • 4,926
4 votes
Accepted

Unable to post edits to the default database when default version access is “protected”

The Protected version allows other users to create child versions and edit them, but they cannot (as you have discovered) post their edits back. The owner of the protected parent version can post the ...
Midavalo's user avatar
  • 29.7k
4 votes
Accepted

Python Script to generate log files with time and date and output events and error messages to the log files

You need to actually write to the file - currently all you're doing is writing to the console using print. Something like file.write() will write to your log file, or add a function that will write ...
Midavalo's user avatar
  • 29.7k
4 votes

Versioned to unversioned: How to undo edits in an edit session on an unregistered table

The best resource I've come across to provide an answer is Esri's Not registered as versioned or unregistering data as versioned There are no ways I'm aware of redoing/undoing edits in unregistered ...
whyzar's user avatar
  • 12.1k
4 votes
Accepted

How are unsaved/temporary edits stored during versioned editing?

Manually trace what the database does: Create a test table: In SQL Developer,: create table test_table ( field1 varchar2(255) ); In ArcCatalog: Register the table with the Geodatabase ...
User1974's user avatar
  • 1,132
4 votes
Accepted

File Geodatabase and Versioning

No, you cannot use versioning within a file geodatabase. As the second reference states, versioning is a capability of an Enterprise geodatabase (only a database can do the UNION ALL versioned ...
Vince's user avatar
  • 20.1k
4 votes
Accepted

Why do arcpy.GetCount_management and arcpy.ArcSDESQLExecute yield different row counts?

When querying the table of a versioned (or archive-enabled) feature class directly using SQL, your results would not be expected to reflect the current state of the feature class. You should use the ...
Son of a Beach's user avatar
4 votes
Accepted

Cannot figure out what is wrong with my code

Taking a look at your code I see four different errors: 1) You wrote: Date = datetime.date.today().strftime("%d%m%Y") However, you never import datetime. Add import datetime at the start of your ...
Marcelo Villa's user avatar
3 votes

Accessing information about ArcSDE historical markers via arcpy or SQL?

You should be able to get everything you need from the gdb_items and gdb_itemtypes tables. The following query should get you started on SQL Server. SELECT items.Name AS "Marker Name", ...
travis's user avatar
  • 1,910
3 votes
Accepted

Managing Conflicts in Scripted ArcGIS Reconcile of Versions?

Try changing your Conflict Definition from BY_OBJECT to BY_ATTRIBUTE arcpy.ReconcileVersions_management(workspace, "ALL_VERSIONS", "sde.DEFAULT", versionList, "LOCK_ACQUIRED", "NO_ABORT", "...
Midavalo's user avatar
  • 29.7k
3 votes
Accepted

How to make ArcMap aware of the changes that are made in base table?

Based on information in comments, it appears that you have been editing the base tables using SQL. You should not make changes to the base tables directly using your RDBMS software. You should use ...
Son of a Beach's user avatar
3 votes

Prevent row deletion in versioned tables using database privileges

Unfortunately, as you know you can only grant or revoke INSERT/UPDATE/DELETE privileges as a group when working with versions inside of a geodatabase. If you revoke the DELETE privilege at the RDBMS-...
Radar's user avatar
  • 10.7k
3 votes
Accepted

Python Script not working on versioned Feature Class

The key was using arcpy.da.Editor. The script would run, but the edits would not save without the Editor. This seems to be the key when working with versioned datasets. #Start edit session on ...
Fire GIS Guy's user avatar
2 votes

Version editing for Postgresql 9.2.4 / postGIS 2

If you are using Qgis there is a plugin for versioning using a postgres database https://plugins.qgis.org/plugins/FastVersion/ The plugin also allows to administrate user permissions on the versions. ...
Alfredo Garcia's user avatar
2 votes

ArcObjects IConflictsWindow3 not seeing version reconciliation conflicts

It took me longer than desired to leverage the OP along with the answer from @Ragi to get the conflicts window to populate, probably due to my obtuseness. For others in the same boat, here is a code ...
Trent's user avatar
  • 41
2 votes
Accepted

Visualizing a State Tree

GDBT is still the best tool out there. Yes it is a registry hack to install in releases past 10.0 but it is one registry entry and does not affect existing installations. The GDBT installer is hard ...
rrichards's user avatar
2 votes

Displaying specific version of geodatabase on AxImapControl using ArcObjects in C#?

Problem Solved pMap is Input arg MainMap and axMapControl1.ActiveView.FocusMap is Input arg ChildMap IObjectCopy esriObjectCopy = new ObjectCopyClass(); System.Object copyTarget = ...
alireza rahmaty's user avatar
2 votes
Accepted

Delta tables & base table

I am assuming that you're talking about ArcGIS. The base table would include the data that was originally loaded into the feature class. As you make edits which include adding, deleting, or changing ...
mkennedy's user avatar
  • 18.9k
2 votes
Accepted

How to get specific version (renedered with) of a feature layer in arcpy

You need to obtain the map layer object first - fl = arcpy.MakeFeatureLayer_management(fc,"out_fl") map_layer = fl.getOutput(0) map_layer.serviceProperties['Version'] >>> u'sde.DEFAULT' ...
Alex Tereshenkov's user avatar
2 votes
Accepted

Utilizing versioning with ArcGIS Collector

Prior to publishing the data to portal, I changes the table of contents to list by source. Then right clicked the database and clicked change version. I selected the version that I created for the ...
LandArch's user avatar
  • 2,201
2 votes

Is it possible to inherit a session in ArcGIS 10.0 through the Python window?

By the da module, I assume you mean the Data Access module and are using the search/update/insert cursor functions. If that is the case, there is another workflow that you can use for arcGIS 10.0 ...
yanes's user avatar
  • 2,186

Only top scored, non community-wiki answers of a minimum length are eligible