vedas
Clone or download
Modified Files
package com.GisSatellite.Server.Controller;
package com.GisSatellite.Server.Controller;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.List;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import javax.persistence.criteria.Root;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MimeTypeUtils;
import org.springframework.util.MimeTypeUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestController;
import com.GisSatellite.Server.Entities.FilterData;
import com.GisSatellite.Server.Entities.FilterData;
import com.GisSatellite.Server.Entities.Satellite;
import com.GisSatellite.Server.Entities.Satellite;
import com.GisSatellite.Server.Entities.Taluka;
import com.GisSatellite.Server.Repository.SatelliteRepository;
import com.GisSatellite.Server.Repository.SatelliteRepository;
import com.GisSatellite.Server.Repository.TalukaRepository;
@RestController
@RestController
@ResponseBody
@ResponseBody
public class ApiController {
public class ApiController {
@PersistenceContext
@PersistenceContext
private EntityManager entityManager ;
private EntityManager entityManager ;
@Autowired
@Autowired
private SatelliteRepository satelliteRepository;
private SatelliteRepository satelliteRepository;
@Autowired
private TalukaRepository talukaRepo;
/*
/*
* @RequestMapping(value = "getData", method = RequestMethod.POST) public
* @RequestMapping(value = "getData", method = RequestMethod.POST) public
* List<Satellite> getData(@RequestBody FilterData filterData ) {
* List<Satellite> getData(@RequestBody FilterData filterData ) {
*
*
* //System.out.println(filterData.getSatelite());
* //System.out.println(filterData.getSatelite());
*
*
* return
* return
* satelliteRepository.getFilteredData(filterData.getSatelite(),filterData.
* satelliteRepository.getFilteredData(filterData.getSatelite(),filterData.
* getSensors(),
* getSensors(),
* filterData.getLocalIdFrom(),filterData.getLocalIdTo(),filterData.
* filterData.getLocalIdFrom(),filterData.getLocalIdTo(),filterData.
* getDateOfPassFrom(),
* getDateOfPassFrom(),
* filterData.getDateOfPassTo(),filterData.getPathFrom(),filterData.getPathTo(),
* filterData.getDateOfPassTo(),filterData.getPathFrom(),filterData.getPathTo(),
* filterData.getRowFrom(),filterData.getRowTo());
* filterData.getRowFrom(),filterData.getRowTo());
*
*
* // return
* // return
* satelliteRepository.getFilteredData(filterData.getLocalIdFrom(),filterData.
* satelliteRepository.getFilteredData(filterData.getLocalIdFrom(),filterData.
* getLocalIdTo(), //
* getLocalIdTo(), //
* filterData.getSatelite(),filterData.getSensors(),filterData.getDateOfPassFrom
* filterData.getSatelite(),filterData.getSensors(),filterData.getDateOfPassFrom
* () //
* () //
* ,filterData.getDataOfPassTo(),filterData.getDateOfPassFrom(),filterData.
* ,filterData.getDataOfPassTo(),filterData.getDateOfPassFrom(),filterData.
* getDataOfPassTo() // ,filterData.getRowFrom(),filterData.getPathTo()); }
* getDataOfPassTo() // ,filterData.getRowFrom(),filterData.getPathTo()); }
*
*
*/
*/
@RequestMapping(value = "getData", method = RequestMethod.POST)
@RequestMapping(value = "getData", method = RequestMethod.POST)
List<Satellite> getData(@RequestBody FilterData filterData) {
List<Satellite> getData(@RequestBody FilterData filterData) {
System.out.println(filterData + "filterdta");
System.out.println(filterData + "filterdta");
/*
/*
* satelliteRepository.getFilteredData(filterData.getLocalIdFrom(),filterData.
* satelliteRepository.getFilteredData(filterData.getLocalIdFrom(),filterData.
* getLocalIdTo(),
* getLocalIdTo(),
* filterData.getSatelite(),filterData.getSensors(),filterData.getDateOfPassFrom
* filterData.getSatelite(),filterData.getSensors(),filterData.getDateOfPassFrom
* (),filterData.getDateOfPassTo(),filterData.getDateOfPassFrom(),filterData.
* (),filterData.getDateOfPassTo(),filterData.getDateOfPassFrom(),filterData.
* getDateOfPassTo() ,filterData.getRowFrom(),filterData.getPathTo());
* getDateOfPassTo() ,filterData.getRowFrom(),filterData.getPathTo());
*/
*/
// EntityManager em = getEntityManager();
// EntityManager em = getEntityManager();
CriteriaBuilder cb = entityManager.getCriteriaBuilder();
CriteriaBuilder cb = entityManager.getCriteriaBuilder();
CriteriaQuery<Satellite> cq = cb.createQuery(Satellite.class);
CriteriaQuery<Satellite> cq = cb.createQuery(Satellite.class);
Root<Satellite> satellite = cq.from(Satellite.class);
Root<Satellite> satellite = cq.from(Satellite.class);
List<Predicate> predicates = new ArrayList<>();
List<Predicate> predicates = new ArrayList<>();
if ( !filterData.getSatelite().equals("Choose one")) {
if ( !filterData.getSatelite().equals("Choose one")) {
predicates.add(cb.equal(satellite.get("satelite"), filterData.getSatelite()));
predicates.add(cb.equal(satellite.get("satelite"), filterData.getSatelite()));
}
}
if (! filterData.getSensors().equals("Choose one")) {
if (! filterData.getSensors().equals("Choose one")) {
predicates.add(cb.equal(satellite.get("sansor"), filterData.getSensors()));
predicates.add(cb.equal(satellite.get("sansor"), filterData.getSensors()));
}
}
// if ( filterData.getLocalIdFrom() != null && filterData.getLocalIdTo() != null) {
// if ( filterData.getLocalIdFrom() != null && filterData.getLocalIdTo() != null) {
// predicates.add(cb.between(satellite.get("localcd"),filterData.getLocalIdFrom() ,filterData.getLocalIdTo()));
// predicates.add(cb.between(satellite.get("localcd"),filterData.getLocalIdFrom() ,filterData.getLocalIdTo()));
// }
// }
if ( !filterData.getDateOfPassFrom().toString().equals("2020-12-31") && (!filterData.getDateOfPassTo().toString().equals("2020-12-31"))) {
if ( !filterData.getDateOfPassFrom().toString().equals("2020-12-31") && (!filterData.getDateOfPassTo().toString().equals("2020-12-31"))) {
predicates.add(cb.between(satellite.get("date"),filterData.getDateOfPassFrom() ,filterData.getDateOfPassTo()));
predicates.add(cb.between(satellite.get("date"),filterData.getDateOfPassFrom() ,filterData.getDateOfPassTo()));
}
}
// if ( filterData.getDateOfPassFrom() != null && filterData.getDateOfPassTo() != null) {
// if ( filterData.getDateOfPassFrom() != null && filterData.getDateOfPassTo() != null) {
// predicates.add(cb.between(satellite.get("date"),filterData.getDateOfPassFrom() ,filterData.getDateOfPassTo()));
// predicates.add(cb.between(satellite.get("date"),filterData.getDateOfPassFrom() ,filterData.getDateOfPassTo()));
// }
// }
try
try
{
{
// if ( !filterData.getPathFrom().toString().equals(null) && (!filterData.getPathTo().toString().equals(null)) ){
// if ( !filterData.getPathFrom().toString().equals(null) && (!filterData.getPathTo().toString().equals(null)) ){
// predicates.add(cb.between(satellite.get("path"),filterData.getPathFrom() ,filterData.getPathTo()));
// predicates.add(cb.between(satellite.get("path"),filterData.getPathFrom() ,filterData.getPathTo()));
// }
// }
if ( filterData.getPathFrom() != null && filterData.getPathTo() != null) {
if ( filterData.getPathFrom() != null && filterData.getPathTo() != null) {
predicates.add(cb.between(satellite.get("path"),filterData.getPathFrom() ,filterData.getPathTo()));
predicates.add(cb.between(satellite.get("path"),filterData.getPathFrom() ,filterData.getPathTo()));
}
}
if ( filterData.getRowFrom() != null && filterData.getRowTo() != null) {
if ( filterData.getRowFrom() != null && filterData.getRowTo() != null) {
predicates.add(cb.between(satellite.get("row"),filterData.getRowFrom() ,filterData.getRowTo()));
predicates.add(cb.between(satellite.get("row"),filterData.getRowFrom() ,filterData.getRowTo()));
}
}
}
}
catch (Exception e) {
catch (Exception e) {
// TODO: handle exception
// TODO: handle exception
}
}
cq.select(satellite)
cq.select(satellite)
.where(cb.and(predicates.toArray(new Predicate[predicates.size()])));
.where(cb.and(predicates.toArray(new Predicate[predicates.size()])));
return entityManager.createQuery(cq)
return entityManager.createQuery(cq)
.getResultList();
.getResultList();
}
}
@RequestMapping(value = "findAllold", method = RequestMethod.GET)
@RequestMapping(value = "findAllold", method = RequestMethod.GET)
public ResponseEntity<Iterable<Satellite>> findAll() {
public ResponseEntity<Iterable<Satellite>> findAll() {
try {
try {
System.out.println("findall");
System.out.println("findall");
return new ResponseEntity<Iterable<Satellite>>(satelliteRepository.findAll(), HttpStatus.OK);
return new ResponseEntity<Iterable<Satellite>>(satelliteRepository.findAll(), HttpStatus.OK);
} catch (Exception e) {
} catch (Exception e) {
return new ResponseEntity<Iterable<Satellite>>(HttpStatus.BAD_REQUEST);
return new ResponseEntity<Iterable<Satellite>>(HttpStatus.BAD_REQUEST);
}
}
}
}
@RequestMapping(path = "/findAll", method = RequestMethod.GET)
@RequestMapping(path = "/findAll", method = RequestMethod.GET)
public List<Satellite> findAllgeom() {
public List<Satellite> findAllgeom() {
System.out.println(satelliteRepository.findAll());
System.out.println(satelliteRepository.findAll());
return satelliteRepository.findAll();
return satelliteRepository.findAll();
}
}
@GetMapping("/getDemoData")
@GetMapping("/getDemoData")
public String getDemoData() {
public String getDemoData() {
return satelliteRepository.getDummyData(1818 ,"");
return satelliteRepository.getDummyData(1818 ,"");
}
}
@PostMapping("/gettaluka/{name}")
public List<Taluka> getTalukaByName(@PathVariable("name") String name){
//System.out.println("in gettaluka");
//System.out.println(talukaRepo.findByTalukanameContainingIgnoreCase(name));
return talukaRepo.findByTalukanameContainingIgnoreCase(name);
}
@RequestMapping(value = "intersectbygeom/{id}", method = RequestMethod.POST)
List<Satellite> getIntersectGeom(@PathVariable("id")Integer id) {
/*
* System.out.println(taluka.getGid());
* System.out.println(talukaRepo.intersectByGeom(id);
*/
System.out.println("test geom"+satelliteRepository.intersectByGeom(id));
return satelliteRepository.intersectByGeom(id);
}
}
}
package com.GisSatellite.Server.Controller;
package com.GisSatellite.Server.Controller;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.HashMap;
import java.util.List;
import java.util.List;
import java.util.Scanner;
import java.util.Scanner;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.io.WKTReader;
import org.locationtech.jts.io.WKTReader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.GisSatellite.Server.Entities.Satellite;
import com.GisSatellite.Server.Entities.Satellite;
import com.GisSatellite.Server.Repository.SatelliteRepository;
import com.GisSatellite.Server.Repository.SatelliteRepository;
import com.GisSatellite.Server.Services.SatelliteServices;
import com.GisSatellite.Server.Services.SatelliteServices;
import com.sun.el.parser.ParseException;
import com.sun.el.parser.ParseException;
@Controller
@Controller
public class SatelliteController {
public class SatelliteController {
@Autowired
@Autowired
private SatelliteServices satelliteServices;
private SatelliteServices satelliteServices;
@Autowired
@Autowired
private SatelliteRepository satelliteRepo;
private SatelliteRepository satelliteRepo;
@Autowired
@Autowired
private CommonController comcon;
private CommonController comcon;
@RequestMapping("/satelliteform")
@RequestMapping("/satelliteform")
public String home1() {
public String home1() {
return "satelliteform";
return "satelliteform";
}
}
@RequestMapping("/attribute")
@RequestMapping("/attribute")
public String home2() {
public String home2() {
return "attribute";
return "attribute";
}
}
@RequestMapping(path="/attribute", method=RequestMethod.GET)
@RequestMapping(path="/attribute", method=RequestMethod.GET)
public String getData(Model model,@Param("keyword") String keyword) {
public String getData(Model model,@Param("keyword") String keyword) {
List<Satellite> list = satelliteServices.listAll(keyword);
List<Satellite> list = satelliteServices.listAll(keyword);
model.addAttribute("list", list);
model.addAttribute("list", list);
model.addAttribute("keyword", keyword);
model.addAttribute("keyword", keyword);
return "attribute";
return "attribute";
}
}
@RequestMapping(path="/success", method=RequestMethod.POST, consumes = {"multipart/form-data"})
@RequestMapping(path="/success", method=RequestMethod.POST, consumes = {"multipart/form-data"})
public String handlerform(@ModelAttribute @Validated Satellite satelliteform,BindingResult bindingResult,
public String handlerform(@ModelAttribute @Validated Satellite satelliteform,BindingResult bindingResult,
@RequestParam(value = "image1") MultipartFile image1,
@RequestParam(value = "image1") MultipartFile image1,
HttpServletRequest request, MultipartHttpServletRequest req,
HttpServletRequest request, MultipartHttpServletRequest req,
@RequestParam(value = "msg", required = false) String msg, ModelMap modelMap) throws ParseException
@RequestParam(value = "msg", required = false) String msg, ModelMap modelMap) throws ParseException
{
{
try {
try {
if (!image1.isEmpty()) {
if (!image1.isEmpty()) {
String name = comcon.fileupload(image1.getBytes(), image1.getOriginalFilename());
String name = comcon.fileupload(image1.getBytes(), image1.getOriginalFilename());
if (name != "") {
if (name != "") {
satelliteform.setImage1(name);
satelliteform.setImage1(name);
//adminform.setPre_not(name);
//adminform.setPre_not(name);
}
}
}
}
// if (!image2.isEmpty()) {
// if (!image2.isEmpty()) {
// String name = comcon.fileupload(image2.getBytes(), image2.getOriginalFilename());
// String name = comcon.fileupload(image2.getBytes(), image2.getOriginalFilename());
// if (name != "") {
// if (name != "") {
// satelliteform.setImage2(name);
// satelliteform.setImage2(name);
// //adminform.setPre_not(name);
// //adminform.setPre_not(name);
// }
// }
// }
// }
// if (!image3.isEmpty()) {
// if (!image3.isEmpty()) {
// String name = comcon.fileupload(image3.getBytes(), image3.getOriginalFilename());
// String name = comcon.fileupload(image3.getBytes(), image3.getOriginalFilename());
// if (name != "") {
// if (name != "") {
// satelliteform.setImage3(name);
// satelliteform.setImage3(name);
// //adminform.setPre_not(name);
// //adminform.setPre_not(name);
// }
// }
// }
// }
} catch (Exception e) {
} catch (Exception e) {
}
}
System.out.println(satelliteform);
System.out.println(satelliteform);
//String wkt="POLYGON((75.83036587499998 22.921094475424255,79.08231899999998 23.64767847769751,79.69755337499998 20.71823588581489,76.35770962499998 20.22419690313707,75.83036587499998 22.921094475424255))";
//String wkt="POLYGON((75.83036587499998 22.921094475424255,79.08231899999998 23.64767847769751,79.69755337499998 20.71823588581489,76.35770962499998 20.22419690313707,75.83036587499998 22.921094475424255))";
String wkt = "POLYGON(("+satelliteform.getUllong()+" "+satelliteform.getUllat()+"," +satelliteform.getUrlong()+" "+satelliteform.getUrlat()+","+satelliteform.getLrlong()+" "+satelliteform.getLrlat()+"," +satelliteform.getLllong()+" "+satelliteform.getLllat()+","+satelliteform.getUllong()+" "+satelliteform.getUllat()+"))";
String wkt = "POLYGON(("+satelliteform.getUllong()+" "+satelliteform.getUllat()+"," +satelliteform.getUrlong()+" "+satelliteform.getUrlat()+","+satelliteform.getLrlong()+" "+satelliteform.getLrlat()+"," +satelliteform.getLllong()+" "+satelliteform.getLllat()+","+satelliteform.getUllong()+" "+satelliteform.getUllat()+"))";
WKTReader wktReader = new WKTReader();
WKTReader wktReader = new WKTReader();
try {
try {
satelliteform.setWktgeom(wkt);
satelliteform.setWktgeom(wkt);
Geometry geom = wktReader.read(satelliteform.getWktgeom());
Geometry geom = wktReader.read(satelliteform.getWktgeom());
satelliteform.setAddgeom(geom);
satelliteform.setAddgeom(geom);
} catch (Exception e) {
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println(e.getMessage());
e.printStackTrace();
e.printStackTrace();
}
}
System.out.println(satelliteform);
System.out.println(satelliteform);
satelliteRepo.save(satelliteform);
satelliteRepo.save(satelliteform);
return "success";
return "success";
}
}
@PostMapping("/uploadFile")
@PostMapping("/uploadFile")
public String uploadFile(@RequestParam("textFile") MultipartFile file,Model model) throws FileNotFoundException {
public String uploadFile(@RequestParam("textFile") MultipartFile file,Model model) throws FileNotFoundException {
if(file.isEmpty()){
if(file.isEmpty()){
//if file is empty then put your message
//if file is empty then put your message
System.out.println("No File Found");
System.out.println("No File Found");
}
}
else {
else {
String content;
String content;
try {
try {
content = new String(file.getBytes(), StandardCharsets.UTF_8);
content = new String(file.getBytes(), StandardCharsets.UTF_8);
Scanner myReader = new Scanner(content);
Scanner myReader = new Scanner(content);
HashMap<String, String> map = new HashMap<>();
HashMap<String, String> map = new HashMap<>();
while (myReader.hasNext()) {
while (myReader.hasNext()) {
String data = myReader.nextLine();
String data = myReader.nextLine();
String part[]= data.split("=");
String part[]= data.split("=");
map.put(part[0],part[1]);
map.put(part[0],part[1]);
}
}
System.out.println(map);
System.out.println(map);
System.out.println(map.get("DPCounter"));
// System.out.println(map.get("DPCounter"));
System.out.println(map.size());
// System.out.println(map.size());
myReader.close();
myReader.close();
model.addAttribute("filedata", map);
model.addAttribute("filedata", map);
return "satelliteform";
return "satelliteform";
} catch (IOException e) {
} catch (IOException e) {
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e.printStackTrace();
e.printStackTrace();
}
}
// File myObj = new File(file);
// File myObj = new File(file);
}
}
return "satelliteform";
return "satelliteform";
}
}
}
}
package com.GisSatellite.Server.Repository;
package com.GisSatellite.Server.Repository;
import java.sql.Date;
import java.sql.Date;
import java.util.List;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.data.repository.query.Param;
import com.GisSatellite.Server.Entities.FilterData;
import com.GisSatellite.Server.Entities.FilterData;
import com.GisSatellite.Server.Entities.Satellite;
import com.GisSatellite.Server.Entities.Satellite;
import com.GisSatellite.Server.Entities.Taluka;
public interface SatelliteRepository extends JpaRepository<Satellite,Long> {
public interface SatelliteRepository extends JpaRepository<Satellite,Long> {
//
//
// @Query("SELECT t FROM Satellite_data t WHERE t.satellite = 'CARTOSAT-1'")
// @Query("SELECT t FROM Satellite_data t WHERE t.satellite = 'CARTOSAT-1'")
// void getFilteredData(FilterData filterData);
// void getFilteredData(FilterData filterData);
// @Query(value = "UPDATE satellite_data2 SET geom = ST_POINT(center_lat, center_long)",nativeQuery = true)
// @Query(value = "UPDATE satellite_data2 SET geom = ST_POINT(center_lat, center_long)",nativeQuery = true)
// Satellite addgeom();
// Satellite addgeom();
//
//
// @Query(value="select * from register where email=?1 and password=?2",nativeQuery= true)
// @Query(value="select * from register where email=?1 and password=?2",nativeQuery= true)
// RegisterModel getRegister(String email, String password);
// RegisterModel getRegister(String email, String password);
@Query("from Satellite where id = ?1")
@Query("from Satellite where id = ?1")
public List<Satellite> search(String keyword);
public List<Satellite> search(String keyword);
List<Satellite> findAll();
List<Satellite> findAll();
// List<Satellite> getFilteredData(String satelite,String sensors,String localIdFrom,String localIdTo);
// List<Satellite> getFilteredData(String satelite,String sensors,String localIdFrom,String localIdTo);
@Query(value="select * from satellite_data WHERE satelite= ?1 AND sansor= ?2 AND localcd BETWEEN (?3 OR ?3 is null) AND ?4 AND date BETWEEN ?5 AND ?6 AND path BETWEEN ?7 AND ?8 AND row BETWEEN ?9 AND ?10",nativeQuery = true)
@Query(value="select * from satellite_data WHERE satelite= ?1 AND sansor= ?2 AND localcd BETWEEN (?3 OR ?3 is null) AND ?4 AND date BETWEEN ?5 AND ?6 AND path BETWEEN ?7 AND ?8 AND row BETWEEN ?9 AND ?10",nativeQuery = true)
public List<Satellite> getFilteredData(String satelite, String sensors, Integer integer5, Integer integer6,
public List<Satellite> getFilteredData(String satelite, String sensors, Integer integer5, Integer integer6,
Date date, Date date2 , Integer integer,Integer integer2,Integer integer3,Integer integer4,Satellite st);
Date date, Date date2 , Integer integer,Integer integer2,Integer integer3,Integer integer4,Satellite st);
@Query(value="select * from satellite_data where (localcd = ?1)" +
@Query(value="select * from satellite_data where (localcd = ?1)" +
" AND (satelite = ?2 OR satelite is null)",nativeQuery = true)
" AND (satelite = ?2 OR satelite is null)",nativeQuery = true)
public String getDummyData(int i, String string);
public String getDummyData(int i, String string);
@Query(value = "SELECT a.* FROM satellite_data_5 as a, subdistrict2011_bound as b where b.gid =:id and ST_Intersects(a.addgeom, b.geom)='t' ",nativeQuery = true)
List<Satellite> intersectByGeom( int id);
// String getFilteredData(String localIdFrom, String localIdTo, String satelite, String sensors, String dateOfPassFrom,
// String getFilteredData(String localIdFrom, String localIdTo, String satelite, String sensors, String dateOfPassFrom,
// String dataOfPassTo, String dateOfPassFrom2, String dataOfPassTo2, String rowFrom, String pathTo);
// String dataOfPassTo, String dateOfPassFrom2, String dataOfPassTo2, String rowFrom, String pathTo);
//
//
// @Query("from Satellite WHERE id between ?1 and ?2")
// @Query("from Satellite WHERE id between ?1 and ?2")
//
//
//
//
// public List<Satellite> search1(String id);
// public List<Satellite> search1(String id);
//
//
// List<Satellite> findAllById(String id);
// List<Satellite> findAllById(String id);
}
}
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<html lang="en">
<head>
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="description" content="">
<meta name="author" content="">
<meta name="author" content="">
<title>ANS</title>
<title>ANS</title>
<!-- Bootstrap core CSS -->
<!-- Bootstrap core CSS -->
<link rel="stylesheet" type="text/css" href="assets/css/icons.css" />
<link rel="stylesheet" type="text/css" href="assets/css/icons.css" />
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css">
<link href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css">
<link href="//cdn.datatables.net/buttons/1.6.4/css/buttons.dataTables.min.css">
<link href="//cdn.datatables.net/buttons/1.6.4/css/buttons.dataTables.min.css">
<link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" type="text/css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" type="text/css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<link href="ol/ol.css" rel="stylesheet">
<link href="ol/ol.css" rel="stylesheet">
<link href="customol/css/customOlStyle.css" rel="stylesheet" />
<link href="customol/css/customOlStyle.css" rel="stylesheet" />
<!-- Custom styles for this template -->
<!-- Custom styles for this template -->
<link href="css/simple-sidebar.css" rel="stylesheet">
<link href="css/simple-sidebar.css" rel="stylesheet">
<!-- javascript -->
<!-- javascript -->
<script src="jquery-3.5.1.min.js"></script>
<script src="jquery-3.5.1.min.js"></script>
<script src="customol/js/identify.js"></script>
<script src="customol/js/identify.js"></script>
<script src="customol/js/LayersGroup/commonlayersGroup.js"></script>
<script src="customol/js/LayersGroup/commonlayersGroup.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<link href="vendor/jquery/multiselect.js">
<link href="vendor/jquery/multiselect.js">
</head>
</head>
<style>
<style>
tfoot input {
tfoot input {
display: table-row-group;
display: table-row-group;
}
}
</style>
</style>
<body>
<body>
<div class="d-flex" id="wrapper">
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<!-- Sidebar -->
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading">
<div class="sidebar-heading">
<img src="images/bisag_logo.png" style="width:130px; height:130px; margin-left:60px;padding-top:2px; padding-bottom:25px;">
<img src="images/bisag_logo.png" style="width:130px; height:130px; margin-left:60px;padding-top:2px; padding-bottom:25px;">
</div>
</div>
<div class="list-group list-group-flush">
<div class="list-group list-group-flush">
<!-- <a href="#" class="list-group-item list-group-item-action bg-light nav-item dropdown nav-link dropdown-toggle">Optical</a>
<!-- <a href="#" class="list-group-item list-group-item-action bg-light nav-item dropdown nav-link dropdown-toggle">Optical</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
<a class="dropdown-item" href="#">Something else here</a>
</div> -->
</div> -->
<li class="nav-item dropdown list-group-item list-group-item-action bg-light nav-item dropdown nav-link">
<li class="nav-item dropdown list-group-item list-group-item-action bg-light nav-item dropdown nav-link">
<!-- <select class="custom-select mr-sm-2" id="inlineFormCustomSelect"> -->
<!-- <select class="custom-select mr-sm-2" id="inlineFormCustomSelect"> -->
<!-- <option selected>Choose...</opion> -->
<!-- <option selected>Choose...</opion> -->
<!-- <option value="1"><a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> -->
<!-- <option value="1"><a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> -->
<!-- Optical -->
<!-- Optical -->
<!-- </a></option> -->
<!-- </a></option> -->
<!-- <option value="2"><a class="dropdown-item" href="#">Microwave</a></option> -->
<!-- <option value="2"><a class="dropdown-item" href="#">Microwave</a></option> -->
<!-- </select> -->
<!-- </select> -->
</li>
</li>
<!-- <ul class="navbar-nav ml-auto mt-2 mt-lg-0">
<!-- <ul class="navbar-nav ml-auto mt-2 mt-lg-0">
<li class="nav-item dropdown">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
Dropdown
</a>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</li>
</li>
</ul> -->
</ul> -->
<form id ="filterform">
<form id ="filterform">
<div class="form-row align-items-center">
<div class="form-row align-items-center">
<div style="border:2px solid black;margin-left:10px;width:300px;height:45px">
<div style="border:2px solid black;margin-left:10px;width:300px;height:45px">
<h5 style="margin-top:5px;margin-left:15px"><a href="#" class="" data-toggle="modal" data-target="#myModal" id="attri" onclick="myFunction1()">Attribute</a>
<h5 style="margin-top:5px;margin-left:15px"><a href="#" class="" data-toggle="modal" data-target="#myModal" id="attri" onclick="myFunction1()">Attribute</a>
<a href="#" style="margin-top:5px" class="" id="attri2"onclick="myFunction2()">Spatial</a></h5>
<a href="#" style="margin-top:5px" class="" id="attri2"onclick="myFunction2()">Spatial</a></h5>
</div>
</div>
<!-- <a href="#" class="list-group-item list-group-item-action bg-light">Events</a>
<!-- <a href="#" class="list-group-item list-group-item-action bg-light">Events</a>
<a href="#" class="list-group-item list-group-item-action bg-light">Profile</a>
<a href="#" class="list-group-item list-group-item-action bg-light">Profile</a>
<a href="#" class="list-group-item list-group-item-action bg-light">Status</a> -->
<a href="#" class="list-group-item list-group-item-action bg-light">Status</a> -->
</div>
</div>
<div class="modal-body" id="attribute_filter" style="padding:0px;">
<div class="modal-body" id="attribute_filter" style="padding:0px;">
<!-- <div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black"> -->
<!-- <div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black"> -->
<!-- <h5 style="width:90px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Local ID</h5> -->
<!-- <h5 style="width:90px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Local ID</h5> -->
<input style =" width:120px;margin-left:10px" name="localIdFrom" id="localIdFrom" type="hidden" placeholder="From" >
<input style =" width:120px;margin-left:10px" name="localIdFrom" id="localIdFrom" type="hidden" placeholder="From" >
<!-- <span>-</span> -->
<!-- <span>-</span> -->
<input style =" width:120px;" id="localIdTo" name="localIdTo" type="hidden" placeholder="To" >
<input style =" width:120px;" id="localIdTo" name="localIdTo" type="hidden" placeholder="To" >
<!-- </div> -->
<!-- </div> -->
<div style="margin-top:10px;margin-left:5px;height:55px;width:300px;border:2px solid black">
<div style="margin-top:10px;margin-left:5px;height:55px;width:300px;border:2px solid black">
<h5 style="width:80px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Satellite</h5>
<h5 style="width:80px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Satellite</h5>
<select name="satelite" id="satelite">
<select name="satelite" id="satelite">
<option selected disabled>Choose one</option>
<option selected disabled>Choose one</option>
<option value="CARTOSAT-1">CARTOSAT-1</option>
<option value="CARTOSAT-1">CARTOSAT-1</option>
<option value="CARTOSAT-2">CARTOSAT-2</option>
<option value="CARTOSAT-2">CARTOSAT-2</option>
<option value="CARTOSAT-2D">CARTOSAT-2D</option>
<option value="CARTOSAT-2D">CARTOSAT-2D</option>
<option value="CARTOSAT-2E">CARTOSAT-2E</option>
<option value="CARTOSAT-2E">CARTOSAT-2E</option>
<option value="IKONOS">IKONOS</option>
<option value="IKONOS">IKONOS</option>
<option value="IRS-1A">IRS-1A</option>
<option value="IRS-1A">IRS-1A</option>
<option value="IRS-1B">IRS-1B</option>
<option value="IRS-1B">IRS-1B</option>
<option value="IRS-1C">IRS-1C</option>
<option value="IRS-1C">IRS-1C</option>
<option value="IRS-1D">IRS-1D</option>
<option value="IRS-1D">IRS-1D</option>
<option value="IRS-P3">IRS-P3</option>
<option value="IRS-P3">IRS-P3</option>
<option value="IRS-P4">IRS-P4</option>
<option value="IRS-P4">IRS-P4</option>
<option value="IRS-P6">IRS-P6</option>
<option value="IRS-P6">IRS-P6</option>
<option value="IRS-R2">IRS-R2</option>
<option value="IRS-R2">IRS-R2</option>
<option value="IRS-R2A">IRS-R2A</option>
<option value="IRS-R2A">IRS-R2A</option>
<option value="OCEANSAT-2">OCEANSAT-2</option>
<option value="OCEANSAT-2">OCEANSAT-2</option>
<option value="RISAT-1">RISAT-1</option>
<option value="RISAT-1">RISAT-1</option>
</select>
</select>
</div>
</div>
<div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black">
<div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black">
<h5 style="width:70px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Sensor</h5>
<h5 style="width:70px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Sensor</h5>
<select name="sensors" id="sensors">
<select name="sensors" id="sensors">
<optgroup >
<optgroup >
<option selected disabled>Choose one</option>
<option selected disabled>Choose one</option>
<option value="AW">AW</option>
<option value="AW">AW</option>
<option value="L1">L1</option>
<option value="L1">L1</option>
<option value="L2">L2</option>
<option value="L2">L2</option>
<option value="L3">L3</option>
<option value="L3">L3</option>
<option value="L4">L4</option>
<option value="L4">L4</option>
<option value="MX">MX</option>
<option value="MX">MX</option>
<option value="OCM">OCM</option>
<option value="OCM">OCM</option>
<option value="PAN">PAN</option>
<option value="PAN">PAN</option>
<option value="PAN/MSI">PAN/MSI</option>
<option value="PAN/MSI">PAN/MSI</option>
<option value="SAR">SAR</option>
<option value="SAR">SAR</option>
<option value="WIF">WIF</option>
<option value="WIF">WIF</option>
</optgroup>
</optgroup>
</select>
</select>
</div>
</div>
<div style="margin-top:10px;margin-left:5px;height:90px;width:300px;border:2px solid black">
<div style="margin-top:10px;margin-left:5px;height:90px;width:300px;border:2px solid black">
<h5 style="width:120px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Date of Pass</h5>
<h5 style="width:120px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Date of Pass</h5>
<input name="dateOfPassFrom" class ="text-w-align" placeholder="From" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="dateOfPassFrom" value="2020-12-01" >
<input name="dateOfPassFrom" class ="text-w-align" placeholder="From" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="dateOfPassFrom" value="2020-12-01" >
<input name="dateOfPassTo" class="text-w-align" placeholder="To" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="dateOfPassTo" value="2020-12-31" >
<input name="dateOfPassTo" class="text-w-align" placeholder="To" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="dateOfPassTo" value="2020-12-31" >
</div>
</div>
<div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black">
<div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black">
<h5 style="width:50px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Path</h5>
<h5 style="width:50px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Path</h5>
<input name="pathFrom" style =" width:120px;margin-left:10px" id="pathFrom" type="number" placeholder="From">
<input name="pathFrom" style =" width:120px;margin-left:10px" id="pathFrom" type="number" placeholder="From">
<span>-</span>
<span>-</span>
<input name="pathTo" style =" width:120px;" id="pathTo" type="number" placeholder="To">
<input name="pathTo" style =" width:120px;" id="pathTo" type="number" placeholder="To">
</div>
</div>
<div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black">
<div style="margin-top:10px;margin-left:5px;height:70px;width:300px;border:2px solid black">
<h5 style="width:50px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Row</h5>
<h5 style="width:50px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Row</h5>
<input name="rowFrom" style =" width:120px;margin-left:10px" id="rowFrom" type="number" placeholder="From">
<input name="rowFrom" style =" width:120px;margin-left:10px" id="rowFrom" type="number" placeholder="From">
<span>-</span>
<span>-</span>
<input name="rowTo" style =" width:120px;" id="rowTo" type="number" placeholder="To">
<input name="rowTo" style =" width:120px;" id="rowTo" type="number" placeholder="To">
</div>
</div>
<div class="modal-footer">
<div class="modal-footer">
<!-- <input type="submit" value="FILTER" > -->
<!-- <input type="submit" value="FILTER" > -->
<button id="filter" value="val_1" name="but1" class="btn btn-warning">Filter</button>
<button id="filter" value="val_1" name="but1" class="btn btn-warning">Filter</button>
<!-- <input value="Submit" type="submit" onclick="filterData()"> -->
<!-- <input value="Submit" type="submit" onclick="filterData()"> -->
<button id="reset" name="reset" onclick="resetForm()" class="btn btn-warning">Reset</button>
<button id="reset" name="reset" onclick="resetForm()" class="btn btn-warning">Reset</button>
<!-- <input type="button" onclick="resetForm()" class="btn btn-warning" value="Reset form"> -->
<!-- <input type="button" onclick="resetForm()" class="btn btn-warning" value="Reset form"> -->
</div>
</div>
</form>
</form>
<script>
<script>
function resetForm() {
function resetForm() {
document.getElementById("filterform").reset();
document.getElementById("filterform").reset();
}
}
</script>
</script>
</div>
</div>
<!-- attribute_filter2 select special type -->
<!-- attribute_filter2 select special type -->
<div class="modal-body" id="attribute_filter2" style="padding:0px;">
<div class="modal-body" id="attribute_filter2" style="padding:0px;">
<form id ="filterform1">
<form id ="filterform1">
<div style="margin-top:10px;margin-left:5px;height:55px;width:300px;border:2px solid black">
<div style="margin-top:10px;margin-left:5px;height:55px;width:300px;border:2px solid black">
<h5 style="width:180px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Select Special Type</h5>
<h5 style="width:180px;margin-top:-10px;margin-left:5px;background:#f8f9fa;">Select Special Type</h5>
<select name="selectnone" id="selectnone" onchange="changeFunc();">
<select name="selectnone" id="selectnone" onchange="changeFunc();">
<option value="selectnone">Select None</option>
<option value="selectnone">Select None</option>
<option value="city">City</option>
<option value="city">City</option>
<option value="point">Point</option>
<option value="point">Point</option>
<option value="administrator">Administrator Boundaries</option>
<option value="administrator">Administrator Boundaries</option>
<option value="rectangular">Rectangular Extent</option>
<option value="rectangular">Rectangular Extent</option>
</select>
</select>
</div>
</div>
<input style ="display:none;margin-top:10px;margin-left:80px;width:150px" id="cityname" type="text" placeholder="city name" >
</form>
<input style ="display:none;margin-top:10px;margin-left:80px;width:150px" id="cityname" type="text" name="gid" placeholder="city name" >
<div id="search-result"></div>
<div class="clear"></div>
<div class="modal-footer">
<div class="modal-footer">
<button class="btn btn-warning">Filter</button>
<button id="cityfilter" class="btn btn-warning" onclick="onclicktaluka()">Filter</button>
<button id="reset" name="reset" onclick="resetForm1()" class="btn btn-warning">Reset</button>
<button id="reset" name="reset" onclick="resetForm1()" class="btn btn-warning">Reset</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Page Content -->
<!-- Page Content -->
<div id="page-content-wrapper">
<div id="page-content-wrapper">
<!-- <nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom"> -->
<!-- <nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom"> -->
<!-- <button class="btn btn-primary" id="menu-toggle">Toggle Menu</button> -->
<!-- <button class="btn btn-primary" id="menu-toggle">Toggle Menu</button> -->
<!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> -->
<!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> -->
<!-- <span class="navbar-toggler-icon"></span> -->
<!-- <span class="navbar-toggler-icon"></span> -->
<!-- </button> -->
<!-- </button> -->
<!-- </nav> -->
<!-- </nav> -->
<div class="container-fluid">
<div class="container-fluid">
<h4 class="mt-4">Satellite Data Information System (SDIS 2.0)</h4>
<h4 class="mt-4">Satellite Data Information System (SDIS 2.0)</h4>
<!--<p>The starting state of the menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will change.</p>
<!--<p>The starting state of the menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will change.</p>
<p>Make sure to keep all page content within the <code>#page-content-wrapper</code>. The top navbar is optional, and just for demonstration. Just create an element with the <code>#menu-toggle</code> ID which will toggle the menu when clicked.</p> -->
<p>Make sure to keep all page content within the <code>#page-content-wrapper</code>. The top navbar is optional, and just for demonstration. Just create an element with the <code>#menu-toggle</code> ID which will toggle the menu when clicked.</p> -->
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
<div class="card-body ">
<div class="card-body ">
<div class="row">
<div class="row">
<div class="col-md-1" style="max-width: 3%;position: absolute;left: 0px;z-index: 1000;">
<div class="col-md-1" style="max-width: 3%;position: absolute;left: 0px;z-index: 1000;">
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="defaultmap()">
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="defaultmap()">
<i class="material-icons">language</i>
<i class="material-icons">language</i>
</button>
</button>
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="zoomIn()">
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="zoomIn()">
<i class="material-icons">add</i>
<i class="material-icons">add</i>
</button>
</button>
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="zoomOut()">
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="zoomOut()">
<i class="material-icons">remove</i>
<i class="material-icons">remove</i>
</button>
</button>
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="geolocation()">
<button class="btn btn-info btn-round btn-fab btn-sm" onclick="geolocation()">
<i class="material-icons">gps_fixed</i>
<i class="material-icons">gps_fixed</i>
</button>
</button>
<button class="btn btn-info btn-round btn-fab btn-sm">
<button class="btn btn-info btn-round btn-fab btn-sm">
<i class="material-icons">view_list</i>
<i class="material-icons">view_list</i>
</button>
</button>
<button class="btn btn-info btn-round btn-fab btn-sm">
<button class="btn btn-info btn-round btn-fab btn-sm">
<i class="material-icons">fullscreen</i>
<i class="material-icons">fullscreen</i>
</button>
</button>
</div>
</div>
<div class="" style="position: fixed;top: 150px;right: 0;width: 64px;background:rgba(0, 0, 0, .3);z-index: 1031;border-radius: 8px 0 0 8px;text-align: center;">
<div class="" style="position: fixed;top: 150px;right: 0;width: 64px;background:rgba(0, 0, 0, .3);z-index: 1031;border-radius: 8px 0 0 8px;text-align: center;">
<div class="dropdown show-dropdown">
<div class="dropdown show-dropdown">
<a href="#" id="show_hide">
<a href="#" id="show_hide">
<i class="material-icons">language </i>
<i class="material-icons">language </i>
</a>
</a>
</div>
</div>
</div>
</div>
<div id="slidingDiv" style="position: absolute;top:150px;right: 60px;z-index:100;min-width: 500px;">
<div id="slidingDiv" style="position: absolute;top:150px;right: 60px;z-index:100;min-width: 500px;">
<div class="col-md-12">
<div class="col-md-12">
<div class="card ">
<div class="card ">
<div class="card-body">
<div class="card-body">
<div class="row">
<div class="row">
<div class="col-md-10">
<div class="col-md-10">
<div class="tab-content">
<div class="tab-content">
<div class="tab-pane active" id="link112">
<div class="tab-pane active" id="link112">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Layer Groups: <span id="groupscount"></span></h4>
<h4 class="card-title">Layer Groups: <span id="groupscount"></span></h4>
</div>
</div>
<div id="accordion" role="tablist">
<div id="accordion" role="tablist">
<div id="groups">
<div id="groups">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="link113">
<div class="tab-pane" id="link113">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Find near by position</h4>
<h4 class="card-title">Find near by position</h4>
</div>
</div>
First
First
</div>
</div>
<div class="tab-pane" id="link114">
<div class="tab-pane" id="link114">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Add Geom</h4>
<h4 class="card-title">Add Geom</h4>
</div>
</div>
First
First
</div>
</div>
<div class="tab-pane" id="link116">
<div class="tab-pane" id="link116">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Buffer</h4>
<h4 class="card-title">Buffer</h4>
</div>
</div>
First
First
</div>
</div>
<div class="tab-pane" id="link117">
<div class="tab-pane" id="link117">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Identify</h4>
<h4 class="card-title">Identify</h4>
</div>
</div>
<div id="idaccordionn" role="tablist">
<div id="idaccordionn" role="tablist">
<div id="groupss">
<div id="groupss">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="link118">
<div class="tab-pane" id="link118">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Measure</h4>
<h4 class="card-title">Measure</h4>
</div>
</div>
<div class="">
<div class="">
<ul class="nav nav-pills nav-pills-rose" role="tablist" style="padding-top: 5px;">
<ul class="nav nav-pills nav-pills-rose" role="tablist" style="padding-top: 5px;">
<li class="nav-item">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#link1" role="tablist" onclick=selectedType('LineString') style="border-radius: 10px;padding: 2px 5px;">
<a class="nav-link active" data-toggle="tab" href="#link1" role="tablist" onclick=selectedType('LineString') style="border-radius: 10px;padding: 2px 5px;">
<i class="material-icons" style="padding: 1px 0;">linear_scale</i>
<i class="material-icons" style="padding: 1px 0;">linear_scale</i>
</a>
</a>
</li>
</li>
<li class="nav-item">
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#link2" role="tablist" onclick=selectedType('Polygon') style="border-radius: 10px;padding: 2px 5px;">
<a class="nav-link" data-toggle="tab" href="#link2" role="tablist" onclick=selectedType('Polygon') style="border-radius: 10px;padding: 2px 5px;">
<i class="material-icons"style="padding: 1px 0;">square_foot</i>
<i class="material-icons"style="padding: 1px 0;">square_foot</i>
</a>
</a>
</li>
</li>
<li class="nav-item">
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#link3" role="tablist" onclick=selectedType('Circle') style="border-radius: 10px;padding: 2px 5px;">
<a class="nav-link" data-toggle="tab" href="#link3" role="tablist" onclick=selectedType('Circle') style="border-radius: 10px;padding: 2px 5px;">
<i class="material-icons"style="padding: 1px 0;"> panorama_fish_eye</i>
<i class="material-icons"style="padding: 1px 0;"> panorama_fish_eye</i>
</a>
</a>
</li>
</li>
</ul>
</ul>
<div class="tab-content tab-space">
<div class="tab-content tab-space">
<div class="tab-pane active" id="link1">
<div class="tab-pane active" id="link1">
Click on the map to start measure distance<br>
Click on the map to start measure distance<br>
Distance:<span id="distance"></span> </div>
Distance:<span id="distance"></span> </div>
<div class="tab-pane" id="link2">
<div class="tab-pane" id="link2">
Click on the map to start measure area<br>
Click on the map to start measure area<br>
Area:<span id="area"></span>
Area:<span id="area"></span>
</div>
</div>
<div class="tab-pane" id="link3">
<div class="tab-pane" id="link3">
Click on the map to start measure radious<br>
Click on the map to start measure radious<br>
Radious:<span id="radious"></span>
Radious:<span id="radious"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="link119">
<div class="tab-pane" id="link119">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Query Builder</h4>
<h4 class="card-title">Query Builder</h4>
</div>
</div>
First
First
</div>
</div>
<div class="tab-pane" id="link120">
<div class="tab-pane" id="link120">
<div class="card-header card-header card-header-rose">
<div class="card-header card-header card-header-rose">
<h4 class="card-title">Print</h4>
<h4 class="card-title">Print</h4>
</div>
</div>
<div class="col-lg-5 col-md-6 col-sm-3">
<div class="col-lg-5 col-md-6 col-sm-3">
<a id="export-png" class="btn btn-default"><i class="fa fa-download"></i> Download PNG</a>
<a id="export-png" class="btn btn-default"><i class="fa fa-download"></i> Download PNG</a>
<a id="image-download" download="map.png"></a>
<a id="image-download" download="map.png"></a>
<select class="selectpicker" data-size="7" id="format" data-style="btn btn-primary btn-round" title="Single Select">
<select class="selectpicker" data-size="7" id="format" data-style="btn btn-primary btn-round" title="Single Select">
<option disabled selected>Page Size</option>
<option disabled selected>Page Size</option>
<option value="a0">A0 (slow)</option>
<option value="a0">A0 (slow)</option>
<option value="a1">A1</option>
<option value="a1">A1</option>
<option value="a2">A2</option>
<option value="a2">A2</option>
<option value="a3">A3</option>
<option value="a3">A3</option>
<option value="a4" selected>A4</option>
<option value="a4" selected>A4</option>
<option value="a5">A5 (fast)</option>
<option value="a5">A5 (fast)</option>
</select>
</select>
</div>
</div>
<div class="col-lg-5 col-md-6 col-sm-3">
<div class="col-lg-5 col-md-6 col-sm-3">
<select class="selectpicker" data-size="7" id="resolution" data-style="btn btn-primary btn-round" title="Single Select">
<select class="selectpicker" data-size="7" id="resolution" data-style="btn btn-primary btn-round" title="Single Select">
<option disabled >Resolution</option>
<option disabled >Resolution</option>
<option value="72" selected>72 dpi (fast)</option>
<option value="72" selected>72 dpi (fast)</option>
<option value="150">150 dpi</option>
<option value="150">150 dpi</option>
<option value="300">300 dpi (slow)</option>
<option value="300">300 dpi (slow)</option>
</select>
</select>
</div>
</div>
<div class="col-lg-5 col-md-6 col-sm-3">
<div class="col-lg-5 col-md-6 col-sm-3">
<button class="btn btn-primary" id="export-pdf">Export PDF</button>
<button class="btn btn-primary" id="export-pdf">Export PDF</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-2">
<div class="col-md-2">
<!--
<!--
color-classes: "nav-pills-primary", "nav-pills-info", "nav-pills-success", "nav-pills-warning","nav-pills-danger"
color-classes: "nav-pills-primary", "nav-pills-info", "nav-pills-success", "nav-pills-warning","nav-pills-danger"
-->
-->
<ul class="nav nav-pills nav-pills-rose nav-pills-icons flex-column" role="tablist">
<ul class="nav nav-pills nav-pills-rose nav-pills-icons flex-column" role="tablist">
<li class="nav-item" style="padding-bottom: 10px;">
<li class="nav-item" style="padding-bottom: 10px;">
<a class="nav-links active" data-toggle="tab" href="#link112" role="tablist">
<a class="nav-links active" data-toggle="tab" href="#link112" role="tablist">
<i class="material-icons">layers</i>
<i class="material-icons">layers</i>
</a>
</a>
</li>
</li>
<li class="nav-item" style="padding-bottom: 10px;">
<li class="nav-item" style="padding-bottom: 10px;">
<a class="nav-links" data-toggle="tab" href="#link117" role="tablist">
<a class="nav-links" data-toggle="tab" href="#link117" role="tablist">
<i class="material-icons">location_searching</i>
<i class="material-icons">location_searching</i>
</a>
</a>
</li>
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" id="roleType">
<input type="hidden" id="roleType">
</div>
</div>
<div id="target-map" style="width: 100%; height: 530px;"></div>
<div id="target-map" style="width: 100%; height: 530px;"></div>
<div id="latlon" class="latlon"></div>
<div id="latlon" class="latlon"></div>
<div id="scale" class="scale-line"></div>
<div id="scale" class="scale-line"></div>
<div id="location"
<div id="location"
style="width: 24px; height: 24px; font-size: 24px;">
style="width: 24px; height: 24px; font-size: 24px;">
<div id="popup" class="ol-popup">
<div id="popup" class="ol-popup">
<a href="#" id="popup-closer" class="ol-popup-closer"></a>
<a href="#" id="popup-closer" class="ol-popup-closer"></a>
<div id="popup-content"></div>
<div id="popup-content"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div align="center" class="form-group col-md-12 paddint-top12">
<div align="center" class="form-group col-md-12 paddint-top12">
<div style="float:left">
<div style="float:left">
</div align="center" class="form-group col-md-12 paddint-top12">
</div align="center" class="form-group col-md-12 paddint-top12">
<a style="float:right" href="/satelliteform">Create New </a>
<a style="float:right" href="/satelliteform">Create New </a>
</div>
</div>
<div align="center" class="form-group col-md-12 paddint-top12">
<div align="center" class="form-group col-md-12 paddint-top12">
<table id="getASIReportList" class="table table-striped table-bordered" style="width: 100%; float:right">
<table id="getASIReportList" class="table table-striped table-bordered" style="width: 100%; float:right">
</table>
</table>
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
function clearSearch() {
function clearSearch() {
window.location = "[[@{/}]]";
window.location = "[[@{/}]]";
}
}
</script>
</script>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
<!-- /#page-content-wrapper -->
</div>
</div>
<!-- /#wrapper -->
<!-- /#wrapper -->
<!-- Bootstrap core JavaScript -->
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
<script>
function myFunction1() {
function myFunction1() {
var x = document.getElementById("attribute_filter");
var x = document.getElementById("attribute_filter");
if (x.style.display === "none") {
if (x.style.display === "none") {
x.style.display = "block";
x.style.display = "block";
} else {
} else {
x.style.display = "none";
x.style.display = "none";
}
}
}
}
</script>
</script>
<script>
<script>
function myFunction2() {
function myFunction2() {
var x = document.getElementById("attribute_filter2");
var x = document.getElementById("attribute_filter2");
if (x.style.display === "none") {
if (x.style.display === "none") {
x.style.display = "block";
x.style.display = "block";
} else {
} else {
x.style.display = "none";
x.style.display = "none";
}
}
}
}
</script>
</script>
<script>
<script>
$("#attri2").click(function(){
$("#attri2").click(function(){
$("#attribute_filter").hide();
$("#attribute_filter").hide();
});
});
</script>
</script>
<script>
<script>
$("#attri").click(function(){
$("#attri").click(function(){
$("#attribute_filter2").hide();
$("#attribute_filter2").hide();
});
});
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
function changeFunc() {
function changeFunc() {
var selectBox = document.getElementById("selectnone");
var selectBox = document.getElementById("selectnone");
var selectedValue = selectBox.options[selectBox.selectedIndex].value;
var selectedValue = selectBox.options[selectBox.selectedIndex].value;
if (selectedValue=="city"){
if (selectedValue=="city"){
$('#cityname').show();
$('#cityname').show();
}
}
else {
else {
alert("Error");
alert("Error");
$('#cityname').hide();
$('#cityname').hide();
}
}
}
}
</script>
</script>
<script>
<script>
$(document).ready(function() {
$(document).ready(function() {
var role='${role}';
var role='${role}';
$("#roleType").val(role);
$("#roleType").val(role);
$("#slidingDiv").hide();
$("#slidingDiv").hide();
$('#show_hide').click(function () {
$('#show_hide').click(function () {
$("#slidingDiv").toggle("'slide', {direction: 'right' }, 1000");
$("#slidingDiv").toggle("'slide', {direction: 'right' }, 1000");
});
});
});
});
</script>
</script>
<script>
<script>
div = document.getElementById('attribute_filter2')
div = document.getElementById('attribute_filter2')
//To hide
//To hide
div.style.display="none";
div.style.display="none";
</script>
</script>
<script>
<script>
div = document.getElementById('for_city')
div = document.getElementById('for_city')
//To hide
//To hide
//div.style.display="none";
//div.style.display="none";
</script>
</script>
</body>
</body>
<script src=//cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js></script>
<script src=//cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js></script>
<script>
<script>
//for filter code
//for filter code
$('#filter').click(function(e){
$('#filter').click(function(e){
e.preventDefault();
e.preventDefault();
var code={};
var code={};
code.localIdFrom=document.getElementById('localIdFrom').value;
code.localIdFrom=document.getElementById('localIdFrom').value;
code.localIdTo=document.getElementById('localIdTo').value;
code.localIdTo=document.getElementById('localIdTo').value;
code.satelite=document.getElementById('satelite').value;
code.satelite=document.getElementById('satelite').value;
code.sensors=document.getElementById('sensors').value;
code.sensors=document.getElementById('sensors').value;
/* alert(document.getElementById('dateOfPassFrom').value + "datefrom"); */
/* alert(document.getElementById('dateOfPassFrom').value + "datefrom"); */
if(document.getElementById('dateOfPassFrom').value=='')
if(document.getElementById('dateOfPassFrom').value=='')
{
{
code.dateOfPassFrom=null;
code.dateOfPassFrom=null;
alert(code.dateOfPassFrom);
alert(code.dateOfPassFrom);
}else{
}else{
code.dateOfPassFrom=document.getElementById('dateOfPassFrom').value;
code.dateOfPassFrom=document.getElementById('dateOfPassFrom').value;
}
}
if(document.getElementById('dateOfPassTo').value==''){
if(document.getElementById('dateOfPassTo').value==''){
code.dateOfPassTo=null;
code.dateOfPassTo=null;
}else{
}else{
code.dateOfPassTo=document.getElementById('dateOfPassTo').value;
code.dateOfPassTo=document.getElementById('dateOfPassTo').value;
}
}
code.pathFrom=document.getElementById('pathFrom').value;
code.pathFrom=document.getElementById('pathFrom').value;
code.pathTo=document.getElementById('pathTo').value;
code.pathTo=document.getElementById('pathTo').value;
code.rowFrom=document.getElementById('rowFrom').value;
code.rowFrom=document.getElementById('rowFrom').value;
code.rowTo=document.getElementById('rowTo').value;
code.rowTo=document.getElementById('rowTo').value;
var codobject=JSON.stringify(code);
var codobject=JSON.stringify(code);
//alert(codobject);
//alert(codobject);
console.log(codobject)
console.log(codobject)
$.ajax({
$.ajax({
url:"getData",
url:"getData",
type:"POST",
type:"POST",
data:codobject,
data:codobject,
contentType:"application/json;charset=utf-8",
contentType:"application/json;charset=utf-8",
dataType: 'json',
dataType: 'json',
success: function(data) {
success: function(data) {
loadtable(data);
loadtable(data);
},
},
error : function(request, status, error) {
error : function(request, status, error) {
alert(error.toString)
alert(error.toString)
}
}
})
})
})
})
//close filter code
//close filter code
$(document).ready(function(){
$(document).ready(function(){
$.ajax({
$.ajax({
url: "findAll",
url: "findAll",
type : 'GET',
type : 'GET',
success : function(data) {
success : function(data) {
loadtable(data);
loadtable(data);
},
},
error : function(request, status, error) {
error : function(request, status, error) {
alert(error)
alert(error)
}
}
});
});
})
})
//for datatable code
//for datatable code
function loadtable(data){
function loadtable(data){
console.log(data);
console.log(data);
if ( $.fn.DataTable.isDataTable( '#getASIReportList' ) ) {
if ( $.fn.DataTable.isDataTable( '#getASIReportList' ) ) {
$("#getASIReportList").dataTable().fnDestroy();
$("#getASIReportList").dataTable().fnDestroy();
$('#getASIReportList').empty();
$('#getASIReportList').empty();
}
}
var table=$('#getASIReportList').DataTable({
var table=$('#getASIReportList').DataTable({
pageLength : 5,
pageLength : 5,
dom: 'Bfrtip',
dom: 'Bfrtip',
'processing': true,
'processing': true,
'columnDefs': [{
'columnDefs': [{
'targets': 0,
'targets': 0,
'searchable': false,
'searchable': false,
'orderable': false,
'orderable': false,
'className': 'dt-body-center',
'className': 'dt-body-center',
'render': function (data, type, full, meta){
'render': function (data, type, full, meta){
var longlat='['+full.center_long+','+full.center_lat+']';
var longlat='['+full.center_long+','+full.center_lat+']';
var lname='['+full.lllat+']';
var lname='['+full.lllat+']';
return '<input type="checkbox" id="checkbox" onchange="Myzoom('+longlat+')" name="'+lname+'" value="' + $('<div/>').text(data).html() + '">';
return '<input type="checkbox" id="checkbox" onchange="Myzoom('+longlat+')" name="'+lname+'" value="' + $('<div/>').text(data).html() + '">';
},
},
}],
}],
buttons: [
buttons: [
'pdf'
'pdf'
],
],
"data":data ,
"data":data ,
columns : [{
columns : [{
title : '',
title : '',
data : ''
data : ''
},{
},{
title : 'Layer Name',
title : 'Layer Name',
data : 'layername'
data : 'layername'
}, {
}, {
title : 'Satellite',
title : 'Satellite',
data : 'satelite'
data : 'satelite'
}, {
}, {
title : 'Sensor',
title : 'Sensor',
data : 'sansor'
data : 'sansor'
},{
},{
title: 'Date Of Pass',
title: 'Date Of Pass',
data :'date'
data :'date'
}, {
}, {
title : 'Path',
title : 'Path',
data : 'path'
data : 'path'
}, {
}, {
title : 'Row',
title : 'Row',
data : 'row',
data : 'row',
}, {
}, {
title : 'Center latitude',
title : 'Center latitude',
data : 'center_lat',
data : 'center_lat',
},{
},{
title : 'Center longitude',
title : 'Center longitude',
data : 'center_long',
data : 'center_long',
}
}
]
]
});
});
}
}
//close datatable
//close datatable
function Myzoom(longlat)
function Myzoom(longlat)
{
{
if(longlat!=null)
if(longlat!=null)
{
{
console.log(longlat);
console.log(longlat);
var coordMin = ol.proj.fromLonLat(longlat,'EPSG:3857','EPSG:4326');
var coordMin = ol.proj.fromLonLat(longlat,'EPSG:3857','EPSG:4326');
var coordMax = ol.proj.fromLonLat(longlat,'EPSG:3857','EPSG:4326');
var coordMax = ol.proj.fromLonLat(longlat,'EPSG:3857','EPSG:4326');
var extent=[coordMin[0],coordMin[1],coordMax[0],coordMax[1]];
var extent=[coordMin[0],coordMin[1],coordMax[0],coordMax[1]];
map.getView().fit(extent,map.getSize());
map.getView().fit(extent,map.getSize());
const center = map.getView().getCenter();
const center = map.getView().getCenter();
map.getView().setZoom(8.5);
map.getView().setZoom(8.5);
}
}
}
}
var layerselected=[];
var layerselected=[];
$('#getASIReportList').on('change', 'input[type="checkbox"]', function(){
$('#getASIReportList').on('change', 'input[type="checkbox"]', function(){
var lname=this.name.replace(/[\[\]']+/g,'');
var lname=this.name.replace(/[\[\]']+/g,'');
var styleName='satellite_data_5';
var styleName='satellite_data_5';
var whr="lllat='"+lname+"'";
var whr="lllat='"+lname+"'";
if(this.checked)
if(this.checked)
{
{
SectorLayer= new ol.layer.Tile({
SectorLayer= new ol.layer.Tile({
source : new ol.source.TileWMS({
source : new ol.source.TileWMS({
url : 'http://localhost:8080/geoserver/cite/wms',
url : 'http://localhost:8080/geoserver/cite/wms',
//crossOrigin: 'anonymous',
//crossOrigin: 'anonymous',
params : {
params : {
'LAYERS' : styleName,
'LAYERS' : styleName,
CQL_FILTER: whr,
CQL_FILTER: whr,
format_options:'dpi:180',
format_options:'dpi:180',
version : '1.1.1',
version : '1.1.1',
STYLES:''
STYLES:''
}
}
}),
}),
showLegend: true,
showLegend: true,
//maxResolution : 256,
//maxResolution : 256,
name :styleName,
name :styleName,
//visible:false
//visible:false
}),
}),
layerselected.push(SectorLayer);
layerselected.push(SectorLayer);
map.addLayer(SectorLayer);
map.addLayer(SectorLayer);
console.log(layerselected);
console.log(layerselected);
}
}
else
else
{
{
console.log(layerselected);
console.log(layerselected);
for( var i =0; i<layerselected.length;i++){
for( var i =0; i<layerselected.length;i++){
var a=layerselected[i].get('name');
var a=layerselected[i].get('name');
if(styleName==a)
if(styleName==a)
map.removeLayer(layerselected[i]);
map.removeLayer(layerselected[i]);
}
}
}
}
console.log(layerselected[0]);
console.log(layerselected[0]);
}); //checkbox function close bracket
}); //checkbox function close bracket
</script>
</script>
<script src="ol/ol.js"></script>
<script src="ol/ol.js"></script>
<script src="customol/js/clear.js"></script>
<script src="customol/js/clear.js"></script>
<script src="customol/js/identify.js"></script>
<script src="customol/js/identify.js"></script>
<script src="customol/js/exportpdf.js"></script>
<script src="customol/js/exportpdf.js"></script>
<script src="customol/js/measure.js"></script>
<script src="customol/js/measure.js"></script>
<script src="customol/js/controllers.js"></script>
<script src="customol/js/controllers.js"></script>
<script src="customol/js/navigation.js"></script>
<script src="customol/js/navigation.js"></script>
<script src="customol/js/scaleline.js"></script>
<script src="customol/js/scaleline.js"></script>
<script src="customol/js/mouse-position.js"></script>
<script src="customol/js/mouse-position.js"></script>
<script src="customol/js/layerSwitcher.js"></script>
<script src="customol/js/layerSwitcher.js"></script>
<script src="customol/js/findbylocation.js"></script>
<script src="customol/js/findbylocation.js"></script>
<script src="customol/js/LayersGroup/indianmapLayersGroup.js"></script>
<script src="customol/js/LayersGroup/indianmapLayersGroup.js"></script>
<script src="customol/js/LayersGroup/satelliteGroup.js"></script>
<script src="customol/js/LayersGroup/satelliteGroup.js"></script>
<script src="customol/js/LayersGroup/commonlayersGroup.js"></script>
<script src="customol/js/LayersGroup/commonlayersGroup.js"></script>
<script src="customol/js/LayersGroup/transportGroup.js"></script>
<script src="customol/js/LayersGroup/transportGroup.js"></script>
<script src="customol/js/LayersGroup/IdentifyLayerGroup.js"></script>
<script src="customol/js/LayersGroup/IdentifyLayerGroup.js"></script>
<script src="customol/js/addGeom.js"></script>
<script src="customol/js/addGeom.js"></script>
<script src="customol/js/main.js"></script>
<script src="customol/js/main.js"></script>
<script src="customol/js/services/services.js"></script>
<script src="customol/js/services/services.js"></script>
<script src="customol/js/Base64.js"></script>
<script src="customol/js/Base64.js"></script>
<script src="customol/js/geomForm.js"></script>
<script src="customol/js/geomForm.js"></script>
<script src="mis/js/services/misservices.js"></script>
<script src="mis/js/customscripts/search.js"></script>
</html>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
pageEncoding="ISO-8859-1"%>
<%@page isELIgnored="false"%>
<%@page isELIgnored="false"%>
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<html lang="en">
<head>
<head>
<title>Satellite Form</title>
<title>Satellite Form</title>
<meta charset="UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.ico" />
<link rel="icon" type="image/png" href="images/icons/favicon.ico" />
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css"
<link rel="stylesheet" type="text/css"
href="vendor/bootstrap/css/bootstrap.min.css">
href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css"
<link rel="stylesheet" type="text/css"
href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css"
<link rel="stylesheet" type="text/css"
href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css"
<link rel="stylesheet" type="text/css"
href="vendor/css-hamburgers/hamburgers.min.css">
href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css"
<link rel="stylesheet" type="text/css"
href="vendor/select2/select2.min.css">
href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
<!--===============================================================================================-->
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
if (window.opener != null) {
if (window.opener != null) {
var urlat = window.opener.bufferurlat;
var urlat = window.opener.bufferurlat;
var urlong = window.opener.bufferurlong;
var urlong = window.opener.bufferurlong;
var ullat = window.opener.bufferullat;
var ullat = window.opener.bufferullat;
var ullong = window.opener.bufferullong;
var ullong = window.opener.bufferullong;
var lllat = window.opener.bufferlllat;
var lllat = window.opener.bufferlllat;
var lllong = window.opener.bufferlllong;
var lllong = window.opener.bufferlllong;
var lrlat = window.opener.bufferlrlat;
var lrlat = window.opener.bufferlrlat;
var lrlong = window.opener.bufferlrlong;
var lrlong = window.opener.bufferlrlong;
// var state =window.opener.state_id;
// var state =window.opener.state_id;
// var dist =window.opener.dist_id;
// var dist =window.opener.dist_id;
// var block =window.opener.block_id;
// var block =window.opener.block_id;
// var vill =window.opener.vill_id;
// var vill =window.opener.vill_id;
// console.log("lat"+lat);
// console.log("lat"+lat);
// alert(state+" state "+dist+" dist "+block+" block "+vill+" vill " +GeomType);
// alert(state+" state "+dist+" dist "+block+" block "+vill+" vill " +GeomType);
// console.log("lat"+lat);
// console.log("lat"+lat);
//alert("point"+point);
//alert("point"+point);
// FOR POINT
// FOR POINT
// var point = window.opener.addpoint;
// var point = window.opener.addpoint;
// var GeomType = window.opener.geomtype;
// var GeomType = window.opener.geomtype;
// document.getElementById("addPoint").value = point;
// document.getElementById("addPoint").value = point;
// document.getElementById("geomType").value = GeomType;
// document.getElementById("geomType").value = GeomType;
// FOR POLYGON
// FOR POLYGON
var polygon = window.opener.addpolygon;
var polygon = window.opener.addpolygon;
var GeomType = window.opener.geomtype;
var GeomType = window.opener.geomtype;
document.getElementById("addPolygon").value = polygon;
document.getElementById("addPolygon").value = polygon;
document.getElementById("geomType").value = GeomType;
document.getElementById("geomType").value = GeomType;
document.getElementById("ullat").value = ullat;
document.getElementById("ullat").value = ullat;
document.getElementById("ullong").value = ullong;
document.getElementById("ullong").value = ullong;
document.getElementById("lllat").value = lllat;
document.getElementById("lllat").value = lllat;
document.getElementById("lllong").value = lllong;
document.getElementById("lllong").value = lllong;
document.getElementById("lrlat").value = lrlat;
document.getElementById("lrlat").value = lrlat;
document.getElementById("lrlong").value = lrlong;
document.getElementById("lrlong").value = lrlong;
document.getElementById("urlat").value = urlat;
document.getElementById("urlat").value = urlat;
document.getElementById("urlong").value = urlong;
document.getElementById("urlong").value = urlong;
// document.getElementById("stateId_Hidden").value = state;
// document.getElementById("stateId_Hidden").value = state;
// document.getElementById("districtId_Hidden").value = dist;
// document.getElementById("districtId_Hidden").value = dist;
// document.getElementById("subDistrictId_Hidden").value = block;
// document.getElementById("subDistrictId_Hidden").value = block;
// document.getElementById("villageId_Hidden").value = vill;
// document.getElementById("villageId_Hidden").value = vill;
// //alert("state...."+dist+"......"+block+"......"+vill)
// //alert("state...."+dist+"......"+block+"......"+vill)
// loadState(state);
// loadState(state);
// loadBlankVillage();
// loadBlankVillage();
}
}
// var msg = "" ;
// var msg = "" ;
// msg = document.getElementById("msg").value;
// msg = document.getElementById("msg").value;
// if(msg != null){
// if(msg != null){
// //alert(msg);
// //alert(msg);
// window.close();
// window.close();
// }
// }
});
});
</script>
</script>
</head>
</head>
<body>
<body>
<!-- for bg Image use this tag-->
<!-- for bg Image use this tag-->
<!--div class="container-contact100" style="background-image: url('images/bg-01.jpg');"-->
<!--div class="container-contact100" style="background-image: url('images/bg-01.jpg');"-->
<!-- for White bg use this tag-->
<!-- for White bg use this tag-->
<!--div class="container-contact100" style="background-color: #ffffff"-->
<!--div class="container-contact100" style="background-color: #ffffff"-->
<!-- for Black bg use this tag -->
<!-- for Black bg use this tag -->
<div class="container-contact100" style="background-color: #586266">
<div class="container-contact100" style="background-color: #586266">
<div class="wrap-contact100 ">
<div class="wrap-contact100 ">
<span class="contact100-form-title"> Satellite Form </span>
<form class="contact100-form " action="/uploadFile" method="post"
<form class="contact100-form " action="/uploadFile" method="post"
enctype="multipart/form-data">
enctype="multipart/form-data">
<div class="wrap-input100 rs1-wrap-input100">
<div class="wrap-input100 rs1-wrap-input100">
<span class="label-input100">Satellite Image :</span><br>
<span class="label-input100">Satellite File :</span><br>
<br> <input type="file" id="image1" path="image1"
<br> <input type="file" id="image1" path="image1"
name="textFile" class="label-input100">
name="textFile" class="label-input100">
</div>
</div>
<div class="container-contact100-form-btn">
<div class="container-contact100-form-btn">
<div class="wrap-contact100-form-btn">
<div class="wrap-contact100-form-btn">
<div class="contact100-form-bgbtn"></div>
<div class="contact100-form-bgbtn"></div>
<button class="contact100-form-btn" type="submit">UploadFile
<button class="contact100-form-btn" type="submit">Fill Details
</button>
</button>
</div>
</div>
</div>
</div>
</form>
</form>
<form class="contact100-form " action="/success" method="post"
<form class="contact100-form " action="/success" method="post"
enctype="multipart/form-data">
enctype="multipart/form-data">
<span class="contact100-form-title"> Satellite Form </span>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<!-- <select
<!-- <select
class="input100" type="text" name="satelite" id="satelite" selected="CARTOSAT-2">
class="input100" type="text" name="satelite" id="satelite" selected="CARTOSAT-2">
<option value="CARTOSAT-1">CARTOSAT-1</option>
<option value="CARTOSAT-1">CARTOSAT-1</option>
<option value="CARTOSAT-2">CARTOSAT-2</option>
<option value="CARTOSAT-2">CARTOSAT-2</option>
<option value="CARTOSAT-2D">CARTOSAT-2D</option>
<option value="CARTOSAT-2D">CARTOSAT-2D</option>
<option value="CARTOSAT-2E">CARTOSAT-2E</option>
<option value="CARTOSAT-2E">CARTOSAT-2E</option>
<option value="IKONOS">IKONOS</option>
<option value="IKONOS">IKONOS</option>
<option value="IRS-1A">IRS-1A</option>
<option value="IRS-1A">IRS-1A</option>
<option value="IRS-1B">IRS-1B</option>
<option value="IRS-1B">IRS-1B</option>
<option value="IRS-1C">IRS-1C</option>
<option value="IRS-1C">IRS-1C</option>
<option value="IRS-1D">IRS-1D</option>
<option value="IRS-1D">IRS-1D</option>
<option value="IRS-P3">IRS-P3</option>
<option value="IRS-P3">IRS-P3</option>
<option value="IRS-P4">IRS-P4</option>
<option value="IRS-P4">IRS-P4</option>
<option value="IRS-P6">IRS-P6</option>
<option value="IRS-P6">IRS-P6</option>
<option value="IRS-R2">IRS-R2</option>
<option value="IRS-R2">IRS-R2</option>
<option value="IRS-R2A">IRS-R2A</option>
<option value="IRS-R2A">IRS-R2A</option>
<option value="OCEANSAT-2">OCEANSAT-2</option>
<option value="OCEANSAT-2">OCEANSAT-2</option>
<option value="RISAT-1">RISAT-1</option>
<option value="RISAT-1">RISAT-1</option>
</select> -->
</select> -->
<span class="label-input100">Satellite :</span> <input class="input100"
<span class="label-input100">Satellite :</span> <input class="input100"
type="text" id="satelite" name="satelite" placeholder="satellite" value="${filedata.SatID}"></input>
type="text" id="satelite" name="satelite" placeholder="satellite" value="${filedata.SatID}"></input>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Sensor :</span>
<span class="label-input100">Sensor :</span>
<!-- <select
<!-- <select
class="input100" type="text" id="sansor" name="sansor">
class="input100" type="text" id="sansor" name="sansor">
<option value="AW">AW</option>
<option value="AW">AW</option>
<option value="L1">L1</option>
<option value="L1">L1</option>
<option value="L2">L2</option>
<option value="L2">L2</option>
<option value="L3">L3</option>
<option value="L3">L3</option>
<option value="L4">L4</option>
<option value="L4">L4</option>
<option value="MX">MX</option>
<option value="MX">MX</option>
<option value="OCM">OCM</option>
<option value="OCM">OCM</option>
<option value="PAN">PAN</option>
<option value="PAN">PAN</option>
<option value="PAN/MSI">PAN/MSI</option>
<option value="PAN/MSI">PAN/MSI</option>
<option value="SAR">SAR</option>
<option value="SAR">SAR</option>
<option value="WIF">WIF</option>
<option value="WIF">WIF</option>
</select> -->
</select> -->
<input class="input100"
<input class="input100"
type="text" id="sansor" name="sansor" placeholder="Sensor" value="${filedata.Sensor}"></input>
type="text" id="sansor" name="sansor" placeholder="Sensor" value="${filedata.Sensor}"></input>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Date :</span> <input class="input100"
<span class="label-input100">Date :</span> <input class="input100"
type="date" id="date" name="date" required>
type="date" id="date" name="date" required value="${filedata.DateOfPass} ">
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Time :</span> <input class="input100"
<span class="label-input100">Time :</span> <input class="input100"
type="time" id="time" name="time">
type="time" id="time" name="time">
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Path :</span> <input class="input100"
<span class="label-input100">Path :</span> <input class="input100"
type="text" id="path" name="path" placeholder="Path" value="${filedata.Path}"></input>
type="text" id="path" name="path" placeholder="Path" value="${filedata.Path}"></input>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Row :</span> <input class="input100"
<span class="label-input100">Row :</span> <input class="input100"
type="text" id="row" name="row" placeholder="Row" value="${filedata.Row}"></input>
type="text" id="row" name="row" placeholder="Row" value="${filedata.Row}"></input>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Band :</span> <input class="input100"
<span class="label-input100">Band :</span> <input class="input100"
type="text" id="band" name="band" placeholder="Band" />
type="text" id="band" name="band" placeholder="Band" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Gain No :</span> <input
<span class="label-input100">Gain No :</span> <input
class="input100" type="text" id="gain_no" name="gain_no"
class="input100" type="text" id="gain_no" name="gain_no"
placeholder="Gain" />
placeholder="Gain" />
</div>
</div>
<div class="wrap-input100 validate-input"></div>
<div class="wrap-input100 validate-input"></div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">I/P Pixel :</span> <input
<span class="label-input100">I/P Pixel :</span> <input
class="input100" type="text" id="pixel" name="pixel"
class="input100" type="text" id="pixel" name="pixel"
placeholder="I/P" />
placeholder="I/P" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">I/P Line :</span> <input
<span class="label-input100">I/P Line :</span> <input
class="input100" type="text" id="line" name="line"
class="input100" type="text" id="line" name="line"
placeholder="line" />
placeholder="line" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Pixel size x :</span> <input
<span class="label-input100">Pixel size x :</span> <input
class="input100" type="text" id="pixel_size_x" name="pixel_size_x"
class="input100" type="text" id="pixel_size_x" name="pixel_size_x"
placeholder="size x" />
placeholder="size x" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Pixel size y :</span> <input
<span class="label-input100">Pixel size y :</span> <input
class="input100" type="text" id="pixel_size_y" name="pixel_size_y"
class="input100" type="text" id="pixel_size_y" name="pixel_size_y"
placeholder="size y" />
placeholder="size y" />
</div>
</div>
<!-- <div class="container-contact100-form-btn"> -->
<!-- <div class="container-contact100-form-btn"> -->
<!-- <div class="wrap-input100" align="center">Draw Area for Which NOC is required : -->
<!-- <div class="wrap-input100" align="center">Draw Area for Which NOC is required : -->
<!-- </div> -->
<!-- </div> -->
<!-- <div class="wrap-contact100-form-btn"> -->
<!-- <div class="wrap-contact100-form-btn"> -->
<!-- <div class="contact100-form-bgbtn"></div> -->
<!-- <div class="contact100-form-bgbtn"></div> -->
<!-- <button class="contact100-form-btn" type="button" id="" name="" onclick="mapLatLonDis();"> -->
<!-- <button class="contact100-form-btn" type="button" id="" name="" onclick="mapLatLonDis();"> -->
<!-- Draw -->
<!-- Draw -->
<!-- </button> -->
<!-- </button> -->
<!-- </div> -->
<!-- </div> -->
<!-- <br> <label id ="latlon_geom" for="text-input" class=" form-control-label"></label> -->
<!-- <br> <label id ="latlon_geom" for="text-input" class=" form-control-label"></label> -->
<!-- </div> -->
<!-- </div> -->
<div class="wrap-input100"></div>
<div class="wrap-input100"></div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Center latitude :</span> <input
<span class="label-input100">Center latitude :</span> <input
class="input100" type="text" id="center_lat" name="center_lat"
class="input100" type="text" id="center_lat" name="center_lat"
placeholder="centre lat" value="${filedata.SceneCenterLat} "/>
placeholder="centre lat" value="${filedata.SceneCenterLat} "/>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Center longitude :</span> <input
<span class="label-input100">Center longitude :</span> <input
class="input100" type="text" id="center_long" name="center_long"
class="input100" type="text" id="center_long" name="center_long"
placeholder="centre long" value="${filedata.SceneCenterLon}" />
placeholder="centre long" value="${filedata.SceneCenterLon}" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Upper Left Latitude :</span> <input
<span class="label-input100">Upper Left Latitude :</span> <input
class="input100" type="text" id="ullat" name="ullat"
class="input100" type="text" id="ullat" name="ullat"
placeholder="Ul lat" value="${filedata.ProdULLat}" />
placeholder="Ul lat" value="${filedata.ProdULLat}" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Upper Left Longitude :</span> <input
<span class="label-input100">Upper Left Longitude :</span> <input
class="input100" type="text" id="ullong" name="ullong"
class="input100" type="text" id="ullong" name="ullong"
placeholder="Ul long" value="${filedata.ProdULLon}"/>
placeholder="Ul long" value="${filedata.ProdULLon}"/>
</div>
</div>
<div class="wrap-input100 validate-input"></div>
<div class="wrap-input100 validate-input"></div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Upper Right Latitude :</span> <input
<span class="label-input100">Upper Right Latitude :</span> <input
class="input100" type="text" id="urlat" name="urlat"
class="input100" type="text" id="urlat" name="urlat"
placeholder="Ur lat" value="${filedata.ProdURLat}"/>
placeholder="Ur lat" value="${filedata.ProdURLat}"/>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Upper Right Longitude :</span> <input
<span class="label-input100">Upper Right Longitude :</span> <input
class="input100" type="text" id="urlong" name="urlong"
class="input100" type="text" id="urlong" name="urlong"
placeholder="Ur long" value="${filedata.ProdURLon}"/>
placeholder="Ur long" value="${filedata.ProdURLon}"/>
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Lower Left Latitude :</span> <input
<span class="label-input100">Lower Left Latitude :</span> <input
class="input100" type="text" id="lllat" name="lllat"
class="input100" type="text" id="lllat" name="lllat"
placeholder="LL lat" value="${filedata.ProdLLLat}" />
placeholder="LL lat" value="${filedata.ProdLLLat}" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Lower Left Longitude :</span> <input
<span class="label-input100">Lower Left Longitude :</span> <input
class="input100" type="text" id="lllong" name="lllong"
class="input100" type="text" id="lllong" name="lllong"
placeholder="LL long" value="${filedata.ProdLLLon}" />
placeholder="LL long" value="${filedata.ProdLLLon}" />
</div>
</div>
<div class="wrap-input100 validate-input"></div>
<div class="wrap-input100 validate-input"></div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Lower Right Latitude :</span> <input
<span class="label-input100">Lower Right Latitude :</span> <input
class="input100" type="text" id="lrlat" name="lrlat"
class="input100" type="text" id="lrlat" name="lrlat"
placeholder="Lr lat" value="${filedata.ProdLRLat}" />
placeholder="Lr lat" value="${filedata.ProdLRLat}" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Lower Right Longitude :</span> <input
<span class="label-input100">Lower Right Longitude :</span> <input
class="input100" type="text" id="lrlong" name="lrlong"
class="input100" type="text" id="lrlong" name="lrlong"
placeholder="Lr long" value="${filedata.ProdLRLon}" />
placeholder="Lr long" value="${filedata.ProdLRLon}" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Sun Angle(Azi) :</span> <input
<span class="label-input100">Sun Angle(Azi) :</span> <input
class="input100" type="text" id="sunangle_azi" name="sunangle_azi"
class="input100" type="text" id="sunangle_azi" name="sunangle_azi"
placeholder="Sun Angle(azi)" value="${filedata.SunAzimuth}" />
placeholder="Sun Angle(azi)" value="${filedata.SunAzimuth}" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Sun Angle(Ele) :</span> <input
<span class="label-input100">Sun Angle(Ele) :</span> <input
class="input100" type="text" id="sunangle_ele" name="sunangle_ele"
class="input100" type="text" id="sunangle_ele" name="sunangle_ele"
placeholder="Sun Angle(ele)" value="${filedata.SunElevation}" />
placeholder="Sun Angle(ele)" value="${filedata.SunElevation}" />
</div>
</div>
<!-- <div class="wrap-input100 rs1-wrap-input100 validate-input" > -->
<!-- <div class="wrap-input100 rs1-wrap-input100 validate-input" > -->
<!-- <span class="label-input100">Local id :</span> -->
<!-- <span class="label-input100">Local id :</span> -->
<!-- <input class="input100" type="text" id="localcd" name="localcd" placeholder="Local id number.."/> -->
<!-- <input class="input100" type="text" id="localcd" name="localcd" placeholder="Local id number.."/> -->
<!-- </div> -->
<!-- </div> -->
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<span class="label-input100">Layer Name :</span> <input
<span class="label-input100">Layer Name :</span> <input
class="input100" type="text" id="layername" name="layername"
class="input100" type="text" id="layername" name="layername"
placeholder="Layer name" />
placeholder="Layer name" />
</div>
</div>
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<div class="wrap-input100 rs1-wrap-input100 validate-input">
<input type="file" id="image1" path="image1" name="image1"
<input type="file" id="image1" path="image1" name="image1"
accept=".png, .jpg, .jpeg" class="label-input100"
accept=".png, .jpg, .jpeg" class="label-input100"
>
>
</div>
</div>
<div class="container-contact100-form-btn">
<div class="container-contact100-form-btn">
<div class="wrap-contact100-form-btn">
<div class="wrap-contact100-form-btn">
<div class="contact100-form-bgbtn"></div>
<div class="contact100-form-bgbtn"></div>
<button class="contact100-form-btn" type="submit">Submit
<button class="contact100-form-btn" type="submit">Submit
</button>
</button>
</div>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
<span class="contact100-more"> </span>
<span class="contact100-more"> </span>
</div>
</div>
<div id="dropDownSelect1"></div>
<div id="dropDownSelect1"></div>
<!--===============================================================================================-->
<!--===============================================================================================-->
<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
<!--===============================================================================================-->
<!--===============================================================================================-->
<script src="vendor/bootstrap/js/popper.js"></script>
<script src="vendor/bootstrap/js/popper.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!--===============================================================================================-->
<!--===============================================================================================-->
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/select2/select2.min.js"></script>
<!--===============================================================================================-->
<!--===============================================================================================-->
<script src="js/main.js"></script>
<script src="js/main.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async
<script async
src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13"></script>
src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13"></script>
<script>
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer = window.dataLayer || [];
function gtag() {
function gtag() {
dataLayer.push(arguments);
dataLayer.push(arguments);
}
}
gtag('js', new Date());
gtag('js', new Date());
gtag('config', 'UA-23581568-13');
gtag('config', 'UA-23581568-13');
</script>
</script>
<!-- <script type="text/javascript">
<!-- <script type="text/javascript">
function Validateownerphto(e) {
function Validateownerphto(e) {
// alert("HIiiiiiiiii"+e)
// alert("HIiiiiiiiii"+e)
var t = e.value;
var t = e.value;
if ("" != t) {
if ("" != t) {
var n = t.substring(t.lastIndexOf(".") + 1).toLowerCase();
var n = t.substring(t.lastIndexOf(".") + 1).toLowerCase();
if((e.files[0].size / 1024) > 1000 ){
if((e.files[0].size / 1024) > 1000 ){
alert("Upload file size upto 1 MB. ");
alert("Upload file size upto 1 MB. ");
e.value = "";
e.value = "";
return false;
return false;
}else{
}else{
return ("jpeg" == n || "JPEG" == n ||"jpg" == n || "JPG" == n ||"png" == n || "PNG" == n ) ? "" : (alert("Only JPEG / JPG/PNG file types allows."), e.value = "", !1)
return ("jpeg" == n || "JPEG" == n ||"jpg" == n || "JPG" == n ||"png" == n || "PNG" == n ) ? "" : (alert("Only JPEG / JPG/PNG file types allows."), e.value = "", !1)
}
}
}
}
return alert("Please Upload file"), !0
return alert("Please Upload file"), !0
}
}
</script> -->
</script> -->
<script src="customol/js/geomForm.js"></script>
<script src="customol/js/geomForm.js"></script>
<script src="customol/js/mod.js"></script>
<script src="customol/js/mod.js"></script>
<script src="customol/js/editPower.js"></script>
<script src="customol/js/editPower.js"></script>
<script src="customol/js/buttons.js"></script>
<script src="customol/js/buttons.js"></script>
</body>
</body>
</html>
</html>