Accessing SOS with Basic Authentication - Java
Basic authentication in Java example.
This uses JDK 5.0 and Apache jakarta commons libraries.
JDK download: http://java.sun.com/javase/downloads/index.jsp
Apache download: http://jakarta.apache.org/commons/index.html
Example XML to pass to the SOS is found http://eo1.geobliki.com/sosdemo
testPost(XML, "user", "password", false, "http://eo1.geobliki.com/sos");
If you are having issues with firewalls try changing the preempt to true to see if will work. This always sends the username/password with the request.
public static void testPost(String xml, String userName, String password, boolean preempt, String URL){
HttpClient client = new HttpClient();
HttpState state = client.getState();
HttpClientParams params = client.getParams();
params.setAuthenticationPreemptive(preempt);
Credentials credentials = new UsernamePasswordCredentials(userName, password);
state.setCredentials(null, null, credentials);
PostMethod method = new PostMethod(URL);
method.setRequestBody(xml);
try {
client.executeMethod(method);
Header[] headers = method.getResponseHeaders();
for (Header header:headers){
System.out.println(header.getName() + ":"+header.getValue());
}
String response = method.getResponseBodyAsString();
System.out.println(response);
method.releaseConnection();
} catch (HttpException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
MapBuilder Vector Rendering
As part of OGS OWS-4 effort to deliver a GML client for the demo, Cameron is taking the code developed for the Geobliki WFS vector rendering and expanding it to support GML 3.2.
Vecor rendering is critical on the client side. SVG is used for Firefox 1.5 clients and VML for IE clients.
This will be critical for supporting Map Annotations to be stored in the new OWSContext document.
Responsive Space, Responsive Ground
Our lessons learned from the OFT/NRL development of VMOC is that Responsive Space will only take place when space data/assets can be made available to end users in a responsive manner.
The truth is that data exist. It is simply not available to end users in a timely for many reasons ranging from political to technical. Distributing data across organizations is an interoperability challenge. Tasking space assets across organizations is even more of a leap of faith.
These capabilities are desperately required for Maritime Awareness programs (Tactical Maritime Awareness, Maritime Domain Awareness, or Comprehensive Maritime Awareness…) or even closer to home for Emergency Response/Disaster Relief Efforts. Hurricane Katrina disaster proved, after the fact, that data could have been made available to NORTHCOM from many military or civil organizations.
Funded initially by OFT and NRL, GeoBliki rose from those emerging needs as a generic data node integrating all the standards defined by the Open Geospatial Consortium for Sensor Web Enablement. The first instantiation is at eo1.geobliki.com. With the support of NASA Goddard, this server will allow for the first time transparent access to space including data and tasking of a civilian satellite (EO-1) from any military or civil organizations prior to TACSAT-1 launch.
This capability can easily be cloned to thousands of space/ground/sea nodes generating data feeds for subscribers interested in satellite imagery, AIS ship tracks or pictures/videos taken by first responders. Aggregators like VMOC will be able to offer transparent tasking to civil or military assets in case of emergencies. Other assets such as UAV, field cameras could be tasked in a similar manner.
This coming December, the OGC will showcase an interoperability demo with more than 40 organizations/vendors. This will be the place to show responsiveness!
WFS-Basic
We are working with Raj Singh on WFS-Basic, a lightweight WFS proposal described here.
So here are some of our WFS-B examples to play with:
Get last 100 entries:Try
http://eo1.geobliki.com/wfs?REQUEST=GetFeature
Get last 10 entries:Try
http://eo1.geobliki.com/wfs?REQUEST=GetFeature&MAXFEATURES=10
Get last 100 hyperion entries:Try
http://eo1.geobliki.com/wfs?REQUEST=GetFeature&TYPENAME=hyperion
Get time span: Try
http://eo1.geobliki.com/wfs?REQUEST=GetFeature&TYPENAME=ali&MINDATE=2006-06-03&MAXDATE=2006-06-04
Get bbox: Try
http://eo1.geobliki.com/wfs?REQUEST=GetFeature&TYPENAME=ali&BBOX=-160,61,-159,63
Discover Service: Try
http://eo1.geobliki.com/wfs?REQUEST=GetFeature&QUERY=service
OGC Technical Committee Meeting
Big week this week with the OGC Technical Committeed Meetings and Interoperability Day. Dan Mandl will be presenting the EO1 Geobliki effort on Oct 4th in Tyson’s Corner. There will be a big coordination meeting later that evening with the ESTO award winners, including Steve Chien (JPL), Mike Botts (UAH) and a few others. Stay tuned for more.
's Blog