|
POST
|
You might want to output your layerids to verify that things are stacked in the order you think they should be. My guess is your feature layer is not on top and there is another graphicslayer on top of it
... View more
02-10-2014
08:41 AM
|
0
|
0
|
2467
|
|
POST
|
FeatureLayer is a graphicsLayer, and my guess is your graphics are being drawn on top of FeatureLayer. Controlling the order of these is difficult. Does your click work in areas without the overlayed Layer?
... View more
02-10-2014
05:26 AM
|
0
|
0
|
2467
|
|
POST
|
This is what I did. 1. Created a simple view - create or replace view v_sites as select objectid, site_no, shape from properties; 2. In ArcMAP I brought the view in as a query layer. I am not able to do an identify here on any of the features. I thought I could but I just did a test and I can't. 3. I created a service. 4) I did a query on the endpoint and it brought back the data: # records: 1
SITE_NO: C F 50079
Point:
X: -79.94871999975294
Y: 44.98113999979796 5) I tried it as a feature class in my application and it brought no data back. Instead of bring the view in as a query layer, have you tried bringing it in as a feature class in ArcMAP?
... View more
02-10-2014
04:09 AM
|
0
|
0
|
3252
|
|
POST
|
great to hear! please mark mschmoll's post as the answer by checking the checkmark on his post so he gets credit for it.
... View more
02-10-2014
03:18 AM
|
0
|
0
|
2778
|
|
POST
|
the grants are from registering with sde, you have an objectid field and it is number type, correct? if you query your rest endpoint with a where clause of objectid=1 (or a valid value) do you get results?
... View more
02-07-2014
12:24 PM
|
0
|
0
|
3252
|
|
POST
|
I am not positive However, I am speculating the registering (the therefore creating/requiring a objectid) may be what is preventing identifying from working If you dont have an objectid, i like to use rownum in the view cast (as number) to objectid. That way its always unique here is our sample view that i expose with server /* Formatted on 2/7/2014 5:15:27 PM (QP5 v5.163.1008.3004) */
CREATE OR REPLACE FORCE VIEW MCGIS.BUILDINGS_LUC_VIEW
(
SHAPE,
PARCELID,
OBJECTID,
LUC,
LUC_RAW
)
AS
SELECT buildings.shape,
buildings.parcelid,
ROWNUM objectid,
CASE
WHEN gis_parcels_view.luc = '2000'
THEN
'AIRPORTS'
WHEN gis_parcels_view.luc IN ('2802', '0002')
THEN
'MOBILE HOME'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '0200'
AND TO_NUMBER (gis_parcels_view.luc) <= '0205'
THEN
'MOBILE HOME'
WHEN gis_parcels_view.luc IN ('7500', '9902')
THEN
'RESIDENTIAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '0000'
AND TO_NUMBER (gis_parcels_view.luc) <= '0200'
THEN
'RESIDENTIAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '0300'
AND TO_NUMBER (gis_parcels_view.luc) <= '0805'
THEN
'RESIDENTIAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '4300'
AND TO_NUMBER (gis_parcels_view.luc) <= '4600'
THEN
'AGRICULTURAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '5100'
AND TO_NUMBER (gis_parcels_view.luc) <= '6999'
THEN
'AGRICULTURAL'
WHEN gis_parcels_view.luc IN ('7200', '8300', '8400')
THEN
'EDUCATION'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '8600'
AND TO_NUMBER (gis_parcels_view.luc) <= '9002'
THEN
'GOVERNMENT'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '2001'
AND TO_NUMBER (gis_parcels_view.luc) <= '2004'
THEN
'TRANSPORTATION'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '8600'
AND TO_NUMBER (gis_parcels_view.luc) <= '9002'
THEN
'GOVERNMENT'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '7300'
AND TO_NUMBER (gis_parcels_view.luc) <= '7400'
THEN
'MEDICAL'
WHEN gis_parcels_view.luc = '7800'
THEN
'MEDICAL'
WHEN gis_parcels_view.luc = '8500'
THEN
'MEDICAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '7100'
AND TO_NUMBER (gis_parcels_view.luc) < '7200'
THEN
'RELIGIOUS'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '3100'
AND TO_NUMBER (gis_parcels_view.luc) < '3300'
THEN
'CULTURAL'
WHEN gis_parcels_view.luc IN ('7900', '3500', '7700')
THEN
'CULTURAL'
WHEN gis_parcels_view.luc = '3900'
THEN
'HOTEL'
WHEN TO_NUMBER (gis_parcels_view.luc) > '3999'
AND TO_NUMBER (gis_parcels_view.luc) < '4300'
THEN
'INDUSTRIAL'
WHEN gis_parcels_view.luc IN ('9100', '9200', '9600', '4700')
THEN
'INDUSTRIAL'
WHEN (TO_NUMBER (gis_parcels_view.luc) >= '3700'
AND TO_NUMBER (gis_parcels_view.luc) <= '3800')
THEN
'RECREATION'
WHEN gis_parcels_view.luc IN ('8200', '9700', '3400', '3600')
THEN
'RECREATION'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '1000'
AND TO_NUMBER (gis_parcels_view.luc) <= '1904'
THEN
'COMMERCIAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '2100'
AND TO_NUMBER (gis_parcels_view.luc) <= '2800'
THEN
'COMMERCIAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '3300'
AND TO_NUMBER (gis_parcels_view.luc) <= '3400'
THEN
'COMMERCIAL'
WHEN gis_parcels_view.luc IN ('2900', '3000')
THEN
'COMMERCIAL'
WHEN TO_NUMBER (gis_parcels_view.luc) >= '4800'
AND TO_NUMBER (gis_parcels_view.luc) <= '4999'
THEN
'WAREHOUSE'
ELSE
'GENERAL'
END
luc,
gis_parcels_view.luc luc_raw
FROM mcgis.buildings
LEFT OUTER JOIN
mcgis.gis_parcels_view
ON buildings.parcelid = gis_parcels_view.selectpin;
GRANT DELETE, INSERT, SELECT, UPDATE ON MCGIS.BUILDINGS_LUC_VIEW TO METADATA;
GRANT SELECT ON MCGIS.BUILDINGS_LUC_VIEW TO SDE WITH GRANT OPTION;
GRANT SELECT ON MCGIS.BUILDINGS_LUC_VIEW TO SDEVIEWER;
... View more
02-07-2014
12:16 PM
|
0
|
0
|
3252
|
|
POST
|
WE do spatial views alot. I have published them with 10.2 (we are migrating now) but I have not tested querying them. Is your REST endpoint public? A few things I would check. 1. Is the spatial view registered with the Geodatabase? 2. Can you query the service with a 1=1 or a objectid=1 type simple query?
... View more
02-07-2014
11:56 AM
|
0
|
0
|
3252
|
|
POST
|
mschmoll is is right By passing datetime, you are actually sending the parsed string to the database but using valueof(), you are likely sending the actual datetime value
... View more
02-07-2014
11:39 AM
|
0
|
0
|
2778
|
|
POST
|
I have this same problem at 10.2 Alot of the tile options are greyed out Any idea why?
... View more
02-06-2014
11:14 AM
|
0
|
0
|
3023
|
|
POST
|
I'm trying to create a new feature using featureLayer.applyEdits. I pass in the geometry and attributes and this is saved to the database correctly. When I try and save a datetime attribute I get the error : "Error saving new find : Unable to complete operation". Does anyone know what format the datetime needs to be in? I am using ArcGIS Server v10 with SQL Server 2008. Thanks. See my code below: var datetime = dojo.date.locale.parse("07/02/2014 13:54", { datePattern:"dd/MM/yyyy", timePattern:"HH:mm" } ); var attr = { "DATE_TIME_J" : datetime }; var ng = new esri.Graphic(Point, null, attr, null); featureLayer.applyEdits([ng], null, null, ........ if the field you are trying to write to a date field? or a string
... View more
02-06-2014
09:45 AM
|
0
|
0
|
2778
|
|
POST
|
Ours is simple select using nvl works at 10 fails at 10.2
... View more
02-06-2014
08:36 AM
|
0
|
0
|
740
|
|
POST
|
if you sniff the tile urls, for example, wouldnt they still have the full server address?
... View more
02-06-2014
06:12 AM
|
0
|
0
|
25139
|
|
POST
|
This is really not good if this is the case, and would cause a rewrite on all our queries.
... View more
02-06-2014
05:07 AM
|
0
|
0
|
3367
|
|
POST
|
unfortunately if the app is public and the rest is public, you can't However, you could pull both your app and server internal only. Then set up a proxy that only makes your app public. That way your application server is the only server that has access to the internal rest server It is a complicated setup and will add some additional requirements when it comes to crossdomain access, etc, but it can be made to work
... View more
02-06-2014
04:57 AM
|
0
|
0
|
25139
|
|
POST
|
dojo.provide("org.mymanatee.common.latlong");
dojo.require("dojo.string");
org.mymanatee.common.latlong.convertSPtoLL_LLC = function (uX,uY) {
var a = 20925604.48; //major radius of ellipsoid, map units (NAD 83)
var ec = 0.08181905782; //eccentricity of ellipsoid (NAD 83)
var angRad = 0.01745329252; //number of radians in a degree
var pi4 = Math.PI / 4; //Pi / 4
var p0 = 24.333333 * angRad; //latitude of origin
var p1 = 24.333333 * angRad; //latitude of first standard parallel
var p2 = 31.5 * angRad; //latitude of second standard parallel
var m0 = -82.000000 * angRad; //central meridian
var x0 = 656166.666667; //False easting of central meridian, map units
// Calculate the coordinate system constants.
with (Math) {
var m1 = cos(p1) / sqrt(1 - (pow(ec,2)) * pow(sin(p1),2));
var m2 = cos(p2) / sqrt(1 - (pow(ec,2)) * pow(sin(p2),2));
var t0 = tan(pi4 - (p0 / 2));
var t1 = tan(pi4 - (p1 / 2));
var t2 = tan(pi4 - (p2 / 2));
t0 = t0 / pow(((1 - (ec * (sin(p0)))) / (1 + (ec * (sin(p0))))),ec/2);
t1 = t1 / pow(((1 - (ec * (sin(p1)))) / (1 + (ec * (sin(p1))))),ec/2);
t2 = t2 / pow(((1 - (ec * (sin(p2)))) / (1 + (ec * (sin(p2))))),ec/2);
var n = log(m1 / m2) / log(t1 / t2);
var f = m1 / (n * pow(t1,n));
var rho0 = a * f * pow(t0,n);
// Convert the coordinate to Latitude/Longitude.
// Calculate the Longitude.
var uX = uX - x0;
var pi2 = pi4 * 2;
var rho = sqrt(pow(uX,2) + pow((rho0 - uY),2));
var theta = atan(uX / (rho0 - uY));
var txy = pow((rho / (a * f)),(1 / n));
var lon = (theta / n) + m0;
var uX = uX + x0;
// Estimate the Latitude
var lat0 = pi2 - (2 * atan(txy));
// Substitute the estimate into the iterative calculation that
// converges on the correct Latitude value.
var part1 = (1 - (ec * sin(lat0))) / (1 + (ec * sin(lat0)));
var lat1 = pi2 - (2 * atan(txy * pow(part1,(ec/2))));
while ((abs(lat1 - lat0)) > 0.000000002) {
lat0 = lat1;
part1 = (1 - (ec * sin(lat0))) / (1 + (ec * sin(lat0)));
lat1 = pi2 - (2 * atan(txy * pow(part1,(ec/2))));
}
// Convert from radians to degrees.
var Lat = lat1 / angRad;
var Lon = lon / angRad;
//alert(Lat);
//alert(Lon);
//Round the latitude and longitude
//lat = (CLng(lat * 100000)) / 100000;
//lon = (CLng(lon * 100000)) / 100000;
Lat = Lat.toPrecision(7);
Lon = Lon.toPrecision(8);
return [Lat,Lon];
}
};
//End of Code for converting map units to decimal degrees.
//COnversion to LL from State Plane for Florida West (Transverse mercator, not Lamberic
org.mymanatee.common.latlong.convertSPtoLL_TM = function (uX,uY) {
var metconv = 1200/3937; //exact survey feet to meters
var uXm = uX*metconv;
var uYm = uY*metconv;
var a = 6378137.000000000000000000; // semimajor axis from ESRI
var b = 6356752.314140356100000000; // semiminor axis from ESRI
var e2 = ((a*a)-(b*b))/(a*a);//ellipsoid
var p0 = 24.333333; //latitude of origin
var m0 = -82.000000; //central meridian in degrees
var x0 = 656166.666667; //False easting of central meridian, map units
var y0 = 0; //False Northing
var k0 = 0.999941; //central scale factor k0
var x0m = x0*metconv;
var y0m = y0*metconv;
var p0rad = p0*Math.PI/180;
var m0rad = m0*Math.PI/180;
var e = Math.sqrt(e2);
var b = a * Math.sqrt(1-e2);
var n = (a - b)/(a + b);
var G = a*(1-n)*(1-(n*n))*(1+2.25*(n*n)+225/64*(n*n*n*n))*Math.PI/180;
var A0 = 1-e2/4-3*(e2*e2)/64-5*(e2*e2*e2)/256;
var A2 = 3/8*(e2+(e2*e2)/4+15*(e2*e2*e2)/128);
var A4 = 15/256*((e2*e2)+0.75*(e2*e2*e2));
var A6 = 35*(e2*e2*e2)/3072;
var lat0 = p0rad;
var m0atlat0 = a*(A0*lat0-A2*Math.sin(2*lat0)+A4*Math.sin(4*lat0)-A6*Math.sin(6*lat0))
var NminusNo = uYm - y0m;
var m = m0atlat0+NminusNo/k0;
var s = (m/G)*Math.PI/180;
var fpl1 = (1.5*n-27*(n*n*n)/32)*Math.sin(2*s);
var fpl2 = (21*(n*n)/16-55*(n*n*n*n)/32)*Math.sin(4*s);
var fpl3 = 151*(n*n*n)/96*Math.sin(6*s);
var fpl4 = 1097*(n*n*n*n)/512*Math.sin(8*s);
var footptlat = (s+fpl1+fpl2+fpl3+fpl4);
var rho = a*(1-e2)/Math.pow((1-e2*Math.sin(footptlat)*Math.sin(footptlat)),1.5);
var nu = a/(Math.sqrt(1-e2*Math.sin(footptlat)*Math.sin(footptlat)));
var psi = nu/rho;
var t = Math.tan(footptlat);
var E = uXm-x0m;
var x = E/k0/nu;
var lat1 = x*E/2;
var lat2 = (x*x*x)*E/24*(-4*psi*psi+9*psi*(1-t*t)+12*t*t);
var lat3 = (x*x*x*x*x)*E/720*(8*(psi*psi*psi*psi)*(11-24*(t*t))-12*(psi*psi*psi)*(21-71*(t*t))+15*(psi*psi)*(15-98*(t*t)+15*(t*t*t*t))+180*psi*(5*(t*t)-3*(t*t*t*t))+360*(t*t*t*t));
var lat4 = (x*x*x*x*x*x*x)*E/40320*(1385+3633*(t*t)+4095*(t*t*t*t)+1575*(t*t*t*t*t*t));
var lat = footptlat-(t/k0/rho)*(lat1-lat2+lat3-lat4);
var latdd = lat*180/Math.PI;
var w1 = x/Math.cos(footptlat);
var w2 = Math.pow(-1*x,3)/6*(psi+2*t*t)/Math.cos(footptlat);
var w3 = Math.pow(x,5)/120/Math.cos(footptlat)*(-4*(psi*psi*psi)*(1-6*(t*t))+(psi*psi)*(9-68*(t*t))+72*(psi)*(t*t)+24*(t*t*t*t));
var w4 = Math.pow(-1*x,7)/5040/Math.cos(footptlat)*(61+662*(t*t)+1320*(t*t*t*t)+720*(t*t*t*t*t*t));
var w = w1+w2+w3+w4;
var lon = (-1*m0)*Math.PI/180-w;
var londd = (-1*lon)*180/Math.PI;
// alert(londd);
return [latdd,londd];
};
org.mymanatee.common.latlong.convertLLtoSP_TM = function (lat,lon) {
var metconv = 1200/3937; //exact survey feet to meters
var a = 6378137.000000000000000000; // semimajor axis from ESRI
var b = 6356752.314140356100000000; // semiminor axis from ESRI
var e2 = ((a*a)-(b*b))/(a*a);//ellipsoid
var p0 = 24.333333; //latitude of origin
var m0 = -82.000000; //central meridian in degrees
var x0 = 656166.666667; //False easting of central meridian, map units
var y0 = 0; //False Northing
var k0 = 0.999941; //central scale factor k0
var e = Math.sqrt(e2);
var lat0rad_lat0=p0*Math.PI/180;
var latrad_lat=lat*Math.PI/180;
var rho_lat=a*(1-e2)/Math.pow((1-e2*Math.sin(latrad_lat)*Math.sin(latrad_lat)),1.5);
var nu_lat=a/(Math.sqrt(1-e2*Math.sin(latrad_lat)*Math.sin(latrad_lat)));
var omega_lat=((lon)*Math.PI/180)-((m0)*Math.PI/180); //provide negative lon so no negative multiplier
var psi_lat=nu_lat/rho_lat;
var t_lat=Math.tan(latrad_lat);
var a0_lat=1-e2/4-3*e2*e2/64-5*e2*e2*e2/256;
var a2_lat=3/8*(e2+e2*e2/4+15*e2*e2*e2/128);
var a4_lat=15/256*(e2*e2+0.75*e2*e2*e2);
var a6_lat=35*e2*e2*e2/3072;
var mlat_lat=a*(a0_lat*latrad_lat-a2_lat*Math.sin(2*latrad_lat)+a4_lat*Math.sin(4*latrad_lat)-a6_lat*Math.sin(6*latrad_lat));
var mlat_lat0=a*(a0_lat*lat0rad_lat0-a2_lat*Math.sin(2*lat0rad_lat0)+a4_lat*Math.sin(4*lat0rad_lat0)-a6_lat*Math.sin(6*lat0rad_lat0));
var e1_lat=nu_lat*omega_lat*Math.cos(latrad_lat);
var e2_lat=nu_lat*omega_lat*omega_lat*omega_lat/6*Math.cos(latrad_lat)*Math.cos(latrad_lat)*Math.cos(latrad_lat)*(psi_lat-t_lat*t_lat);
var e3_lat=nu_lat*Math.pow(omega_lat,5)/120*Math.pow(Math.cos(latrad_lat),5)*(4*psi_lat*psi_lat*psi_lat*(1-6*t_lat*t_lat)+psi_lat*psi_lat*(1+8*t_lat*t_lat)-psi_lat*2*t_lat*t_lat+Math.pow(t_lat,4));
var e4_lat=nu_lat*Math.pow(omega_lat,7)/5040*Math.pow(Math.cos(latrad_lat),7)*(61-479*t_lat*t_lat+179*Math.pow(t_lat,4)-Math.pow(t_lat,6));
var e_lat=k0*(e1_lat+e2_lat+e3_lat+e4_lat);
var n1_lat=(omega_lat*omega_lat)/2*Math.cos(latrad_lat);
var n1_lat0=n1_lat*nu_lat*Math.sin(latrad_lat);
var n2_lat=(Math.pow(omega_lat,4)/24)*(Math.pow(Math.cos(latrad_lat),3))*(4*psi_lat*psi_lat+psi_lat-t_lat*t_lat);
var n2_lat0=n2_lat*nu_lat*Math.sin(latrad_lat);
var n3_lat=(Math.pow(omega_lat,6)/720)*(Math.pow(Math.cos(latrad_lat),5))*(8*Math.pow(psi_lat,4)*(11-24*t_lat*t_lat)-28*Math.pow(psi_lat,3)*(1-6*t_lat*t_lat)+psi_lat*psi_lat*(1-32*t_lat*t_lat)-2*psi_lat*t_lat*t_lat+Math.pow(t_lat,4));
var n3_lat0=n3_lat*nu_lat*Math.sin(latrad_lat);
var n4_lat=(Math.pow(omega_lat,8)/40320)*(Math.pow(Math.cos(latrad_lat),7))*(1385-3111*t_lat*t_lat+543*Math.pow(t_lat,4)-Math.pow(t_lat,6));
var n4_lat0=n4_lat*nu_lat*Math.sin(latrad_lat);
var n_lat=k0*(mlat_lat+nu_lat*Math.sin(latrad_lat)*(n1_lat+n2_lat+n3_lat+n4_lat));
var n_lat0=k0*mlat_lat0;
var no=n_lat-n_lat0;
var x=e_lat+x0*metconv;
var y=(n_lat-n_lat0)+y0*metconv;
// alert(n_lat);
// alert("x="+x+"y="+y);
// alert("a0="+a0_lat+"a2="+a2_lat+"a4="+a4_lat+"a6="+a6_lat);
var xft=x/metconv;
var yft=y/metconv;
// alert("x="+xft+"y="+yft);
return [xft,yft];
}
org.mymanatee.common.latlong.convertWebMercAuxtoLL = function (uX,uY) {
//code completely borrowed from http://www.frosties.com/index.php?option=com_mojo&Itemid=45&p=7
// lat and long backwards on link for some reason
//alert("IN CONVERSION");
var x = uX;
// alert("IN CONVERSION2");
var y = uY;
var num3 = x / 6378137.0;
var num4 = num3 * 57.295779513082323;
//alert("IN CONVERSION3");
var num5 = Math.floor(((num4 + 180.0) / 360.0));
var num6 = num4 - (num5 * 360.0);
//alert("IN CONVERSION4");
var num7 = 1.5707963267948966 - (2.0 * Math.atan(Math.exp((-1.0 * y) / 6378137.0)));
var lon = num6;
var lat = num7*57.295779513082323;
// alert([lat,lon]);
return [lat,lon];
};
org.mymanatee.common.latlong.convertLLtoWebMercAux = function (lat,lon) {
var num = lon * 0.017453292519943295;
var x = 6378137.0 * num;
var a = lat * 0.017453292519943295;
var mercatorX = x;
var mercatorY = 3189068.5*Math.log((1.0 + Math.sin(a))/(1.0 - Math.sin(a)));
return [mercatorX,mercatorY];
};
... View more
02-06-2014
03:31 AM
|
0
|
0
|
3928
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|