File tree Expand file tree Collapse file tree 2 files changed +30
-20
lines changed Expand file tree Collapse file tree 2 files changed +30
-20
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,11 @@ export const DecodePointPromt = () => {
4343 // Add point to send request to SAM
4444 useEffect ( ( ) => {
4545 if ( ! map ) {
46- // if (!activeEncodeImageItem) {
47- // NotificationManager.warning(
48- // `Select an AOI for making predictions within it.`,
49- // 3000
50- // );
51- // }
46+ return ;
47+ }
48+
49+ if ( ! activeEncodeImageItem ) {
50+ console . log ( "Select an AOI for making predictions within it." )
5251 return ;
5352 }
5453
@@ -109,7 +108,7 @@ export const DecodePointPromt = () => {
109108 action_type : actionType ,
110109 return_format : "geojson" ,
111110 simplify_tolerance : 0.000002 ,
112- area_val : 20 ,
111+ area_val : 1 ,
113112 } ;
114113 const resp = await requestSegments ( reqProps , "segment_predictor" ) ;
115114 const features = setProps2Features (
Original file line number Diff line number Diff line change 103103 "properties" : {
104104 "slug" : " cattle" ,
105105 "classes" : {
106- "cattle_feeds" : " #17FF00" ,
107- "Pear cactus" : " #ffb350" ,
108- "Barley filed" : " #FED000" ,
109- "People" : " #E222F0" ,
110- "Car" : " #2021EA"
106+ "cattle_feeds" : " #17FF00"
111107 },
112108 "name" : " Cattle Feeds" ,
113109 "imagery" : {
114110 "type" : " tms" ,
115- "url" : " https://mt1.google.com/vt/lyrs=y&x={x}&y= {y}&z={z} "
111+ "url" : " https://gis.apfo.usda.gov/arcgis/rest/services/NAIP/USDA_CONUS_PRIME/ImageServer/tile/{z}/ {y}/{x}?blankTile=false "
116112 }
117113 },
118114 "geometry" : {
119- "type" : " Polygon" ,
120115 "coordinates" : [
121116 [
122- [-103.31623456802303 , 34.251769889138494 ],
123- [-103.31270303007143 , 34.251769889138494 ],
124- [-103.31270303007143 , 34.25470235031265 ],
125- [-103.31623456802303 , 34.25470235031265 ],
126- [-103.31623456802303 , 34.251769889138494 ]
117+ [
118+ -103.3402983155157 ,
119+ 34.256476377612
120+ ],
121+ [
122+ -103.3402983155157 ,
123+ 34.2397030568773
124+ ],
125+ [
126+ -103.31763860431806 ,
127+ 34.2397030568773
128+ ],
129+ [
130+ -103.31763860431806 ,
131+ 34.256476377612
132+ ],
133+ [
134+ -103.3402983155157 ,
135+ 34.256476377612
136+ ]
127137 ]
128- ]
138+ ],
139+ "type" : " Polygon"
129140 }
130141 },
131142 {
You can’t perform that action at this time.
0 commit comments