POST
|
And after I adding the required jar file(ArcGIS_Runtime_Java.jar),another error occurs. I really don't know what happen.
... View more
02-22-2017
05:40 AM
|
0
|
1
|
1817
|
POST
|
hello, I create a map application using plug-in. I'm trying to debug my program and I get the following error: What could be the problem ?
... View more
02-22-2017
05:36 AM
|
0
|
3
|
5851
|
POST
|
Thanks Adam, But I have tried the setoutfiled in the QueryParameters.But it seems to return all the field since the popupview still display all the field.The related code is showed as follows. callback CallbackListener<FeatureResult> callback=new CallbackListener<FeatureResult>() { @Override public void onError(Throwable e) { // JOptionPane.showMessageDialog(contentPane, wrap("Error: "+e.getLocalizedMessage()), "", JOptionPane.ERROR_MESSAGE); System.out.println("QUERY ERROR"); } @Override public void onCallback(FeatureResult objs) { for (Object objFeature : objs) { Feature feature = (Feature) objFeature; //System.out.println(feature.getAttributes()); createPopView(feature); } } }; query private final String[] ATTR_NAMES = new String[] {"NAME_0", "NAME_1", "NAME_2"}; QueryParameters query = new QueryParameters(); query.setOutFields(ATTR_NAMES); shapefileTable_lf.queryFeatures(query,callback); function createPopView private void createPopView(Feature feature) { PopupView contentPanel = PopupView.createAttributesView((String)feature.getAttributeValue("NAME_3"), feature); //display feature contentPanel.setFeature(map, feature); PopupDialog popup = map.createPopup(new JComponent[]{contentPanel}, feature); popup.setTitle("水资源情况"); popup.setVisible(true); }
... View more
02-20-2017
02:57 AM
|
0
|
0
|
476
|
POST
|
hello, I use the PopupView and PopupDialog to create e a popup from the featureLayer and use setFeature function to display the feature like the picture below.But it will display all the attribute of the feature.I wanna to display the specified attribute.How should I do?In addtion,I use the shapefilefeature table to create the featureLayer.
... View more
02-19-2017
10:51 PM
|
0
|
3
|
943
|
POST
|
hello, I use arcgis sdk for java(10.2.4).And I wanna to query the ShapefileFeatureTable as folows making it able to return the specified field .But the results seems to return all the field not only the the specified field. private final String[] ATTR_NAMES = new String[] {"NAME_0", "NAME_1", "NAME_2"}; QueryParameters query = new QueryParameters(); query.setOutFields(ATTR_NAMES); shapefileTable_sw.queryFeatures(query,callback); callback CallbackListener<FeatureResult> callback=new CallbackListener<FeatureResult>() { @Override public void onError(Throwable e) { // JOptionPane.showMessageDialog(contentPane, wrap("Error: "+e.getLocalizedMessage()), "", JOptionPane.ERROR_MESSAGE); System.out.println("QUERY ERROR"); } @Override public void onCallback(FeatureResult objs) { for (Object objFeature : objs) { Feature feature = (Feature) objFeature; //System.out.println(feature.getAttributes()); createPopView(feature); } } }; Does the shapefile feature table not support the seOutFields function? Or there is somthing wrong with my code?
... View more
02-15-2017
11:59 AM
|
0
|
0
|
742
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|