Package edu.umn.gis.mapscript

Examples of edu.umn.gis.mapscript.mapObj


    public String  mapName;
    public byte[]       resultBytes;

    public void run() {
  mapObj map = new mapObj(mapName);

        map.setMetaData( "ows_onlineresource", "http://dummy.org/" );

        OWSRequest req = new OWSRequest();

        req.setParameter( "SERVICE", "WMS" );
        req.setParameter( "VERSION", "1.1.0" );
        req.setParameter( "REQUEST", "GetCapabilities" );

        mapscript.msIO_installStdoutToBuffer();

        int owsResult = map.OWSDispatch( req );

        if( owsResult != 0 )
            System.out.println( "OWSDispatch Result (expect 0): " + owsResult );

//        System.out.println( "Document:" );
View Full Code Here


public class QueryByAttribute {
  public static void main(String[] args)  {
   
  String filter="A Point";
  mapObj map = new mapObj(args[0]);
  if (args.length == 2) {
    filter=args[1];
  } else {
    filter="A Point";
  }

  layerObj layer = map.getLayerByName("POINT");
  layer.setTemplate("template.html");

  layer.queryByAttributes(map,"FNAME", filter, mapscriptConstants.MS_MULTIPLE);
  layer.open();
  System.out.println( "Searched for: " +filter );       
View Full Code Here

    public String  mapName;
    public byte[]       resultBytes;

    public void run() {
  mapObj map = new mapObj(mapName);

        map.setMetaData( "ows_onlineresource", "http://dummy.org/" );

        OWSRequest req = new OWSRequest();

        req.setParameter( "SERVICE", "WMS" );
        req.setParameter( "VERSION", "1.1.0" );
        req.setParameter( "REQUEST", "GetCapabilities" );

        mapscript.msIO_installStdoutToBuffer();

        int owsResult = map.OWSDispatch( req );

        if( owsResult != 0 )
            System.out.println( "OWSDispatch Result (expect 0): " + owsResult );

//        System.out.println( "Document:" );
View Full Code Here

TOP

Related Classes of edu.umn.gis.mapscript.mapObj

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.