Quantcast
Channel: Forums - Geodatabase & ArcSDE
Viewing all 1584 articles
Browse latest View live

Autodesk Vault 2012 or SDE

$
0
0
I like to learn about Autodesk Vault 2012 and Esri integration? If a engineering company wants to become more GIS-centric, should they just acquire ArcGIS for Server (SDE) instead of Autodesk Vault 2012? As far as I understand, once the CAD files are loaded into the enterprise GDB, and versions are created, CAD users can work with them within their CAD environment and even make modifications (edit processes), right?

Can somebody enlighten me?!

Multi-Versioned Views - Updgade from 10.0 to 10.1

$
0
0
We are going to upgrade our SQLServer SDE databases to 10.1 I understand that in 10.1, the mult-versioned view is now called a versioned view and that it is created when a database is versioned in 10.1 and not only by command line as in 10.0

I also understand that we can create the new versioned views on a versioned database if they don't exist using 10.1 utilties, but if we already have them in a 10.0 SDE database, do we need to recreate them after migrating or will the existing multi-versioned views function as before?

Thanks,

Mele

Arcpy does not execute “CopyFeatures_Management” to write a featureclass to an ArcSDE

$
0
0
I have some problems with my Python script. The script gets an JSON with different information about images. The information includes general information about images and also the gps position of them. Wih this information a featureclass should be generated that shows the location of the pictures as point geometry. The other information should be stored in the attribute table.

The script runs very well and is already deployed on ArcGIS Server 10.1. Now the problem is, that at the first start the featureclass has to be created. As the featureclass consists of about 92 attribute fields the process of creating the featureclass is done with the option "in memory" as this option guarentees a fast creation of the featureclass - it is at least faster then directly running arcpy.addfield_management() on a feature class that was created the other way.

The disadvantage is that I want to store the featureclass permanently in a ArcSDE geodatabase. For this I have to run one of the tools arcpy.featureclasstofeatureclass_conversion or arcpy.copyfeatures_management. If the script is trying to run on of these lines I get the error message 000210 that is telling me that the output cannot be generated.

The connection to the ArcSDE works fine, this cannot be the problem. I have full write and read access. Does anybody know what the error message is about and what could be one solution?

The script works fine if I am not using the "in memory" option for the feature class. So this error must have his origin in the "in memory" option. The log file of the Database gives only an general error message:

"Oracle : ORA-3137[3149]".

Configure to use single index tablespace (oracle)

$
0
0
Hi Forum,

We got problem on these, we have created single index tablespace and we would like to configure with each GeoDatabase instead of using default tablespace for their index.

Current setting in DBTUNE is Eg. ADM_GEO GeoDatabase is using TS_GEO for data storage and for index is also same TS_GEO, but my requirement is index should be store in TS_IDX tablespace.

Could someone suggest me with DBTUNE parameter and or best setting for his setting for this situation.

Thanks,

F_STORAGE Parameter Not Found

$
0
0
Dear All,

Is there any parameter called F_STORAGE(and some more listed below) in DEFAULTS keyword in 10.1
I found them in SDELOB keyword.

B_INDEX_SHAPE "PCTFREE 0 INITRANS 4
# TABLESPACE <default index tablespace name>
NOLOGGING"
F_STORAGE "PCTFREE 0 INITRANS 4
# TABLESPACE <default feature table tablespace name>
LOB (POINTS) STORE AS (
# TABLESPACE <lob segment tablespace_name>
ENABLE STORAGE IN ROW CHUNK 8K RETENTION CACHE)"
F_INDEX_FID "PCTFREE 0 INITRANS 4
# TABLESPACE <default index tablespace name>
NOLOGGING"
F_INDEX_AREA "PCTFREE 0 INITRANS 4
# TABLESPACE <default index tablespace name>
NOLOGGING"
F_INDEX_LEN "PCTFREE 0 INITRANS 4
# TABLESPACE <default index tablespace name>
NOLOGGING"
S_INDEX_SP_FID "PCTFREE 0 INITRANS 4
# TABLESPACE <default index tablespace name>
NOLOGGING"

