POST
|
Try the event "update" which is part of inherited class "Layer". Also try other events "update-end" and "update-start" Layer | API Reference | ArcGIS API for JavaScript 3.31
... View more
01-20-2020
05:56 PM
|
0
|
6
|
4297
|
POST
|
As far as the line geometries are connected, each line geometry first coordinate and last coordinate are identical. Polygon geometries can be constructed by passing the coordiantes from Polyline geometry into Polygon Geometry as below. From your post, I assume you are thinking of solution specifically for intersection lines into multiple geometries? In that case it is two step process, convert the grey lines into single polygon geometry and apply the intersection function to generate the polygons. var polyline = { type: "polyline", // autocasts as new Polyline() paths: [ [-111.3, 52.68], [-98, 49.5], [-93.94, 29.89], [-111.3, 52.68] ] }; var polygon = { type: "polygon", // autocasts as new Polygon() rings: polyline.paths };
... View more
12-19-2019
09:42 PM
|
0
|
0
|
1440
|
POST
|
Hi Joshua, thanks for responding to my question. I want to do this within the database rather in client. As this Oracle function needs to be used by other stored procedures in processing the data in the Oracle database.
... View more
12-19-2019
03:37 PM
|
1
|
1
|
1220
|
POST
|
Posting this question for discussion and resolution to calculate the mid point of a Line/Polyline in SDE.ST_Geometry on Oracle Spatial Database. This question is also posted in ArcGIS Ideas.Mid Point function in SDE.ST_GEOMETRY After exploring the Oracle Spatial functionalities and searching for similar problems in other blogs. I could able to create the custom function which calculates the mid-point of a polyline in SDE.ST_Geometry. The methodology is as below: - Convert the SDE.ST_Geometry object into Oracle SDO_GEOMETRY - Use SDO_LRS capabilities of Oracle Spatial to find the mid point coordinate of a line geometry. - Convert the returns Ordinates into SDE.ST_Geometry or WKT format Is there are any other better way or options available within SDE? * As this work around works only in Oracle * The similar work around/custom function can be developed if the Enterprise Geodatabase is PostgreSQL/PostGIS ST_Line_Interpolate_Point
... View more
12-19-2019
05:29 AM
|
0
|
3
|
1339
|
IDEA
|
Work around solution to achieve this is to use Oracle Spatial function as below create or replace function get_line_midpoint (line_in IN sde.st_geometry) -- RETURN sde.st_geometry RETURN VARCHAR2 IS wkt_geometry clob; ora_geometry sdo_geometry; mid_x number(10,6); mid_y number(10,6); mid_point_geom sde.st_geometry; BEGIN SELECT sde.ST_AsText(line_in) INTO wkt_geometry FROM DUAL; ora_geometry := SDO_UTIL.FROM_WKTGEOMETRY(wkt_geometry); --mid_x:= sdo_cs.transform(SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)),8307).SDO_POINT.X; mid_x:= SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)).SDO_POINT.X; --mid_y:= sdo_cs.transform(SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)),8307).SDO_POINT.Y; mid_y:= SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)).SDO_POINT.Y; ora_geometry := SDO_UTIL.FROM_WKTGEOMETRY('point ('|| mid_x || ' ' || mid_y ||')'); return 'point ('|| mid_x || ' ' || mid_y ||')'; EXCEPTION WHEN OTHERS THEN raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM); END;
... View more
12-19-2019
05:12 AM
|
0
|
0
|
844
|
IDEA
|
Work around solution to achieve this is to use Oracle Spatial function as below create or replace function get_line_midpoint (line_in IN sde.st_geometry) -- RETURN sde.st_geometry RETURN VARCHAR2 IS wkt_geometry clob; ora_geometry sdo_geometry; mid_x number(10,6); mid_y number(10,6); mid_point_geom sde.st_geometry; BEGIN SELECT sde.ST_AsText(line_in) INTO wkt_geometry FROM DUAL; ora_geometry := SDO_UTIL.FROM_WKTGEOMETRY(wkt_geometry); --mid_x:= sdo_cs.transform(SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)),8307).SDO_POINT.X; mid_x:= SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)).SDO_POINT.X; --mid_y:= sdo_cs.transform(SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)),8307).SDO_POINT.Y; mid_y:= SDO_LRS.CONVERT_TO_STD_GEOM(SDO_LRS.LOCATE_PT(SDO_LRS.CONVERT_TO_LRS_GEOM(ora_geometry, 3), SDO_GEOM.SDO_LENGTH(ora_geometry,3)/2)).SDO_POINT.Y; ora_geometry := SDO_UTIL.FROM_WKTGEOMETRY('point ('|| mid_x || ' ' || mid_y ||')'); return 'point ('|| mid_x || ' ' || mid_y ||')'; EXCEPTION WHEN OTHERS THEN raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM); END;
... View more
12-19-2019
05:12 AM
|
0
|
0
|
361
|
IDEA
|
I could not able to find the way to calculate the mid-point of the line geometry in the SDE database where the geometries are stored in SDE.ST_GEOMETRY object. There needs to be a function in ST_GEOMETRY object to create a mid point of a line and polyline. Currently the midpoint calculating is possible in ArcGIS Geoprocessing tool. The similar function should be made available in SDE.ST_Geometry functions (SQL functions used with ST_Geometry—Help | ArcGIS Desktop ) which helps in processing the data within the database server.
... View more
12-07-2019
07:16 AM
|
0
|
1
|
996
|
IDEA
|
I could not able to find the way to calculate the mid-point of the line geometry in the SDE database where the geometries are stored in SDE.ST_GEOMETRY object. There needs to be a function in ST_GEOMETRY object to create a mid point of a line and polyline. Currently the midpoint calculating is possible in ArcGIS Geoprocessing tool. The similar function should be made available in SDE.ST_Geometry functions (SQL functions used with ST_Geometry—Help | ArcGIS Desktop ) which helps in processing the data within the database server.
... View more
12-07-2019
07:16 AM
|
0
|
1
|
513
|
POST
|
Hi Ken, have you tried to find the intersection of two polygons? This should result in a single polygon of overlapping part of A and B polygons. Regards Ashok Esri Australia
... View more
10-29-2019
05:24 PM
|
0
|
0
|
825
|
POST
|
Hi Daniel, Duplicate the layers and enable the label on each layer with different respective fields. in respective label field layer, set the visibility. Regards Ashok Esri Australia
... View more
10-29-2019
05:20 PM
|
0
|
0
|
488
|
POST
|
The intent of using arcgis js library is to consume the services online. A related discussion: Trying to use own basemap | GeoNet, The Esri Community | GIS and Geospatial Professional Community in your Case, replace wms layer with arcgis map server layer. This should work. Means your maps should be on arcgis server. regards ashok
... View more
08-25-2019
03:39 PM
|
0
|
0
|
1711
|
POST
|
Hi Ritika, If you are using Offline, how are you trying to access ArcGIS JS libraries, have you downloaded Javascript library into your server? On which GIS software your maps have been hosted? ArcGIS Server or Geoserver or someother? Regards Ashok
... View more
08-25-2019
05:47 AM
|
1
|
2
|
1711
|
POST
|
Hi Ritika, In your code, it is trying WMS Layer has been assigned as Base Map which fails to work in setting up the required zoom. In order to set the Zoom Value as defined, the ArcGIS JS requires to have Base Map Setup correctly and which is used for reference in setting up Zoom, Scale, Extents for any layers loaded in your case the WMS Layer. Instead use the below code to replace variable "cviewmap". cviewmap = new Map({ basemap: "streets", layers:[baselayer] }); The Base Map should be any of the maps from the list of ArcGIS Online BaseMaps or Web Tiles hosted on ArcGIS server. Map | ArcGIS API for JavaScript 4.12 Let me know if you need any help to understand further. Regards Ashok
... View more
08-25-2019
05:10 AM
|
0
|
4
|
1711
|
POST
|
Hi William, try importing the Kml features into Graphic Layers and use it extents. regards ashok
... View more
08-21-2019
02:16 AM
|
0
|
1
|
523
|
POST
|
Hi Ritika, Have you embedded/referred the web map in your JavaScript code? regards Ashok
... View more
08-21-2019
02:06 AM
|
0
|
6
|
1711
|
Title | Kudos | Posted |
---|---|---|
1 | 12-19-2019 03:37 PM | |
1 | 08-25-2019 05:47 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|