[mapserver-users] GEOMTRANSFORM definition causing an error

Fawcett, David (MNIT) David.Fawcett at state.mn.us
Thu Sep 26 10:44:29 PDT 2013


I have no idea why you are getting an error about jquery, but is does look like you might be trying to apply a 150 degree buffer around your feature...

I don't know what version you are using, but from this RFC, it appears as though LAYER-level geomtransforms use ground coordinates:  http://mapserver.org/development/rfc/ms-rfc-89.html

David.



-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tday
Sent: Thursday, September 26, 2013 12:21 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] GEOMTRANSFORM definition causing an error

Hello,

I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am adding this line to the second LAYER definition in the following map file:

GEOMTRANSFORM (buffer([shape], 150)) 

After adding this line, Mapserver throws an error:

Mapserver response:undefined - Status:error - Error:[Exception... "Failure" 
nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
http://[domain obscured]/assets/a4f84659/jquery.js :: .send :: line 8102" 
data: no]

The second layer is exactly the same as the first layer except for the GEOMTRANSFORM definition.
Any ideas what the problem may be?  Thanks!


MAP
  NAME        "obscured"
  STATUS      ON
  SIZE        912 380
  EXTENT      -180 -90 180 90
  UNITS       FEET
  IMAGECOLOR  255 255 255
  FONTSET     /web/mapserver/fonts.list
  CONFIG MS_ERRORFILE stdout
  # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt
  DEBUG       5

  OUTPUTFORMAT
    NAME "json"
    DRIVER "TEMPLATE"
    #MIMETYPE "application/json; subtype=geojson"
    FORMATOPTION "FILE=geojson.tmpl"
  END

  OUTPUTFORMAT
    NAME "geojson"
    DRIVER "TEMPLATE"
    #MIMETYPE "application/json; subtype=geojson"
    FORMATOPTION "FILE=geojson.tmpl"
  END

  #
  # Web Interface
  #
  WEB
    IMAGEPATH      "../out/"
    IMAGEURL       "/out/"
    METADATA
# obscured
    END
  END

  PROJECTION
    "init=epsg:4269"
  END

  #
  # Layers
  #
  
  #####
  # Parcels
  #####
  LAYER
    NAME           "parcels"
    METADATA
      "wfs_title"                 "Parcels"
      "wfs_srs"                   "EPSG:4269"
      "gml_include_items"         "all"
      "gml_featureid"             "OBJECTID"
      "wfs_enable_request"        "*"
      "wfs_getfeature_formatlist" "gml,json,geojson"
      "gml_COUNTRY_ID_type"       "Character"
      "gml_STATE_ID_type"         "Character"
      "gml_COUNTY_ID_type"        "Character"
      "gml_PARCEL_ID_type"        "Character"
    END
    TYPE           POLYGON
    STATUS         ON
    EXTENT         -180 -90 180 90
    CONNECTIONTYPE oraclespatial
    CONNECTION     "SDE/3nz0rb4rr4g1n at ArcSDE"
    DATA           "SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID,
COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER"
    PROJECTION
      "init=epsg:4269"
    END
    # TOLERANCEUNITS feet
    # TOLERANCE 150 
    CLASS
      NAME              "Parcels"
      STYLE
        COLOR                240 240 240
        OUTLINECOLOR           0   0   0
      END
    END
  END
  #####
  # Buffered Parcels
  #####
  LAYER
    NAME           "parcelbuffers"
    METADATA
      "wfs_title"                 "Parcel Buffers"
      "wfs_srs"                   "EPSG:4269"
      "gml_include_items"         "all"
      "gml_featureid"             "OBJECTID"
      "wfs_enable_request"        "*"
      "wfs_getfeature_formatlist" "gml,json,geojson"
      "gml_COUNTRY_ID_type"       "Character"
      "gml_STATE_ID_type"         "Character"
      "gml_COUNTY_ID_type"        "Character"
      "gml_PARCEL_ID_type"        "Character"
    END
    TYPE           POLYGON
    STATUS         ON
    EXTENT         -180 -90 180 90
    CONNECTIONTYPE oraclespatial
    CONNECTION     "SDE/3nz0rb4rr4g1n at ArcSDE"
    DATA           "SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID,
COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER"
    PROJECTION
      "init=epsg:4269"
    END
    # GEOMTRANSFORM (buffer([shape], 150)) 
    CLASS
      NAME              "Parcel Buffers"
      STYLE
        COLOR                240 240 240
        OUTLINECOLOR           0   0   0
      END
    END
  END
END



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list