My Questions are
1. As we are using the SDEBINARY Geometry type. Do i need to copy them to default ?
2. F_STORAGE parameter has entry LOB(POINTS). as it seems specific for SDELOB ? what could be F_STORAGE for SDEBINARY ?

Thanks in advance
-Abdullah Saleh

C API + SE_WCHAR

$
0
0
Hi,

Need a C API (ArcSDE 9.3) code snippet to convert from SE_WCHAR to CHAR *. I have a code written C/C++ which stores data read through streams from street layers. The existing code reads from Teleatlas layers. We have now moved to Navteq Layers. In Navteq the columns have been defined as NVARCHAR2. Hence if I handle the same way as I handle VARCHAR2, the value is getting stored as Blank. Below is the code I have.

m_Data = (char *)malloc (m_iDataLength);
m_RawData = (char *)malloc (m_iDataLength);

.........

case SE_STRING_TYPE:
case SE_NSTRING_TYPE:{
strcpy (m_Data, (const char *) m_RawData);
if (m_rc != SE_SUCCESS) return GetError (NULL, m_pStream);
break;
}
Regards,
David

Cannot edit Feature Service using SQL 2012 RDBMS in ArcGIS Desktop

$
0
0
[My apologies for the cross-post as I originally posted this thread in the Server General section, but feel that perhaps it may be more appropriate to be placed here].

I don't want to sound alarmist, but this has the potential to be a very big problem, and so far things are adding up.

A while back a support tech logged the following bug: #NIM087819 Feature service shows no editable layer error when the feature class was from workgroup sde (sqlexpress) with OS authentication . Looking back on it, that was a 2012 instance (Express).

So now getting SQL Server 2012 Standard up and running (Enterprise) I spent some time with both the SDE/Geodata team and Server Implementation. When editing a feature service with a SQL 2012 RDBMS in you in ArcGIS Desktop receive an error 'no editable workspace'. However, when editing via arcgis online, the feature service edits as expected. All permission/privileges have been verified as correct.

This got one of the techs thinking about this bug: NIM085096 Uploading mobile edits to an SQL 2012 database fails with Mobile 3.0, 3.1, and 10.1.1

The correlation here being that both ArcGIS Desktop and Mobile access the data via SOAP, while the ArcGIS online was using the REST endpoint. I'm starting to think that 2 Bugs are indeed related. If there is indeed a bug preventing SOAP based edits and feature services are not going to work for Desktop...then this is a big issue.

Searching the web this morning I attempted to gain a little more insight into SOAP and SQL 2012. This subject is generally out of my league, but what i found was very unsettling:
http://vikasrajput.wordpress.com/201...http-endpoint/
http://social.msdn.microsoft.com/For...-f4d55dea8b67/
http://msdn.microsoft.com/en-us/library/cc645577.aspx

Again, I'm quite ignorant to the means by which server/sde handles the editing transactions so I can only hope the above isn't implying what I think its implying (no fix). Even then, not being able to edit a feature service is a big deal.


I expect to hear a follow-up on this soon, and will post any additional info I receive.

Importing to Geodatabase Problem

$
0
0
Hi,

I recently started a new job and am in need of importing new feature classes to existing geodatabases. The problem I am running into is that I am not the owner of any of the databases we have, and from what I have read, only the owners of the database can add feature classes to it. I know that the person in the position before me was able to add files to the database and he was not the owner of it. Do I have to contact the owner and have him grant me permission to add feature classes, or is there some other method to placing feature classes onto the database?

Any help would be greatly appreciated.

Chris

Performance Issue (I/O bound) when processing geometric network

$
0
0
I have two machines in local area network: one installed with enterprise geodatabase (running ArcSDE service), and the other machine as a client. The client machine connects to the enterprise geodatabase, retrieve feature classes and process the geometric network.

The application basically goes through each edge of the geometric network and retrieves their start and end junctions, does a little processing and then insert the information to a local Oracle database on client machine.

As I observe, the client machine runs constantly under 10% CPU usage. So it seems to be an I/O bound issue. I tried multi-threading which creates several or lots of connections to SDE server, and tried to trieve data in parallel. But it doesn't do much better and CPU usage is constantly under 15%.

Here are some code snippet for processing the data (in VB.NET):

Private featureWorkspace As IFeatureWorkspace
Private netColl As INetworkCollection
Private geometricNetwork As IGeometricNetwork
Private netElements As INetElements
Private netTopology As INetTopology

netColl = featureWorkspace.OpenFeatureDataset("xxx.DISTRIBUTION")
geometricNetwork = netColl.GeometricNetworkByName("xxx.DISTRIBUTION_NET")
netElements = geometricNetwork.Network
netTopology = geometricNetwork.Network

'Get the edge elements
Dim elements As IEnumNetEID = netElements.GetEIDs(clsid, objid, esriElementType.esriETEdge)
elements.Reset()

For i As Integer = 1 To elements.Count
Dim elementClassID, elementOid, elementSubid, fromJcnEid, toJcnEid As Integer
Dim edgeEid As Integer = elements.Next()

netElements.QueryIDs(edgeEid, esriElementType.esriETEdge, elementClassID, elementOid, elementSubid)
netTopology.GetFromToJunctionEIDs(edgeEid, fromJcnEid, toJcnEid)

'individual segment and it's to/from node geometries
Dim segmentGeometry As ICurve = geometricNetwork.GeometryForEdgeEID(edgeEid)
Dim fromPoint As ESRI.ArcGIS.Geometry.IPoint = geometricNetwork.GeometryForJunctionEID(fromJcnEid)
Dim toPoint As ESRI.ArcGIS.Geometry.IPoint = geometricNetwork.GeometryForJunctionEID(toJcnEid)

Next

Does any one know I can overcome the I/O bound issue? Anything I can configure on ArcSDE server to allow faster mutiple connections? Or any code improvement in above can boost performance?

Thanks!

Performance Issue (I/O bound) when processing geometric network

$
0
0
I have two machines in local area network: one installed with enterprise geodatabase (running ArcSDE service), and the other machine as a client. The client machine connects to the enterprise geodatabase, retrieve feature classes and process the geometric network.

The application basically goes through each edge of the geometric network and retrieves their start and end junctions, does a little processing and then insert the information to a local Oracle database on client machine.

As I observe, the client machine runs constantly under 10% CPU usage. So it seems to be an I/O bound issue. I tried multi-threading which creates several or lots of connections to SDE server, and tried to trieve data in parallel. But it doesn't do much better and CPU usage is constantly under 15%.

Here are some code snippet for processing the data (in VB.NET):

Private featureWorkspace As IFeatureWorkspace
Private netColl As INetworkCollection
Private geometricNetwork As IGeometricNetwork
Private netElements As INetElements
Private netTopology As INetTopology

netColl = featureWorkspace.OpenFeatureDataset("xxx.DISTRIBUTION")
geometricNetwork = netColl.GeometricNetworkByName("xxx.DISTRIBUTION_NET")
netElements = geometricNetwork.Network
netTopology = geometricNetwork.Network

'Get the edge elements
Dim elements As IEnumNetEID = netElements.GetEIDs(clsid, objid, esriElementType.esriETEdge)
elements.Reset()

For i As Integer = 1 To elements.Count
Dim elementClassID, elementOid, elementSubid, fromJcnEid, toJcnEid As Integer
Dim edgeEid As Integer = elements.Next()

netElements.QueryIDs(edgeEid, esriElementType.esriETEdge, elementClassID, elementOid, elementSubid)
netTopology.GetFromToJunctionEIDs(edgeEid, fromJcnEid, toJcnEid)

'individual segment and it's to/from node geometries
Dim segmentGeometry As ICurve = geometricNetwork.GeometryForEdgeEID(edgeEid)
Dim fromPoint As ESRI.ArcGIS.Geometry.IPoint = geometricNetwork.GeometryForJunctionEID(fromJcnEid)
Dim toPoint As ESRI.ArcGIS.Geometry.IPoint = geometricNetwork.GeometryForJunctionEID(toJcnEid)

Next

Does any one know I can overcome the I/O bound issue? Anything I can configure on ArcSDE server to allow faster mutiple connections? Or any code improvement in above can boost performance?

Thanks!

SQL View Performance Issue

$
0
0
Hi- I have two databases set up on a test and a production server. Both are running SQL Server 2008 SP2. Both of th10.1 SDE databases have been configured identically to one another and contain 2 tables (A & B) and a related view that selects all the data from A or B. The view definition is switched depending on which table has been updated last. The tables have a Geometry field and have been registered with SDE.

On the test database I am able to add the view to the map and performance is great when identifying points. On the production server the performance is terrible when identifying points. Comparing the query traces shows that the production DB is clusetered index scan while the test DB is actually performing a much more effecient clustered index seek. I am not able to identify why the difference. I also notice that the test DB is executing select statements on the lineage_name, state_id, and lineage_id tables and the production DB is not. Any ideas?

Update: I just looked at the SDE_States & SDE_State_Lineages tables to compare test to prod. The test DB has these tables populated with many recods while the test DB only has 1 record in these tables.

Shapefile

$
0
0
Hi

I have uploaded a CSV file to arc map with all my relevant data i need then joined it to a shapefile for geographical reference. I now need to export it as a shapefile as i'm going to be using it in Geoda. I can do this but when I open it up in Geoda and also in ArcMap it has renamed my column titles to 1, 2, 3, 4, etc instead of keeping the original names.

Does anyone know how to get the original column titles back and kept within a shape file?

Thanks

Permissions to create or upgrade a geodatabase in Oracle

$
0
0
http://help.arcgis.com/en/arcgisdesk...0000002v000000

According to the documentation on privileges

ALTER ANY INDEX
CREATE ANY INDEX
CREATE ANY TRIGGER
CREATE ANY VIEW
DROP ANY INDEX
DROP ANY VIEW
SELECT ANY TABLE

These permissions are needed for the creation and installation of ArcSDE geodatabase.

Is it possible that For those *_any_* privileges, can we limit access? (removed all the any so as to restrict access only to own schema)?

Restore an ArcSDE database backup to a database with a different name?

$
0
0
I am using ArcSDE 10.1 and PostgreSQL 9.1/PostGIS 2.0. I have backups of a production database that I'd like to use for a development database. The name of the development database appends "_dev" to the database name to avoid confusion. However, when I restore the production backup to the development database, I receive the following error on connection:

Code:

2013-03-05 08:07:28 PST ERROR:  cross-database references are not implemented: "cvag.sde.sde_object_ids" at character 21
2013-03-05 08:07:28 PST QUERY:  SELECT base_id FROM cvag.sde.sde_object_ids WHERE id_type = i_id_type FOR UPDATE
2013-03-05 08:07:28 PST CONTEXT:  PL/pgSQL function "sde_get_primary_oid" line 15 at FOR over SELECT rows
2013-03-05 08:07:28 PST STATEMENT:  SELECT cvag_dev.sde.SDE_get_primary_oid ($1,$2)

Which leads me to believe that one or more functions in the sde schema is defined with database names as a reference and restoring to a database with a different name doesn't work.

I have also tried creating the enterprise geodatabase first and then restoring a backup of the production database that excludes the 'sde' schema. The connection works, but now my 800+ feature classes are not registered with the geodatabase.

