Skip to main content
Question

While rebuilding a part of my script, i lost a parameter that asked for geometry. Does anyone now how i can get it to (re)appear?

  • July 7, 2023
  • 1 reply
  • 5 views

boomstreek
Participant

No geometry parameterWith geometry parameter

1 reply

featuremichael
Supporter
Forum|alt.badge.img+8

From: https://community.safe.com/s/question/0D54Q000080hKVxSAM/featurewriter-postgis-cannot-set-geometry-type

 

Answer:

"PostGIS writer doesn't have the option to specify geometry. A few earlier build might have had this parameter exposed by mistake. Since each PostGIS table is allowed to have mixed geometry types, the writer doesn't provide the parameter to restrict it to one type.

However, if you need to only write features that are postgis_multipolygon, you can use some transformers to filter the features by geometry type, before they get into the writer.

I'm not 100% sure what postgis_multipolygon type can or can't have, or what exact restrictions you want to use for your scenario. Some likely transformers to look at would be GeometryFilter and AggregateFilter.

If you can give a bit more background on why you want to restrict the writer geometry, and what is not allowed to be written, our other experts should be able to give more detailed suggestion on how to filer the features."


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings