POST
|
Hi, Thanks for the advise but it didn't work. It also made it so the LayerList no longer can toggle the visibility of it. Any suggestions? const VBA = new FeatureLayer({
url: "https://cdw.maps.va.gov/server/rest/services/Map/FeatureServer/6",
visible: true
});
map.add(VBA);
const VBAsymbol = VBA.renderer.symbol.clone();
symbolUtils.renderPreviewHTML(VBAsymbol, {
node: document.getElementById("VBA_Img"),
size: 8
}); <span id="VBA_Text">VBA Regional Offices</span><img id="VBA_Img" /><br /> Thanks
... View more
02-14-2022
01:28 PM
|
0
|
1
|
445
|
POST
|
Hi, I am looking for a method that gets the FeatureLayer symbol URL either from the Feature Service itself or the FeatureLayer. My goal is to use that url to change the src on a <img> value that I use in a different part of my web application. I haven't been able to find a Javascript 4.x method that returns this. Can anyone point me in the right direction const VBA = new FeatureLayer({
url: "https://gis.va.gov/server/rest/services/PROJECTS/VBA_VHA_NCA_Regional_and_Major_Facilities/FeatureServer/0",
title: "VBA"
});
document.getElementById("VBA_Img").src=VBA.renderer.symbol.url; <span id="VBA_Text">VBA</span><img id="VBA_Img" /><br />
... View more
02-09-2022
10:02 AM
|
0
|
3
|
492
|
POST
|
Check out X-ray for ArcCatalog (https://www.arcgis.com/home/item.html?id=9ea218ff575f4a5195e01a2cae03a0ae). It allows you to export your database schema to HTML web page that lists all feature classes and their attributes.
... View more
03-19-2019
05:51 AM
|
1
|
0
|
522
|
POST
|
What you script is doing is comparing the value with the where clause. To the computer it looks something like this. If ('2/23/2019' == "BETWEEN timestamp '2/23/2019 00:00:00' AND timestamp '2/23/2019 23:59:59') do this This doesn't make much sense. You need to rewrite your if state to use > and < signs. You also need to use the date object or convert it to an integer to work since string won't compare correctly. If ('2/23/2019' < '2/23/2019 00:00:00' AND '2/23/2019' > '2/23/2019 23:59:59') do this
... View more
02-22-2019
10:10 AM
|
1
|
0
|
521
|
POST
|
I had this happen to me once. The issue was related to a relationship class we had. One table had orphan records which the other did not have a counterpart for. This caused the sync on the replica to spin and spin until it finally just timed out. When I deleted the orphans, it starting working again without issue. ESRI support wasn't much help here and I just had to do trial and error to until I found the issue. I have heard this also can happen if you have a bad geometry value in one of the records.
... View more
02-21-2019
12:59 PM
|
1
|
0
|
495
|
POST
|
When you load the mxd in ArcMap what type of database authentication are you using? If you are using OS authentication, your personal account might have access to the data while the account ArcGIS server has stored for that database might not.
... View more
02-07-2019
01:24 PM
|
1
|
2
|
750
|
POST
|
There is also a gap in help on examples to for doing back end development. There is SQL Server and Oracle but nothing else. Example: Resolving domain codes to description values using SQL—Help | ArcGIS Desktop As for which is better. We use both SQL Server and Postgres in our office. I find almost everything database management is easier with SQL Server. In addition, the Always On options that SQL Server provides is much better and simpler than the Postgres high availability options.
... View more
11-19-2018
12:27 PM
|
0
|
0
|
773
|
POST
|
I am not sure I understand your problem. Are you interested in finding all calendar dates that fall within 90 days of this time each year. Or are you trying to find all dates that are 90 days within a provided past date? Those two problems would have different solutions. For the first question. It is not perfect since it assumes each month has exactly 30 days. (EXTRACT(MONTH FROM Start_Date) - 1) * 30 + EXTRACT(DAY FROM Start_Date)
BETWEEN ((EXTRACT(MONTH FROM CURRENT_DATE) - 1) * 30 + EXTRACT(DAY FROM CURRENT_DATE) - 90)
AND ((EXTRACT(MONTH FROM CURRENT_DATE) - 1) * 30 + EXTRACT(DAY FROM CURRENT_DATE)) That means for today this would return values like 8/12/2016 9/15/2018 10/22/2003 You can easily substitute CURRENT DATE with any date (see below as example). As for the second one here it could be any date: Start_date >= date '2017-10-22' - 90 and start_date <= date '2017-10-22' This will return all dates between July 24, 2017 and Oct 22, 2017. In both solutions, it assumes you are interested in only 90 days before the given date. You can change this by adding 90 to second date listed.
... View more
10-22-2018
08:38 AM
|
2
|
4
|
12703
|
POST
|
I missed the part where you said it was FGDB. That would be: Start_Date >= CURRENT_DATE -90 If you don't use something like this and only the DD/MM then the years will be an issue. The method you are trying would return records 2 and 3 when they are both pass 90 days ago.
... View more
10-19-2018
06:10 AM
|
1
|
2
|
12703
|
POST
|
This depends on your database. For SQL Server the easiest way is Start_Date >= getdate() - 90 For PostgreSQL it is: Start_Date >= now() - INTERVAL '90 DAY'
... View more
10-19-2018
06:01 AM
|
0
|
1
|
12703
|
BLOG
|
Will the feature service sync be a real time process where edits automatically sent to both databases or will it be a process that must be kicked off (like current replica sync)? If it is real time then it could cause problems. For example if one of editors deleted all the records out of a synced feature class, then all our web users would be screaming at us. By being able to control when a sync happens, we can roll back data if needed when something like this happens. And it has happened before. Secondly, will the sync feature service affect performance on both databases and what happens if one is lagging? We use replication to separate our desktop production users from our web traffic which is mostly read only. We replicate the production database to an internal web database and an external web database. This has saved us several times where one system would get hammered while the others were not. We have had scripts kick off in production database that brought it to its knees but our web services were unaffected since their database was separate. Like wise we have had massive spikes in our web traffic (10,000 times normal) when an external users pounds us. When that happened our production databases wasn't affected since it was separated. Have a feature service that connects them risks them having impacts from each other.
... View more
10-05-2018
08:56 AM
|
5
|
0
|
10599
|
POST
|
LUPAPWC was the name of the feature class I used for the example (it was the one I had open at the time I made the post). The archive always pulls from the default version of the feature class so my script does the same. There is currently no archives for user versions. The ArcCutDate is a table is used solely for this process. I created so you can run multiple rebuilds at once (I recommend against this since this process can be a resource hog especially on very large feature classes). That is why it stores the table name along with the min date. Iit doesn't use any version and is not part of SDE. Hope that helps.
... View more
10-05-2018
08:19 AM
|
0
|
0
|
2094
|
POST
|
When you say multi user schemas do you mean having 1 geodatabase with multiple data owners or have multiple geodatabases in the same oracle database? For the first, only the SDE user can compress so it will compress everything. For the latter, the geodatabases are independent of each other so you should compress each of them.
... View more
10-04-2018
07:54 AM
|
1
|
0
|
337
|
POST
|
On the Topology toolbar in ArcMap, there is two helpful buttons for this. Validate Topology in Specified Area Validate Topology in Current Extent The first one, the user draws a box for the area that need to validate. The second one validates the whole area show in the data frame. I would use these tools with user versions to handle your situation. This way you limit the risk of locks and overwriting saves while still minimizing the area validated.
... View more
10-04-2018
07:49 AM
|
1
|
1
|
674
|
POST
|
LUPA is just an attribute in the feature class. Basically change the old to include all your attributes for the table. OBJECTID,
Attribute1,
Attribute2,
...
AttributeN,
GLOBALID,
SHAPE,
GDB_FROM_DATE,
GDB_TO_DATE,
GDB_ARCHIVE_OID
... View more
10-04-2018
07:30 AM
|
0
|
1
|
2094
|
Title | Kudos | Posted |
---|---|---|
1 | 10-09-2012 03:56 AM | |
1 | 07-28-2022 12:52 PM | |
1 | 09-21-2022 11:28 AM | |
1 | 02-18-2022 08:54 AM | |
1 | 02-21-2019 12:59 PM |
Online Status |
Offline
|
Date Last Visited |
01-22-2024
04:17 PM
|