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 ...
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....
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 ...
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. ...
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 ...
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).
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())
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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",
...
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", "...
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 ...
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-...
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 ...
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.
...
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 ...
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 ...
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 = ...
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 ...
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'
...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
versioning × 256enterprise-geodatabase × 162
arcgis-desktop × 57
arcpy × 57
arcgis-server × 30
editing × 28
esri-geodatabase × 23
arcgis-10.1 × 19
arcgis-10.2 × 19
oracle-dbms × 18
arcgis-10.0 × 17
sql-server × 17
arcmap × 16
reconcile × 15
arcgis-10.3 × 14
arcobjects × 13
arcgis-pro × 13
python × 12
qgis × 9
postgresql × 9
arcgis-9.3 × 9
postgis × 8
oracle-spatial × 8
replication × 6
archiving × 6