Are there any best practices published for working with production and development databases that might help me here?

Thanks.

Geodatabase Replication - Feature class source file path

$
0
0
Hello All,

My company is looking into using geodatabase replication to manage our base data between our 3 office locations. We create many figures (mxds) for our projects with this base data and need the feature class source to be the same for all three locations. Does geodatabase replication allow the file paths to match - we don't want to have to relink the geodata every time a different office location opens the mxd. (We will be working with two-way replica type)

Also since this is the first time setting up geodatabase replication - any tips and tricks would be greatly appreciated.

Thanks in advance.

Georeferenced maps with point data connected to excel data.

$
0
0
I am working on a project where I am taking point data that is hand drawn onto maps and creating a database. Each point has 7 different attributes associated with it that I have entered into an excel spreadsheet but don't have a X/Y. I am planning on scanning the maps (they were created in Arc so it will be simple to georeference) and selecting the point data on the scanned images. My question is how do I link my excel data for each data point with the point that I can select in my georeferenced map? In other words, how do I structure an attribute table/geodatabase to meet my needs for this?

Updating Feature Datasets with new data

$
0
0
Hi all,
I've got a bit of a curve ball here which I was hoping you might be able to help me out with.

I have my basemap feature classes (i.e. Streets, Property Boundaries, Address points, and so on) configured with their naming conventions, aliases etc...

I've added the GlobalID, enabled Versioning as well as Archiving.

I've just deployed out first SDE GDB.

Each quarter, most of these datasets receive an update.

I want to be able to remove all features within a feature class and re-populate with the new data.
Theory being, we can see property boundaries as they were at any given point in time in relation to our underground asset.

With the exception of opening ArcMap, select all, delete from the existing and then selecting all features within the new dataset, copy and pasting the data in... Is there any easier way in which to do this?

Some of the datasets have over 3,000,000 records and i'm finding it's taking a considerable amount of time to copy the data across... That's if my system doesn't crash?

I'm tempted to run the updates on the ArcGIS server as it's closer to the SDE GDB, but I was just curious as to if anyone else has come across a similar issue and what their solution may have been?

Cheers,

Cory

Very slow performance on adding global ID

$
0
0
Hi,

we have a largish SDE-Database (various FCLs with millions of ST_GEOMETRY features) on ArcSDE 10.5, Oracle 11.2.0.3, running on WS 2008 R2 physical machine with local disk.

We're trying to add global IDs before duplicating the database with expdp/impdp and setting up geodatabase replication. We're using the ArcCatalog context menu on a feature dataset, and performance is simply terrible:

Adding global IDs to a single FCL of about 2.4 mio features takes over 2 hours. Looking at Oracle AWR, I see that the actual update statement on the FCL takes about 4 minutes of CPU time, there is no significant activity either on the client or database server, Oracle writes about 300 KB/s, the whole system, including the ArcCatalog process, is basically idle.

Any idea what's going on here?

Thanks very much, Martin

IDW not working on Spatial Views : Arc Editor 10.1

$
0
0
Hi All,

I am trying to execute IDW on spatial view(Point features- Oracle DB) but tool execution fails with following errors

Code:

000581 : Invalid parameters
 000867 : contains invalid cell size or dataset

I export the same view's data into feature class and successfully execute the tool.Raster is being generated without any error.

Is there any issue to run the IDW directly on spatial view? or need to do any additional configuration on view?

Any help would be appreciated.

Thanks,
Prashant

Raster Geodatabase not connecting

$
0
0
I created a new enterprise geodatabase yesterday for our raster images. I loaded a mosaic dataset into the geodatabase and then disconnected. When I tried to connect to the geodatabase today, it says "database connection failed". It doesn't specify a reason for not connecting. Does anyone know how to fix this? Or should I delete the geodatabase and start over? :( please let me know.

Thanks,
Julia
Viewing all 1584 articles
Browse latest View live