[Geomoose-users] Feature editor, error missing required field
Dara Olson
dolson at glifwc.org
Wed Jun 15 16:43:43 EDT 2011
Greetings.
I am having some problems with the feature editor setup. When I go to add a point feature it says, "Missing required field:", but no field is listed after the error. There seems to be no errors showing up in any of the logs either. Does anyone know why I might be getting this error? Below is the setup for the feature and editor. We are running GeoMoose 2.2.
Any help or suggestions would be greatly appreciated.
Miigwech!
Dara
Table:
CREATE TABLE permits.glifwc_permit_comments_points
(
gid serial NOT NULL,
file_name character varying,
description character varying,
georef_protocol character varying,
pdf_name character varying,
document_link character varying,
permit_number character varying,
the_geom900913 geometry,
date_lm date,
wbic character varying,
type_of_permit character varying,
CONSTRAINT glifwc_prior_acoe_comments_pkey PRIMARY KEY (gid),
CONSTRAINT enforce_dims_the_geom900913 CHECK (st_ndims(the_geom900913) = 2),
CONSTRAINT enforce_srid_the_geom900913 CHECK (st_srid(the_geom900913) = 900913)
)
Sequence and register:
A sequence was set up, permits.glifwc_permit_comments_points_gid_seq and an entry in the "geometry_columns" table for field "the_geom900913", 900913, POINT.
Mapfile definition:
LAYER # GLIFWC Permit Comments
NAME "glifwc_permit_comment_points"
TYPE POINT
STATUS ON
CONNECTIONTYPE postgis
CONNECTION "host=localhost dbname=xxxxx user=xxxxx password=xxxxx"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "the_geom900913 FROM (SELECT *, ASTEXT(the_geom900913) AS wkt_geometry
FROM permits.glifwc_permit_comment_points) AS glifwc_permit_comment_points using unique gid using srid=900913"
PROJECTION
"init=epsg:900913"
END
TOLERANCE 6
CLASS
NAME "GLIFWC Permit Comments"
SYMBOL "..\..\icons\comments.gif"
TEMPLATE "identify.html"
END
METADATA
"identify_record" "identify.html"
END
END # GLIFWC Permit Comments
The layer was successfully added to the project and displays correctly.
Layer INI file:
host=localhost
dbname=xxxxx
username=xxxxx
password=xxxxx
tablename=permits.glifwc_permit_comment_points
geometry_column=the_geom900913
primary_key_column=gid
primary_key_sequence=permits.glifwc_permit_comment_points_gid_seq
srid=900913
layerpath=glifwc_permit_comment/glifwc_permit_comment_points
Service:
<service name="add_permit_comment">
<url>php/editor.php</url>
<step type="spatial" name="feature:the_geom900913" line="false" polygon="false" point="true" default="point">
</step>
<step type="input">
<input type="hidden" name="op" value="create"/>
<input type="hidden" name="table" value="glifwc_permit_comment_points"/>
<input type="user" name="feature:permit_number" title="Permit Number:" />
<input type="user" name="feature:file_name" title="File Name:" />
<input type="select" name="feature:type_of_permit" title="Type of Permit:">
<option value="APM Permit">APM Permit</option>...
</input>
<input type="user" name="feature:wbic" title="WBIC if applicable:"/>
<input type="user" name="feature:description" title="Description:"/>
<input type="user" name="feature:pdf_name" title="PDF Name:"/>
<input type="user" name="feature:document_link" title="Link to Document:"/>
<input type="select" name="feature:georef_protocol" title="Georeference Protocol:">
<option value="digitized by hand">Digitized by Hand</option>...
</input>
</step>
</service>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20110615/82ca7b30/attachment.html
More information about the Geomoose-users
mailing list