Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9140457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:31:07+00:00 2026-06-17T09:31:07+00:00

My Target: Using Openlayers + geoserver + POSTGIS, Display a google map. Dsplay layers

  • 0

My Target: Using Openlayers + geoserver + POSTGIS,

  1. Display a google map.
  2. Dsplay layers from geoserver to the user in a browser ,
  3. Allow user to edit features for a layer,
  4. Persist the features added newly by the end user to the POSTGIS database

My Status :

  1. I could display google map.
  2. Loaded SHAPEFILES(.shp) to the POSTGIS DB using postgis shapefile import/export manager
  3. Added a workspace in GEOSERVER ADMIN CONSOLE.
  4. Added a DATASOURCE in GEOSERVER ADMIN CONSOLE.

MyProblem :

  1. unable to display the layer in browser.
  2. Unable to find TYPE GEOMETRY under “Feature Type Details” in EDIT LAYER SCREEN.

REFERENCES:

WFS code in a simple HTML page :

var wfs = new OpenLayers.Layer.Vector("USACITIES",
{
    strategies: [new OpenLayers.Strategy.Fixed()],
    projection: new OpenLayers.Projection("EPSG:4326"),
    protocol: new OpenLayers.Protocol.WFS({
        version: "1.1.0",
        url: "http://localhost:8080/geoserver/wfs",
        featurePrefix: 'usa', //geoserver worspace name
        featureType: "usa:states", //geoserver Layer Name
        featureNS: "http://usa.opengeo.org", // Edit Workspace Namespace URI
        geometryName: "the_geom" // field in Feature Type details with type "Geometry"
    })
});
map.addLayer(wfs);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:31:08+00:00Added an answer on June 17, 2026 at 9:31 am

    I think there is a mistake in your code:

    featureType: "usa:states", //geoserver Layer Name
    

    I think this should be

    featureType: "states", //geoserver Layer Name
    

    because the prefix is already defined with the featureNS

    As for the “Feature Type Details” in Geoserver:
    Check in Postgres if your table has “the_geom” or “geom” coloumn and if its type is geometry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm experienced in using media queries to target CSS to specific browser sizes/or contexts,
I've built several Javascript applications for map charts using google maps, and I was
I am using jQuery to detect drop on target, the target in question is
Using VS 2008, the target environment is Windows CE with an ARM processor if
I am using html5 data attributes to store data like target dom and initialize
When using a WeakReference, how can we be sure than the target is not
Using JNA, the documentation says: Make your target library available to your Java program.
I am using Mac OS X 10.6 SDK and my deployment target is set
When delegating events using .on how do I target child elements: I have tried:
I'm trying to target mobile devices (specifically the iPad and iPhone) but using CSS3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.