POST
|
Yes, that is definitely the same case! However, we should swap around the initial coordinates in your example (it's location of Moskow, Idaho) and so we can now reproduce my issue. double locX = 46.73234939575195;
double locY = -117.00054168701172; After this, I get the same error in your example, as I got in my own code: Caused by: com.esri.core.geometry.GeometryException: This operation should not be performed on an empty geometry. at com.esri.core.geometry.Point.getX(SourceFile:143)
... View more
07-19-2017
01:40 AM
|
0
|
1
|
906
|
POST
|
Sure! But I assume that the problem arises earlier (when projecting the point with GeometryEngine.project). Constants.kMapMiniMapStandardZoom = 350.0 For example, the flow is the following: 0. We call this whole method. 1. At the beginning the mMapPoint is not initialized. The mMapView SpatialReference is null. 2. Then we assign wgsPoint the following values: 46.73234939575195 and -117.00054168701172. 3. After this mMapPoint is successfully assigned. 4. Then in another method mMapView is assigned SpatialReference value of 102100. 5. We call this whole method once more. 6. Again, the coordinates of wgsPoint are the same: 46.73234939575195 and -117.000541687011726. 7. And NOW after we once again project the Point, when we try to call getX() or getY() on mMapPoint the exception is thrown. So the only difference is in the following: during the first call of this method the SpatialReference of mMapView is null and during the second call it is 102100.
... View more
07-18-2017
07:07 AM
|
0
|
4
|
906
|
POST
|
Hello everyone. The thing is, when I project the point, the getX() and getY() methods of the resulting point (mMapPoint) sometimes throw a GeometryException, because its X and Y values are NaN. Here is the piece of code with the issue I am currently facing. double locy = mLocationToShow.getLatitude();
double locx = mLocationToShow.getLongitude();
Point wgsPoint = new Point(locx, locy);
SpatialReference spatialNew = SpatialReference.create(4326);
SpatialReference spatialMapView = mMapView.getSpatialReference(); // its value is 102100
mMapPoint = (Point) GeometryEngine.project(wgsPoint,
spatialNew,
spatialMapView);
mMapViewEnvelope = new Envelope(mMapPoint, Constants.kMapMiniMapStandardZoom,
Constants.kMapMiniMapStandardZoom); Maybe the issue has something to do with normalization (normalizeCentralMeridian), but I can't figure out how to implement it in this case. Any help is appreciated.
... View more
07-18-2017
02:16 AM
|
0
|
9
|
1794
|
POST
|
Thanks a lot, now I see what the problem was. Apparently, I was using the "http" instead of "https". After switching everything went back to normal.
... View more
06-06-2017
12:26 AM
|
0
|
1
|
5433
|
POST
|
ArcGIS Online Map Viewer or ArcGIS Javascript viewer actually show that everything is ok. http://api.proclass.nl/arcgis/rest/services/ATP_BuildingLayouts/ATP_BuildingLayouts/MapServer this case works out well. Not so good on Android, however.
... View more
06-05-2017
08:57 AM
|
0
|
3
|
5433
|
POST
|
The current version is 10.2.9. map is the entity of MAP_LAYER, the getUrl method actually returns the following url which I mentioned (as well as the other two which also fail): http://api.proclass.nl/arcgis/rest/services/Handmatig_Toegevoegd/Handmatig_Toegevoegd/MapServer http://api.proclass.nl/arcgis/rest/services/Handmatig_Toegevoegd_Prive/Handmatig_Toegevoegd_Prive/MapServer http://api.proclass.nl/arcgis/rest/services/ATP_BuildingLayouts/ATP_BuildingLayouts/MapServer And yes, that is the url which I am trying to view. The same urls in the iOS don't seem to have any trouble, the problems only started on android about a month ago.
... View more
06-05-2017
06:20 AM
|
0
|
5
|
5433
|
POST
|
Hello everyone. The problem is really strange: when loading layers (ArcGISDynamicMapServiceLayer) on the android app using arcgis, the code throws a JsonParseException (as far as I can see it happens when initializing new ArcGISDynamicMapServiceLayer(map.getMapurl());). The rest and the url is fine, moreover, the app didn't have such issues before, everything worked well. Did someone somehow deal with this? 06-05 07:27:21.746 24663-25710/nl.proclass.docs2go E/ArcGIS: url =http://api.proclass.nl/arcgis/rest/services/Handmatig_Toegevoegd/Handmatig_Toegevoegd/MapServer org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: java.io.StringReader@306f27f; line: 1, column: 2] at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432) at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521) at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442) at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198) at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485) at com.esri.core.internal.io.handler.h.a(SourceFile:206) at com.esri.core.internal.io.handler.h.a(SourceFile:63) at com.esri.core.internal.tasks.ags.t.a(SourceFile:39) at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(SourceFile:280) at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(SourceFile:193) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)
... View more
06-05-2017
03:58 AM
|
0
|
7
|
13493
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|